internal/web/static/style.css

545ba0bcdea3b534903bd78c918c0c025a97eda7
gitbay/internal/web/static/style.css

2476 lines · 93877 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 dark slate in both schemes: the one brand constant */
  73  --shell-bg: #111318;
  74  --shell-fg: #f2f2f2;
  75  --shell-muted: #98a0ad;
  76  --shell-line: #232730;
  77  --shell-hover: #1c2029;
  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: #111318;
 172    --shell-fg: #f2f2f2;
 173    --shell-muted: #98a0ad;
 174    --shell-line: #232730;
 175    --shell-hover: #1c2029;
 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-5) 0 0;
 450  border-bottom: 1px solid var(--faint);
 451  background: var(--canvas);
 452}
 453.repohead .wrap { max-width: calc(var(--container) + 2 * var(--sp-6)); margin: 0 auto; padding: 0 var(--sp-6); }
 454.identity { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
 455.grow { flex: 1; }
 456/* h1 on the repo home, p elsewhere so each page keeps its own h1 — but
 457   identical in size, because the tabs sit below and navigation must not
 458   move when you use it */
 459.repotitle {
 460  margin: 0;
 461  font-size: var(--fs-4);
 462  font-weight: 600;
 463  line-height: 1.25;
 464}
 465.repotitle a { color: var(--fg); }
 466.repotitle a.owner { color: var(--muted); font-weight: 400; }
 467.repotitle a:hover { color: var(--link); text-decoration: none; }
 468.repotitle .sep { color: var(--muted); margin: 0 2px; font-weight: 400; }
 469.repodesc {
 470  margin: 0 0 0 var(--sp-2);
 471  color: var(--muted);
 472  font-size: var(--fs-2);
 473  display: inline-flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
 474  min-width: 0;
 475}
 476.repodesc a.site { color: var(--muted); }
 477.repodesc a.site:hover { color: var(--link); }
 478.repometa { margin: var(--sp-1) 0 0; color: var(--muted); font-size: var(--fs-1); }
 479
 480nav.tabs {
 481  display: flex;
 482  gap: var(--sp-1);
 483  margin-top: var(--sp-3);
 484  margin-bottom: var(--sp-4);
 485  overflow-x: auto;
 486  /* with overflow-y left visible the browser computes it to auto, which
 487     is a vertical drag on touch; the strip scrolls sideways only */
 488  overflow-y: hidden;
 489  scrollbar-width: none;
 490}
 491nav.tabs::-webkit-scrollbar { display: none; }
 492nav.tabs a {
 493  display: inline-flex;
 494  align-items: center;
 495  gap: var(--sp-1);
 496  padding: var(--sp-2) var(--sp-3) 10px;
 497  color: var(--muted);
 498  font-size: var(--fs-2);
 499  white-space: nowrap;
 500  border-bottom: 2px solid transparent;
 501  margin-bottom: -1px;
 502}
 503nav.tabs a:hover { color: var(--fg); text-decoration: none; }
 504nav.tabs a[aria-current] { color: var(--fg); font-weight: 600; border-bottom-color: var(--mark); }
 505/* the profile strip draws its unlit tabs, so the underline reads as the
 506   control rather than appearing only on the one you are already on.
 507   --line, not --faint: the track has to be visible to be a track, and
 508   at 2px --faint disappears into the canvas in both schemes. */
 509nav.tabs.profiletabs a { border-bottom-color: var(--line); }
 510nav.tabs.profiletabs a[aria-current] { border-bottom-color: var(--mark); }
 511/* a count in a tab is plain metadata, not a badge */
 512nav.tabs a i { font-style: normal; color: var(--muted); margin-left: 4px; }
 513
 514/* ---- page heads ---- */
 515.pagehead, .listhead, .headrow {
 516  display: flex;
 517  align-items: center;
 518  gap: var(--sp-3);
 519  flex-wrap: wrap;
 520  margin-bottom: var(--sp-5);
 521}
 522/* every child sheds its block margins, or a p.meta beside an h1 centres
 523   its text inside a box the margins made taller than the heading's */
 524.pagehead h1, .listhead h1, .headrow h1, .listhead h2, .headrow h2 { margin: 0; }
 525.pagehead > p, .listhead > p, .headrow > p { margin: 0; }
 526.pagehead .grow, .listhead .spacer, .headrow .spacer { flex: 1; }
 527.issuetitle { margin: 0 0 var(--sp-2); font-size: var(--fs-5); text-wrap: balance; }
 528.issuenumber { color: var(--muted); font-weight: 400; }
 529.issuemeta { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-4); }
 530.commithead p { margin: var(--sp-1) 0; }
 531.commithead h2 { margin-top: 0; margin-bottom: var(--sp-1); }
 532
 533nav.filters { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; }
 534nav.filters a {
 535  display: inline-flex;
 536  align-items: center;
 537  height: 32px;
 538  padding: 0 var(--sp-3);
 539  background: var(--canvas);
 540  border: 1px solid var(--line);
 541  border-radius: var(--r-ctl);
 542  color: var(--fg);
 543  font-size: var(--fs-2);
 544  font-weight: 500;
 545}
 546nav.filters a:hover { background: var(--hover); text-decoration: none; }
 547nav.filters a.active { background: var(--surface); border-color: var(--link); color: var(--link); }
 548
 549form.searchform, form.logfilter, form.compareform {
 550  display: flex;
 551  align-items: center;
 552  gap: var(--sp-2);
 553  flex-wrap: wrap;
 554  margin: 0 0 var(--sp-4);
 555}
 556form.searchform input[type="search"], form.searchform input[type="text"], form.logfilter input { flex: 1; min-width: 12rem; max-width: 32rem; }
 557form.searchform.compact { margin: 0; }
 558form.searchform.compact input[type="search"], form.searchform.compact input[type="text"] { min-width: 18rem; }
 559form.compareform label { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; }
 560
 561/* ---- buttons: one family, 32px tall, so a row of them lines up ---- */
 562button, .button {
 563  display: inline-flex;
 564  align-items: center;
 565  justify-content: center;
 566  gap: 6px;
 567  height: 32px;
 568  padding: 0 var(--sp-3);
 569  font: inherit;
 570  font-size: var(--fs-2);
 571  font-weight: 500;
 572  border: 1px solid transparent;
 573  border-radius: var(--r-ctl);
 574  cursor: pointer;
 575  text-decoration: none;
 576  white-space: nowrap;
 577  /* a bare <button> is the primary action of its form group */
 578  background: var(--fill);
 579  color: var(--fill-fg);
 580}
 581button:hover, .button.primary:hover { filter: brightness(1.12); text-decoration: none; }
 582button.btn, .button.btn {
 583  background: var(--canvas);
 584  color: var(--fg);
 585  border-color: var(--line);
 586  filter: none;
 587}
 588button.btn:hover, .button.btn:hover { background: var(--hover); filter: none; text-decoration: none; }
 589button.btn[aria-pressed="true"] { background: var(--surface); color: var(--link); border-color: var(--link); }
 590button.linklike {
 591  background: none;
 592  border: 0;
 593  padding: 0;
 594  height: auto;
 595  color: var(--link);
 596  font-weight: 400;
 597  filter: none;
 598}
 599button.linklike:hover { text-decoration: underline; filter: none; }
 600button.danger, .button.danger {
 601  background: var(--canvas);
 602  color: var(--bad);
 603  border-color: var(--bad);
 604  filter: none;
 605}
 606/* --canvas, not --fill-fg: white on the dark scheme's --bad is 2.3:1 */
 607button.danger:hover, .button.danger:hover { background: var(--bad); color: var(--canvas); filter: none; }
 608button:disabled { opacity: 0.55; cursor: default; filter: none; }
 609.btngroup { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; }
 610/* a destructive button holds the way out at arm's length: 8px puts the
 611   cancel's underline against the button's border */
 612.btngroup:has(> button.danger) { gap: var(--sp-4); }
 613form.inline { display: inline; }
 614.act { text-align: right; }
 615
 616/* ---- forms ---- */
 617/* not button: it sets its own colour above, and this rule comes later at
 618   the same specificity */
 619input, textarea, select { font: inherit; color: inherit; }
 620input[type="text"], input[type="search"], input[type="email"],
 621input[type="password"], input[type="number"], input:not([type]), textarea, select {
 622  background: var(--inset);
 623  color: var(--fg);
 624  border: 1px solid var(--line);
 625  border-radius: var(--r-ctl);
 626  padding: 0 10px;
 627  height: 32px;
 628  font-size: var(--fs-2);
 629  line-height: 1.4;
 630}
 631textarea {
 632  width: 100%;
 633  height: auto;
 634  padding: 8px 10px;
 635  resize: vertical;
 636  line-height: 1.5;
 637}
 638textarea[name="content"] { font-family: var(--mono); font-size: var(--fs-1); }
 639select {
 640  appearance: none;
 641  padding-right: 1.9rem;
 642  background-image: var(--chev);
 643  background-repeat: no-repeat;
 644  background-position: right 0.6rem center;
 645  background-size: 0.62rem;
 646  cursor: pointer;
 647}
 648input:hover, textarea:hover, select:hover { border-color: var(--muted); }
 649input[type="radio"] { accent-color: var(--fill); }
 650label { display: block; font-weight: 500; font-size: var(--fs-2); margin-bottom: 4px; }
 651label:has(> input[type="radio"]), label:has(> input[type="checkbox"]),
 652label:has(> select) { display: inline-flex; align-items: center; gap: var(--sp-2); }
 653.fieldname { display: block; font-size: var(--fs-2); font-weight: 500; }
 654.hint { display: block; color: var(--muted); font-size: var(--fs-1); font-weight: 400; margin: 0 0 6px; }
 655.field { margin-bottom: var(--sp-4); }
 656.field input[type="text"], .field input[type="email"], .field select { width: 100%; }
 657.check { display: flex; align-items: center; gap: var(--sp-2); font-weight: 400; }
 658::placeholder { color: var(--muted); opacity: 1; }
 659::selection { background: var(--fill); color: var(--fill-fg); }
 660/* :user-invalid, not :invalid — a required field is invalid the moment
 661   the page loads, and colouring it red before anyone has typed is a
 662   scolding, not a hint */
 663input:user-invalid, textarea:user-invalid { border-color: var(--bad); }
 664input[name="confirm"] { width: auto; margin-right: var(--sp-2); }
 665
 666/* A radio keeps the native control: a circle takes one answer, a square
 667   takes any number, and that shape survives greyscale and colour
 668   blindness. The checkbox is drawn so it matches the rest of the family. */
 669input[type="checkbox"] {
 670  appearance: none;
 671  flex: none;
 672  width: 16px;
 673  height: 16px;
 674  margin: 0;
 675  /* an empty box has nothing but its border to announce it */
 676  border: 1px solid var(--muted);
 677  border-radius: var(--r-ctl);
 678  background: var(--inset);
 679  cursor: pointer;
 680}
 681input[type="checkbox"]:not(:checked):hover { border-color: var(--fg); }
 682input[type="checkbox"]:checked {
 683  background: var(--fill);
 684  border-color: var(--fill);
 685  /* the mark sits on the blue ground, so it is white in both schemes */
 686  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");
 687  background-repeat: no-repeat;
 688  background-position: center;
 689  background-size: 11px;
 690}
 691
 692/* a segmented control for a small, mutually exclusive set: real radios
 693   underneath, so arrow keys and screen readers behave as they always did */
 694fieldset.segmented { border: 0; margin: 0 0 var(--sp-4); padding: 0; }
 695fieldset.segmented legend { padding: 0; margin-bottom: var(--sp-2); color: var(--muted); font-size: var(--fs-2); }
 696fieldset.segmented .options { display: inline-flex; }
 697fieldset.segmented label { gap: 0; margin: 0; }
 698fieldset.segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
 699fieldset.segmented span {
 700  display: flex;
 701  align-items: center;
 702  height: 32px;
 703  padding: 0 var(--sp-4);
 704  border: 1px solid var(--line);
 705  font-size: var(--fs-2);
 706  cursor: pointer;
 707}
 708fieldset.segmented label + label span { border-left: 0; }
 709fieldset.segmented label:first-child span { border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
 710fieldset.segmented label:last-child span { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
 711fieldset.segmented span:hover { border-color: var(--muted); }
 712fieldset.segmented input:checked + span {
 713  background: var(--fill);
 714  border-color: var(--fill);
 715  color: var(--fill-fg);
 716  font-weight: 600;
 717}
 718fieldset.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
 719
 720p.branchpick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
 721p.branchpick label { color: var(--muted); font-size: var(--fs-2); margin: 0; }
 722p.branchpick select { flex: 1 1 12rem; }
 723
 724form.signupform, form.editform { max-width: 40rem; }
 725form.signupform label, form.editform label { margin-bottom: 4px; }
 726.editform textarea { width: 100%; }
 727.editform input[name="message"] { width: 100%; }
 728
 729/* A previewed draft, above the textarea it came from. The orange edge is
 730   "where you are and what wants you": this is not saved yet. */
 731.preview {
 732  margin: var(--sp-4) 0;
 733  max-width: 48rem;
 734  background: var(--surface);
 735  border: 1px solid var(--line);
 736  border-left: 3px solid var(--mark);
 737  border-radius: var(--r-card);
 738}
 739.preview > .previewmark {
 740  margin: 0;
 741  padding: var(--sp-2) var(--sp-4);
 742  border-bottom: 1px solid var(--line);
 743  color: var(--warn);
 744  font-size: var(--fs-1);
 745}
 746.preview > .rendered { padding: var(--sp-3) var(--sp-4); }
 747.preview > .rendered > :first-child { margin-top: 0; }
 748.preview > .rendered > :last-child { margin-bottom: 0; }
 749.preview > .rendered:empty::before { content: "nothing to preview"; color: var(--muted); }
 750
 751form.commentform { margin: var(--sp-4) 0; max-width: 48rem; }
 752form.commentform p:last-child { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: 0; }
 753
 754details.editbox { margin: var(--sp-2) 0; max-width: 48rem; }
 755details.editbox > summary {
 756  display: inline-flex;
 757  align-items: center;
 758  height: 32px;
 759  padding: 0 var(--sp-3);
 760  background: var(--canvas);
 761  border: 1px solid var(--line);
 762  border-radius: var(--r-ctl);
 763  color: var(--fg);
 764  font-size: var(--fs-2);
 765  font-weight: 500;
 766  cursor: pointer;
 767  list-style: none;
 768}
 769details.editbox > summary::-webkit-details-marker { display: none; }
 770details.editbox > summary:hover { background: var(--hover); }
 771details.editbox[open] > summary { margin-bottom: var(--sp-2); }
 772details.editbox input[type="text"] { width: 100%; }
 773
 774/* ---- settings: one row per control, label then input then its own
 775   button. The name stays setform because the templates carry it.
 776   The label column takes the slack, so the control and the button ride
 777   the right edge: a checkbox, a number and a full-width text input all
 778   end on the same rule instead of the narrow ones stranding left. Its
 779   14rem floor is what keeps a hint from wrapping a word to a line once
 780   the control column claims its 28rem. ---- */
 781form.setform {
 782  display: grid;
 783  grid-template-columns: minmax(14rem, 1fr) minmax(0, 28rem) auto;
 784  gap: var(--sp-4);
 785  align-items: start;
 786  padding: var(--sp-3) 0;
 787  border-bottom: 1px solid var(--faint);
 788}
 789form.setform label { margin-top: 6px; }
 790form.setform .hint { margin: 2px 0 0; }
 791form.setform input[type="text"], form.setform input[type="password"], form.setform select { width: 100%; }
 792/* a control narrower than its column is pushed to the column's end,
 793   which is where a full-width input's own right edge lands */
 794form.setform .check { justify-content: flex-end; }
 795form.setform .num { text-align: right; }
 796form.setform .num input[type="number"] { width: auto; }
 797/* the third column takes the leftover width; the button keeps its own */
 798form.setform > button, form.setform > .btngroup { justify-self: start; }
 799form.setform.stack { grid-template-columns: 1fr; }
 800form.setform.stack textarea, form.setform.stack select, form.setform.stack input[type="text"], form.setform.stack input[type="password"] { width: 100%; max-width: 48rem; }
 801ul.protlist { list-style: none; margin: var(--sp-2) 0; padding: 0; }
 802ul.protlist li {
 803  display: flex;
 804  align-items: center;
 805  gap: var(--sp-3);
 806  padding: var(--sp-2) 0;
 807  border-bottom: 1px solid var(--faint);
 808}
 809ul.protlist li:last-child { border-bottom: 0; }
 810ul.protlist form { margin-left: auto; }
 811ul.plain { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
 812ul.plain li { padding: var(--sp-1) 0; display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
 813/* the email list: address and badges read left, the controls sit right,
 814   so the buttons line up down the list however long an address is */
 815ul.plain li > form:first-of-type { margin-left: auto; }
 816
 817/* ---- messages: .error and .notice are one family. The names stay
 818   because e2e tests match class="error". ---- */
 819.error, .notice {
 820  border-left: 3px solid var(--bad);
 821  background: color-mix(in srgb, var(--bad) 6%, transparent);
 822  color: var(--fg);
 823  border-radius: 0 var(--r-ctl) var(--r-ctl) 0;
 824  padding: var(--sp-2) var(--sp-3);
 825  margin: 0 0 var(--sp-4);
 826  font-size: var(--fs-2);
 827}
 828.notice { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 6%, transparent); }
 829.empty-note, .none, .empty, li.empty, td.empty { color: var(--muted); }
 830
 831/* ---- containers: calm hairline borders and clean surfaces ---- */
 832.card, ul.list, ul.loglist, ul.repolist, ul.issuelist,
 833ul.milestonelist, .readme, .code, article.release, .blame, .teambody {
 834  background: var(--canvas);
 835  border: 1px solid var(--faint);
 836  border-radius: var(--r-card);
 837  overflow: hidden;
 838}
 839.cardhead {
 840  display: flex;
 841  align-items: center;
 842  gap: var(--sp-3);
 843  padding: var(--sp-2) var(--sp-4);
 844  background: var(--surface);
 845  border-bottom: 1px solid var(--faint);
 846  font-size: var(--fs-1);
 847  color: var(--muted);
 848}
 849.cardhead b { color: var(--fg); font-weight: 500; }
 850.cardbody { padding: var(--sp-4) var(--sp-5); }
 851ul.list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
 852ul.list li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
 853ul.list li:last-child { border-bottom: 0; }
 854ul.list li:hover { background: var(--hover); }
 855
 856table { border-collapse: collapse; width: 100%; font-size: var(--fs-2); }
 857th {
 858  text-align: left;
 859  font-weight: 500;
 860  font-size: var(--fs-1);
 861  color: var(--muted);
 862  padding: 6px var(--sp-4);
 863  border-bottom: 1px solid var(--line);
 864}
 865td { padding: 7px var(--sp-4); border-bottom: 1px solid var(--faint); vertical-align: top; }
 866tr:last-child td { border-bottom: 0; }
 867tbody tr:hover td { background: var(--hover); }
 868/* every header row a template writes, by the class it or its table
 869   carries: TestHeaderRowsAreLeftAligned reads these selectors */
 870tr.cols th, table.tree th, table.refs th, table.keys th, table.assets th { text-align: left; }
 871tr.cols th { background: var(--canvas); }
 872/* right-aligned columns keep their header with their values */
 873tr.cols th.age, tr.cols th.size { text-align: right; }
 874/* wide listings scroll inside their own box; the page never does. The
 875   wrapper is the scroller only — the table inside carries the card. */
 876.tablewrap { overflow-x: auto; max-width: 100%; }
 877
 878table.tree, table.refs {
 879  background: var(--canvas);
 880  border: 1px solid var(--faint);
 881  border-radius: var(--r-card);
 882  /* collapsed borders defeat a radius on the table itself */
 883  border-collapse: separate;
 884  border-spacing: 0;
 885  overflow: hidden;
 886  margin-bottom: var(--sp-4);
 887}
 888table.tree tr:last-child td, table.refs tr:last-child td { border-bottom: 0; }
 889table.tree tr:hover td, table.refs tr:hover td { background: var(--hover); }
 890td.name a { color: var(--fg); }
 891td.name a:hover { color: var(--link); }
 892table.tree td.name { width: 25%; white-space: nowrap; }
 893table.tree td.name.dir a { color: var(--link); }
 894/* the glyph stays muted in both rows: it is a shape cue, and colour here
 895   goes on carrying what it already carries */
 896table.tree td.name svg { color: var(--muted); vertical-align: -0.125em; margin-right: var(--sp-2); }
 897table.tree th.lastcommit, table.tree td.lastcommit { width: 55%; }
 898table.tree td.lastcommit {
 899  max-width: 0;
 900  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
 901}
 902table.tree td.lastcommit a {
 903  color: var(--muted);
 904  display: block;
 905  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
 906}
 907table.tree td.lastcommit a:hover { color: var(--link); }
 908table.tree th.age, table.tree td.age { width: 20%; }
 909td.age, th.age { text-align: right; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
 910td.size, td.mode { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
 911table.tree th.size, table.tree td.size { text-align: right; }
 912table.refs td.name { width: 100%; }
 913table.refs td.sha, td.sha { color: var(--muted); }
 914
 915/* these tables sit flush with the page text: no outer border, and the
 916   header row drops the ground and the left padding */
 917table.keys, table.assets { background: none; border: 0; border-radius: 0; }
 918table.keys th, table.assets th, table.keys tr.cols th { background: transparent; padding-left: 0; }
 919table.keys td { padding-left: 0; }
 920table.keys td.act, table.assets td.size { text-align: right; }
 921/* a fingerprint or an account row is read across, not down: the cells
 922   keep one line each and .tablewrap scrolls what does not fit */
 923table.keys.nowrap th, table.keys.nowrap td { white-space: nowrap; }
 924/* The account list types a username to confirm, which is longer than
 925   the key prefixes the confirm field is sized for elsewhere. 14rem, not
 926   11rem, because "type <name> to confirm" was cut mid-word for a name of
 927   ordinary length; a long enough name still truncates and the field's
 928   aria-label carries the instruction in full either way.
 929
 930   The cell is two fixed slots, each right-aligned. A form cannot span
 931   table cells, so one column per control — which would let the table
 932   align them — is out without form="" plumbing, and the forms hold
 933   different numbers of controls: the enable form and the disabled
 934   row's Promote have no confirm field. Sizing the slot instead
 935   of the form is what puts every button in one column and every field
 936   in another; right-aligning the cell alone left the disabled row's
 937   Promote where other rows keep their field. A slot is a field, a gap
 938   and a button wide, so a form that is only a button still ends on the
 939   same rule. No element stands in for the controls a row lacks. */
 940table.accounts { --acct-field: 14rem; --acct-btn: 6rem; }
 941table.accounts td.acts { display: flex; justify-content: flex-end; align-items: center; gap: var(--sp-2); }
 942table.accounts input[name="confirm"] { width: var(--acct-field); }
 943table.accounts form.actions {
 944  flex: none;
 945  display: inline-flex;
 946  /* the generic form.actions wraps and grows its button to fill; both
 947     have to go, or the slot takes the button to a second line and the
 948     field sits above it */
 949  flex-wrap: nowrap;
 950  justify-content: flex-end;
 951  align-items: center;
 952  gap: var(--sp-2);
 953  width: calc(var(--acct-field) + var(--acct-btn) + var(--sp-2));
 954  margin: 0;
 955}
 956/* a set width, not a minimum: it makes the slot's arithmetic exact, and
 957   6rem clears the widest of Promote, Demote, Disable and Enable */
 958table.accounts form.actions button { flex: none; width: var(--acct-btn); justify-content: center; }
 959table.assets td.name { width: 100%; font-family: var(--mono); font-size: var(--fs-1); }
 960table.assets { margin-top: var(--sp-2); }
 961table.assets td.size, table.assets td.sha, table.assets td.act { white-space: nowrap; }
 962table.assets td.act form { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); }
 963
 964/* the tip commit is the first row of the file table */
 965tr.tipbar td {
 966  background: var(--surface);
 967  padding: var(--sp-3) var(--sp-4);
 968  border-bottom: 1px solid var(--line);
 969  max-width: 0;
 970}
 971.tipbar .tip {
 972  display: flex;
 973  align-items: center;
 974  gap: var(--sp-2);
 975  flex-wrap: wrap;
 976  min-width: 0;
 977  font-size: var(--fs-2);
 978}
 979.tipbar .who { font-weight: 600; }
 980.tipbar .subject { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 981.tipbar .subject:hover { color: var(--link); }
 982.tipbar .spacer { flex: 1; }
 983.tipbar .age { color: var(--muted); white-space: nowrap; }
 984
 985.readme { margin: var(--sp-5) 0; }
 986.readme .cardbody { max-width: 78ch; }
 987/* the overview README caps as a card, so prose and code share an edge */
 988.overview .readme { max-width: 88ch; }
 989/* until every card wraps its body in .cardbody, the rendered block is
 990   the body */
 991.readme > .rendered { padding: var(--sp-4) var(--sp-5); }
 992.code { background: var(--inset); padding: var(--sp-3) var(--sp-4); overflow-x: auto; }
 993.code pre { margin: 0; background: transparent !important; border: 0; padding: 0; }
 994pre.bigcode, .bigcode {
 995  font-family: var(--mono);
 996  /* the 404 numeral is a picture of a number, not body type */
 997  font-size: 4rem;
 998  color: var(--faint);
 999  -webkit-text-stroke: 1px var(--line);
1000  margin: 0;
1001  line-height: 1;
1002}
1003.notfound { text-align: center; padding: var(--sp-6) 0; }
1004.notfound h1 { margin-top: var(--sp-3); }
1005
1006ul.loglist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1007ul.loglist li {
1008  display: flex;
1009  align-items: baseline;
1010  gap: var(--sp-3);
1011  padding: var(--sp-3) var(--sp-4);
1012  border-bottom: 1px solid var(--faint);
1013}
1014ul.loglist li:last-child { border-bottom: 0; }
1015ul.loglist li:hover { background: var(--hover); }
1016ul.loglist p { margin: 0; }
1017ul.loglist .commitmain { flex: 1 1 auto; min-width: 0; }
1018ul.loglist .subject a { color: var(--fg); font-weight: 500; }
1019ul.loglist .subject a:hover { color: var(--link); }
1020ul.loglist .commitside { flex: none; display: flex; gap: var(--sp-2); align-items: center; white-space: nowrap; }
1021
1022ul.loglist.rows li { align-items: center; padding: var(--sp-2) var(--sp-4); }
1023ul.loglist.rows .commitmain { display: flex; align-items: baseline; gap: var(--sp-3); min-width: 0; }
1024ul.loglist.rows .meta { flex: none; color: var(--muted); font-size: var(--fs-1); white-space: nowrap; }
1025
1026ul.repolist { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; }
1027ul.repolist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
1028ul.repolist li:last-child { border-bottom: 0; }
1029ul.repolist li:hover { background: var(--hover); }
1030ul.repolist p { margin: 0; }
1031ul.repolist .reponame { font-size: var(--fs-3); }
1032ul.repolist .reponame a { color: var(--fg); }
1033ul.repolist .reponame a strong { color: var(--link); font-weight: 600; }
1034ul.repolist .reponame .sep { color: var(--muted); margin: 0 2px; }
1035ul.repolist .desc { margin-top: 2px; }
1036ul.repolist .topics, ul.repolist .meta { margin-top: var(--sp-1); }
1037
1038/* two-row repo list layout: name + chips left and branch/license/updated
1039   right on row 1; full readable description and wrapping topic pills on
1040   row 2 so descriptions are never crushed by long tag lists. */
1041ul.repolist.rows li {
1042  display: grid;
1043  grid-template-columns: minmax(0, 1fr) auto;
1044  gap: var(--sp-1) var(--sp-4);
1045  align-items: baseline;
1046  padding: var(--sp-3) var(--sp-4);
1047}
1048ul.repolist.rows .reponame {
1049  grid-column: 1;
1050  grid-row: 1;
1051  display: flex;
1052  align-items: center;
1053  gap: var(--sp-2);
1054  flex-wrap: wrap;
1055  font-size: var(--fs-3);
1056}
1057ul.repolist.rows .reponame .name { font-size: var(--fs-3); }
1058ul.repolist.rows .labels { display: inline-flex; gap: var(--sp-1); }
1059ul.repolist.rows .meta {
1060  grid-column: 2;
1061  grid-row: 1;
1062  display: inline-flex;
1063  align-items: center;
1064  gap: var(--sp-3);
1065  white-space: nowrap;
1066  font-size: var(--fs-1);
1067  color: var(--muted);
1068  margin: 0;
1069}
1070ul.repolist.rows .desc {
1071  grid-column: 1 / -1;
1072  color: var(--muted);
1073  font-size: var(--fs-2);
1074  margin: 2px 0 0;
1075  line-height: 1.45;
1076}
1077ul.repolist.rows .topics {
1078  grid-column: 1 / -1;
1079  display: flex;
1080  flex-wrap: wrap;
1081  gap: var(--sp-1);
1082  margin: var(--sp-1) 0 0;
1083}
1084ul.repolist.rows .branch { display: inline-flex; align-items: center; gap: 4px; }
1085ul.repolist.rows .license { font-family: var(--mono); font-size: var(--fs-0); }
1086ul.repolist.rows .updated { font-variant-numeric: tabular-nums; }
1087@media (max-width: 44rem) {
1088  ul.repolist.rows li { grid-template-columns: 1fr; }
1089  ul.repolist.rows .meta { grid-column: 1; grid-row: auto; flex-wrap: wrap; margin-top: var(--sp-1); }
1090}
1091ul.repolist.rows li.empty { display: block; }
1092
1093/* pinned repos: a compact wrap of names, no description or meta */
1094ul.pinlist { list-style: none; margin: var(--sp-3) 0 var(--sp-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
1095ul.pinlist li {
1096  background: var(--surface);
1097  border: 1px solid var(--line);
1098  border-radius: var(--r-ctl);
1099  padding: var(--sp-1) var(--sp-3);
1100}
1101ul.pinlist li:hover { background: var(--hover); }
1102ul.pinlist li a { color: var(--fg); }
1103ul.pinlist li a:hover { color: var(--link); text-decoration: none; }
1104ul.pinlist .sep { color: var(--muted); margin: 0 2px; }
1105
1106ul.issuelist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1107ul.issuelist li {
1108  display: flex;
1109  align-items: baseline;
1110  gap: var(--sp-3);
1111  padding: var(--sp-3) var(--sp-4);
1112  border-bottom: 1px solid var(--faint);
1113}
1114ul.issuelist li:last-child { border-bottom: 0; }
1115ul.issuelist li:hover { background: var(--hover); }
1116ul.issuelist li.empty { display: block; }
1117ul.issuelist p { margin: 0; }
1118ul.issuelist .issuemain { flex: 1 1 auto; min-width: 0; }
1119ul.issuelist .issueside { display: flex; gap: var(--sp-2); align-items: center; flex: none; }
1120ul.issuelist .title a { color: var(--fg); font-weight: 500; }
1121ul.issuelist .title a:hover { color: var(--link); }
1122
1123/* one-line rows: title, labels, then the meta pushed right. Above 64rem
1124   a list is a table, not prose (desktop layout spec). */
1125ul.issuelist.rows li { align-items: center; padding: var(--sp-2) var(--sp-4); }
1126ul.issuelist.rows .issuemain { display: flex; align-items: baseline; gap: var(--sp-3); min-width: 0; }
1127ul.issuelist.rows .title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1128ul.issuelist.rows .title .chip { margin-left: var(--sp-1); }
1129ul.issuelist.rows .meta { flex: none; color: var(--muted); font-size: var(--fs-1); white-space: nowrap; }
1130ul.issuelist.rows .meta .repo { color: var(--fg); }
1131
1132ul.milestonelist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1133ul.milestonelist li { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--faint); }
1134ul.milestonelist li:last-child { border-bottom: 0; }
1135ul.milestonelist li:hover { background: var(--hover); }
1136ul.milestonelist p { margin: 0; }
1137ul.milestonelist .msmain { min-width: 0; }
1138ul.milestonelist .title { font-weight: 500; }
1139.progress {
1140  height: 6px;
1141  max-width: 24rem;
1142  margin-top: var(--sp-2);
1143  background: var(--faint);
1144  border-radius: var(--r-ctl);
1145  overflow: hidden;
1146}
1147.progress .bar { height: 100%; background: var(--ok); }
1148
1149article.release { padding: var(--sp-4); margin: var(--sp-4) 0; }
1150.releasehead { background: none; border: 0; padding: 0; }
1151.releasehead h2 { margin: 0 0 var(--sp-1); font-size: var(--fs-3); }
1152.releasehead .meta { margin: 0 0 var(--sp-2); }
1153
1154ul.matchlist { list-style: none; margin: var(--sp-3) 0; padding: 0; }
1155ul.matchlist li { margin-bottom: var(--sp-3); }
1156.matchpath { font-family: var(--mono); font-size: var(--fs-1); }
1157/* a name in highlighted source that links to its definition keeps its
1158   token colour; the dotted underline is what marks it as a link */
1159.chroma a.sym { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
1160.chroma a.sym:hover { text-decoration-style: solid; }
1161details.symlist { margin: 0 0 var(--sp-3); font-size: var(--fs-1); }
1162details.symlist summary { cursor: pointer; color: var(--muted); }
1163details.symlist ul { list-style: none; margin: var(--sp-2) 0 0; padding: 0; columns: 16rem; }
1164details.symlist li { break-inside: avoid; padding: 2px 0; }
1165pre.matchline {
1166  background: var(--inset);
1167  border: 1px solid var(--line);
1168  border-radius: var(--r-card);
1169  padding: var(--sp-1) var(--sp-3);
1170  margin: var(--sp-1) 0 0;
1171  overflow-x: auto;
1172}
1173pre.matchline mark { background: color-mix(in srgb, var(--mark) 25%, transparent); color: inherit; border-radius: 2px; }
1174p.pager { margin-top: var(--sp-4); }
1175.snippetfile { margin-bottom: var(--sp-5); }
1176p.filefacts { color: var(--muted); font-size: var(--fs-1); margin: 0 0 var(--sp-3); }
1177pre.buildlog { max-height: 40rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
1178details.buildstep pre.buildlog { margin: 0; border: 0; border-radius: 0; }
1179details.buildstep summary code { overflow-wrap: anywhere; }
1180
1181/* ---- rendered prose ---- */
1182pre {
1183  background: var(--inset);
1184  border: 1px solid var(--line);
1185  border-radius: var(--r-card);
1186  padding: var(--sp-3) var(--sp-4);
1187  margin: 0 0 var(--sp-4);
1188  overflow-x: auto;
1189  font-size: var(--fs-2);
1190  line-height: 1.6;
1191}
1192code {
1193  background: var(--inset);
1194  border: 1px solid var(--faint);
1195  border-radius: var(--r-ctl);
1196  padding: 0 0.3em;
1197}
1198pre code { background: none; border: 0; padding: 0; font-size: inherit; }
1199code.fullsha { color: var(--muted); overflow-wrap: anywhere; }
1200pre.message {
1201  white-space: pre-wrap;
1202  overflow-wrap: anywhere;
1203}
1204.rendered { max-width: 100%; overflow-wrap: anywhere; }
1205.rendered a { text-decoration: underline; }
1206.prose, .rendered > p, .rendered > ul, .rendered > ol, .rendered > blockquote { max-width: 78ch; }
1207.rendered blockquote { border-left: 3px solid var(--line); margin-left: 0; padding-left: var(--sp-4); color: var(--muted); }
1208.rendered img { max-width: 100%; }
1209.rendered h1, .rendered h2 { border-bottom: 1px solid var(--faint); padding-bottom: var(--sp-1); }
1210.rendered table { border-collapse: collapse; margin: var(--sp-3) 0; display: block; max-width: 100%; overflow-x: auto; }
1211.rendered th, .rendered td {
1212  border: 1px solid var(--line);
1213  padding: var(--sp-1) var(--sp-3);
1214  text-align: left;
1215  overflow-wrap: normal; /* scroll the table, don't shatter words */
1216}
1217.rendered th { background: var(--surface); font-weight: 600; }
1218.rendered tr:last-child td { border-bottom: 1px solid var(--line); }
1219/* GFM task lists: the box sits in the line, sized to the prose */
1220.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; }
1221.rendered li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.2em; }
1222.blobimage { text-align: center; }
1223.blobimage img { max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
1224
1225/* ---- dashboard: pinned column, tiles and queues, feed ---- */
1226.dashgrid { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 20rem; gap: var(--sp-6); align-items: start; }
1227.dashgrid h1 { margin-top: 0; }
1228.dashgrid > aside { position: sticky; top: var(--sp-5); }
1229.dashgrid .dashmain h2 { margin-top: var(--sp-5); }
1230.dashgrid .dashmain .tiles + h2 { margin-top: 0; }
1231.colhead {
1232  margin: 0 0 var(--sp-2);
1233  font-size: var(--fs-0);
1234  font-weight: 500;
1235  letter-spacing: 0.08em;
1236  text-transform: uppercase;
1237  color: var(--muted);
1238}
1239.pins { list-style: none; margin: 0; padding: 0; font-size: var(--fs-2); }
1240.pins li { display: flex; align-items: center; gap: var(--sp-2); padding: 6px 0; border-bottom: 1px solid var(--faint); }
1241.pins li:last-child { border-bottom: 0; }
1242.pins a { color: var(--fg); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1243.pins a:hover { color: var(--link); }
1244.pins .owner { color: var(--muted); }
1245.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; }
1246.pins .n b { font-weight: 600; color: var(--fg); }
1247.pins .n b.wants { color: var(--warn); }
1248.pins .dot { margin: 0; }
1249/* count tiles: the queues' sizes in one strip; a non-zero count is orange,
1250   what wants you */
1251.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-5); }
1252.tile {
1253  display: block;
1254  background: var(--surface);
1255  border: 1px solid var(--line);
1256  border-radius: var(--r-card);
1257  padding: var(--sp-3) var(--sp-4);
1258  color: var(--fg);
1259}
1260a.tile:hover { background: var(--hover); text-decoration: none; }
1261.tile b { display: block; font-size: var(--fs-5); font-weight: 600; line-height: 1.2; }
1262.tile.wants b { color: var(--warn); }
1263.tile span { font-size: var(--fs-1); color: var(--muted); }
1264.feedcol .feedline { font-size: var(--fs-2); margin-bottom: var(--sp-2); }
1265.feedcol .feedline .none { font-size: var(--fs-1); }
1266
1267/* ---- two-column: conversation and aside ---- */
1268.withaside { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-6); align-items: start; }
1269.withaside .mainside { min-width: 0; }
1270aside.aside { font-size: var(--fs-2); }
1271.aside .grp { border-top: 1px solid var(--line); padding: var(--sp-3) 0; }
1272.aside .grp:first-child { border-top: 0; padding-top: 0; }
1273.aside h2 {
1274  margin: 0 0 var(--sp-2);
1275  font-size: var(--fs-0);
1276  font-weight: 500;
1277  letter-spacing: 0.08em;
1278  text-transform: uppercase;
1279  color: var(--muted);
1280}
1281.aside .row { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--sp-1); flex-wrap: wrap; }
1282.aside .row:last-child { margin-bottom: 0; }
1283/* a row's second line: when it happened, under what it happened to */
1284.aside .row .sub { flex-basis: 100%; padding-left: 14px; color: var(--muted); font-size: var(--fs-1); }
1285.aside .row:has(.sub) { margin-bottom: var(--sp-2); }
1286.aside .none { color: var(--muted); }
1287.dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--neutral); margin-right: 2px; vertical-align: middle; }
1288.dot.ok { background: var(--ok); }
1289.dot.bad { background: var(--bad); }
1290.dot.pend { background: var(--mark); }
1291.ok { color: var(--ok); }
1292.bad { color: var(--bad); }
1293form.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
1294form.actions button { flex: 1 1 auto; }
1295form.actions select, form.actions textarea { width: 100%; }
1296.feedline { margin-bottom: var(--sp-2); }
1297
1298/* ---- comments and threads ---- */
1299article.comment {
1300  max-width: 48rem;
1301  border: 1px solid var(--line);
1302  border-radius: var(--r-card);
1303  margin: var(--sp-4) 0;
1304  overflow: hidden;
1305}
1306article.comment .commenthead {
1307  display: flex;
1308  gap: var(--sp-2);
1309  flex-wrap: wrap;
1310  background: var(--surface);
1311  border-bottom: 1px solid var(--line);
1312  padding: var(--sp-2) var(--sp-4);
1313  margin: 0;
1314  font-size: var(--fs-1);
1315  color: var(--muted);
1316}
1317article.comment .commenthead b { color: var(--fg); font-weight: 500; }
1318article.comment .commenthead .when { color: var(--muted); }
1319article.comment .rendered { padding: var(--sp-3) var(--sp-4); }
1320article.comment .rendered > :first-child { margin-top: 0; }
1321article.comment .rendered > :last-child { margin-bottom: 0; }
1322a.authorlink { color: var(--fg); font-weight: 500; }
1323a.authorlink:hover { color: var(--link); }
1324
1325.syscomment {
1326  max-width: 48rem;
1327  color: var(--muted);
1328  font-size: var(--fs-1);
1329  margin: 0 0 var(--sp-4) var(--sp-3);
1330  padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
1331  border-left: 2px solid var(--faint);
1332}
1333.syscomment p { display: inline; margin: 0; }
1334
1335.thread {
1336  border: 1px solid var(--faint);
1337  border-left: 3px solid var(--link);
1338  border-radius: var(--r-ctl);
1339  padding: var(--sp-2) var(--sp-4);
1340  margin: var(--sp-2) 0 var(--sp-2) var(--sp-6);
1341}
1342.thread.resolved { border-left-color: var(--ok); opacity: 0.75; }
1343/* an unsubmitted comment is the viewer's own note, not the conversation */
1344.thread.pending { border-left-color: var(--neutral); border-left-style: dashed; }
1345.thread.stale { border-left-color: var(--warn); }
1346.thread.composing { border-left-color: var(--mark); }
1347.thread:target { outline: 2px solid var(--mark); outline-offset: 2px; }
1348.thread p.commenthead { font-size: var(--fs-2); margin: var(--sp-2) 0 0; }
1349.thread .when { color: var(--muted); }
1350.thread .rendered p { margin: var(--sp-1) 0; }
1351.thread .threadstate { color: var(--muted); font-size: var(--fs-1); margin: var(--sp-1) 0 0; }
1352.thread details.threadreply { margin: var(--sp-2) 0 0; }
1353.thread details.threadreply > summary { color: var(--link); font-size: var(--fs-1); cursor: pointer; }
1354.thread textarea { width: 100%; }
1355.thread.composing p, .thread details.threadreply p { margin: var(--sp-2) 0 0; }
1356form.threadact { margin: var(--sp-1) 0 0; padding: 0 var(--sp-3) var(--sp-2); }
1357.thread .suggestion { margin: var(--sp-2) 0 0; }
1358.thread .suggestion table.difftable { margin: var(--sp-1) 0 0; }
1359.thread .suggestion table.difftable tr.add td,
1360.thread .suggestion table.difftable tr.del td { display: table-cell; }
1361
1362nav.subtabs {
1363  display: flex;
1364  gap: var(--sp-4);
1365  border-bottom: 1px solid var(--line);
1366  margin: 0 0 var(--sp-4);
1367}
1368nav.subtabs a {
1369  display: inline-flex;
1370  align-items: center;
1371  gap: var(--sp-1);
1372  padding: var(--sp-2) 0 10px;
1373  color: var(--muted);
1374  font-size: var(--fs-2);
1375  border-bottom: 2px solid transparent;
1376  margin-bottom: -1px;
1377}
1378nav.subtabs a:hover { color: var(--fg); text-decoration: none; }
1379nav.subtabs a[aria-current] { color: var(--fg); font-weight: 600; border-bottom-color: var(--mark); }
1380nav.subtabs a i { font-style: normal; color: var(--muted); margin-left: 4px; }
1381
1382/* ---- diffs and code ---- */
1383p.diffstat { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-3); }
1384p.diffstat .add { color: var(--ok); }
1385p.diffstat .del { color: var(--bad); }
1386
1387details.difffold {
1388  border: 1px solid var(--line);
1389  border-radius: var(--r-card);
1390  margin: 0 0 var(--sp-3);
1391  background: var(--inset);
1392  overflow: hidden;
1393}
1394details.difffold summary {
1395  display: flex;
1396  align-items: baseline;
1397  gap: var(--sp-3);
1398  padding: var(--sp-2) var(--sp-3);
1399  background: var(--surface);
1400  font-size: var(--fs-2);
1401  cursor: pointer;
1402  list-style: none;
1403}
1404details.difffold[open] summary { border-bottom: 1px solid var(--line); }
1405details.difffold summary::-webkit-details-marker { display: none; }
1406/* flex summaries lose the native disclosure marker; draw our own */
1407details.difffold summary::before { content: "\25b8"; color: var(--muted); }
1408details.difffold[open] summary::before { content: "\25be"; }
1409details.difffold summary:hover { background: var(--hover); }
1410details.difffold summary .fpath { font-family: var(--mono); overflow-wrap: anywhere; }
1411details.difffold summary .fpath .was { color: var(--muted); }
1412details.difffold summary .fstat { margin-left: auto; font-family: var(--mono); white-space: nowrap; }
1413details.difffold summary .add { color: var(--ok); }
1414details.difffold summary .del { color: var(--bad); }
1415details.difffold > .none { padding: var(--sp-3); margin: 0; }
1416details.difffold .tablewrap { background: none; border: 0; border-radius: 0; }
1417
1418table.difftable {
1419  border-collapse: collapse;
1420  width: 100%;
1421  font-family: var(--mono);
1422  font-size: var(--fs-1);
1423  line-height: 1.5;
1424}
1425table.difftable td { border: 0; padding: 0; vertical-align: top; font-size: inherit; }
1426table.difftable tbody tr:hover td { background: none; }
1427table.difftable td.ln {
1428  width: 1%;
1429  min-width: 2.5rem;
1430  padding: 0 var(--sp-2);
1431  text-align: right;
1432  color: var(--muted);
1433  user-select: none;
1434  border-right: 1px solid var(--line);
1435  white-space: nowrap;
1436}
1437/* not .code: that class carries its own ground, which painted over the
1438   row tints */
1439table.difftable td.src { padding: 0 var(--sp-3); white-space: pre-wrap; overflow-wrap: anywhere; }
1440/* the marker is decoration, so it lives in CSS and stays out of a copied
1441   selection */
1442table.difftable tr.add td.src::before { content: "+"; color: var(--ok); }
1443table.difftable tr.del td.src::before { content: "\2212"; color: var(--bad); }
1444table.difftable tr.ctx td.src::before { content: " "; }
1445table.difftable tr.add { background: var(--diff-add); }
1446table.difftable tr.del { background: var(--diff-del); }
1447table.difftable tr.hunk td, table.difftable tr.dmeta td {
1448  color: var(--muted);
1449  padding: var(--sp-1) var(--sp-3);
1450  background: var(--surface);
1451  border-top: 1px solid var(--line);
1452  border-bottom: 1px solid var(--line);
1453}
1454table.difftable tr.hunk td.src { color: var(--link); }
1455table.difftable tr.threadrow td { padding: var(--sp-2) var(--sp-3); background: var(--canvas); }
1456/* a line number is the handle for commenting on that line; it stays a
1457   plain number until pointed at, so the gutter is not a wall of links */
1458table.difftable td.ln a.cmt { color: inherit; text-decoration: none; }
1459table.difftable td.ln a.cmt:hover,
1460table.difftable td.ln a.cmt:focus { color: var(--link); text-decoration: underline; }
1461/* split layout: old and new side by side in one table. Where two
1462   columns of code do not fit, each row becomes a two-column grid and the
1463   old cells stack over the new, which reads as a unified diff. */
1464table.difftable.split { table-layout: fixed; }
1465table.difftable.split col.cln { width: 3.5rem; }
1466table.difftable.split td.ln.ctx, table.difftable.split td.ln.none { border-right: 1px solid var(--line); }
1467table.difftable.split td.ln + td.src + td.ln { border-left: 1px solid var(--line); }
1468table.difftable.split td.ln { width: auto; }
1469table.difftable.split td.del { background: var(--diff-del); }
1470table.difftable.split td.add { background: var(--diff-add); }
1471table.difftable.split td.none { background: var(--surface); }
1472table.difftable.split td.src.add::before { content: "+"; color: var(--ok); }
1473table.difftable.split td.src.del::before { content: "\2212"; color: var(--bad); }
1474table.difftable.split td.src.ctx::before { content: " "; }
1475table.difftable.split tr.threadrow td { overflow-wrap: anywhere; }
1476table.difftable.split td.ln:target,
1477table.difftable.split td.ln:target + td { background: color-mix(in srgb, var(--mark) 18%, transparent); }
1478table.difftable.split td.ln:target { border-left: 3px solid var(--mark); }
1479table.difftable.split .nonl { display: block; color: var(--muted); font-style: italic; }
1480p.layoutpick { color: var(--muted); font-size: var(--fs-2); margin: 0 0 var(--sp-3); }
1481p.layoutpick strong { color: var(--fg); font-weight: 600; }
1482@media (max-width: 64rem) {
1483  p.layoutpick { display: none; }
1484  table.difftable.split, table.difftable.split tbody { display: block; }
1485  table.difftable.split colgroup { display: none; }
1486  table.difftable.split tr.pair { display: grid; grid-template-columns: auto 1fr; }
1487  table.difftable.split tr.pair td.none, table.difftable.split tr.pair td.ctx.old { display: none; }
1488  table.difftable.split td.ln + td.src + td.ln { border-left: 0; }
1489  table.difftable.split tr.pair td.ln { min-width: 3rem; }
1490  table.difftable.split tr.hunk, table.difftable.split tr.dmeta,
1491  table.difftable.split tr.threadrow { display: block; }
1492  table.difftable.split tr.hunk td.ln, table.difftable.split tr.dmeta td.ln { display: none; }
1493  table.difftable.split tr.hunk td, table.difftable.split tr.dmeta td,
1494  table.difftable.split tr.threadrow td { display: block; }
1495}
1496/* A linked line: f2-n17 on a diff, L17 on a file (see issue 118). */
1497.difftable tr:target td, .code .line:has(a:target) { background: color-mix(in srgb, var(--mark) 18%, transparent); }
1498.difftable tr:target td.ln, .code .line:has(a:target) .ln { border-left: 3px solid var(--mark); }
1499/* chroma writes the highlighted spans; the container only supplies the
1500   ground and the face */
1501.chroma { font-family: var(--mono); background: none; }
1502/* chroma's own LineLink rule is dropped from the served palette: it set
1503   outline: none and hid the focus ring. This is that rule without it, on
1504   a 24px box so a line number is a target and not a glyph (#232) */
1505.chroma .lnlinks { display: inline-block; min-width: 24px; min-height: 24px; line-height: 24px; text-decoration: none; color: inherit; }
1506.chroma .line { line-height: 24px; }
1507
1508.blamehunk { display: flex; gap: var(--sp-3); border-top: 1px solid var(--line); align-items: flex-start; }
1509.blamehunk:first-child { border-top: 0; }
1510.blameinfo { flex: none; width: 17rem; min-width: 0; padding: var(--sp-2) var(--sp-3); }
1511.blameinfo .subject { margin: 0; font-size: var(--fs-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
1512.blameinfo .meta { margin: 0; font-size: var(--fs-1); color: var(--muted); }
1513.blamecode {
1514  flex: 1;
1515  margin: 0;
1516  padding: var(--sp-2) var(--sp-3) var(--sp-2) 0;
1517  background: var(--inset);
1518  border: 0;
1519  border-left: 1px solid var(--line);
1520  border-radius: 0;
1521  overflow-x: auto;
1522  align-self: stretch;
1523}
1524.lineno {
1525  display: inline-block;
1526  min-width: 3.5em;
1527  padding-right: 1em;
1528  text-align: right;
1529  color: var(--muted);
1530  user-select: none;
1531}
1532
1533/* ---- chips and badges ---- */
1534.chip, .badge {
1535  --chip: var(--neutral);
1536  display: inline-block;
1537  padding: 1px 8px;
1538  border-radius: var(--r-ctl);
1539  font-size: var(--fs-0);
1540  font-weight: 500;
1541  line-height: 1.5;
1542  color: var(--chip);
1543  border: 1px solid color-mix(in srgb, var(--chip) 40%, transparent);
1544  background: color-mix(in srgb, var(--chip) 10%, var(--canvas));
1545  white-space: nowrap;
1546  vertical-align: middle;
1547}
1548.chip-open { --chip: var(--ok); }
1549.chip-closed { --chip: var(--bad); }
1550.chip-merged, .chip-done { --chip: var(--done); }
1551.chip-neutral, .chip-source_gone { --chip: var(--neutral); }
1552.chip-stale { --chip: var(--warn); }
1553.chip.topic { --chip: var(--link); }
1554.chip.topic:hover { text-decoration: none; background: color-mix(in srgb, var(--chip) 18%, transparent); }
1555/* A label carries its own colour inline, from the label's hex, as one
1556   tone per scheme: chip text is 12px, so it needs 4.5:1 against its own
1557   ground, and no single colour clears that on both canvases (#226). An
1558   old browser without light-dark() drops the declaration and the chip
1559   falls back to the neutral above. */
1560.chip.label {
1561  --chip: light-dark(var(--chip-l, var(--neutral)), var(--chip-d, var(--neutral)));
1562  font-weight: 500;
1563}
1564.badge-verified { --chip: var(--ok); }
1565.badge-unsigned { --chip: var(--neutral); }
1566.badge-signed_unknown_key, .badge-signed_key_expired { --chip: var(--warn); }
1567.badge-signed_email_mismatch, .badge-signed_key_revoked, .badge-bad_signature { --chip: var(--bad); }
1568.badge.check-success, .chip.check-success { --chip: var(--ok); }
1569.badge.check-pending, .chip.check-pending,
1570.badge.check-running, .chip.check-running { --chip: var(--warn); }
1571.badge.check-failure, .chip.check-failure,
1572.badge.check-error, .chip.check-error { --chip: var(--bad); }
1573.badge.check-cancelled, .chip.check-cancelled,
1574.badge.check-skipped, .chip.check-skipped { --chip: var(--neutral); }
1575span.check-success { color: var(--ok); }
1576span.check-pending, span.check-running { color: var(--warn); }
1577span.check-failure, span.check-error { color: var(--bad); }
1578
1579a.memberchip {
1580  display: inline-block;
1581  border: 1px solid var(--line);
1582  border-radius: var(--r-ctl);
1583  padding: 1px 8px;
1584  margin: 0 2px 2px 0;
1585  color: var(--fg);
1586  font-size: var(--fs-1);
1587}
1588a.memberchip:hover { text-decoration: none; border-color: var(--link); color: var(--link); }
1589a.memberchip .role { color: var(--muted); }
1590
1591.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; }
1592.pathbar .spacer { flex: 1; }
1593.pathbar .actions { display: flex; align-items: center; gap: var(--sp-2); }
1594/* history · blame · raw were 21px tall and "raw" 22px wide (#232) */
1595.pathbar .actions a { display: inline-block; padding: 6px 4px; }
1596.pathbar .acts { display: flex; gap: var(--sp-2); }
1597.crumbs { color: var(--muted); }
1598.crumbs a { color: var(--link); }
1599.crumbs strong { color: var(--fg); }
1600
1601/* ---- file navigator: the directory beside a file ---- */
1602.blobgrid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
1603.blobmain { min-width: 0; }
1604.filenav { position: sticky; top: var(--sp-4); font-size: var(--fs-2); }
1605.filenav ul { list-style: none; margin: 0; padding: 0; }
1606.filenav li a {
1607  display: block;
1608  padding: 3px var(--sp-2);
1609  border-radius: var(--r-ctl);
1610  color: var(--fg);
1611  font-family: var(--mono);
1612  font-size: var(--fs-1);
1613  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
1614}
1615.filenav li a:hover { background: var(--hover); text-decoration: none; }
1616.filenav li a[aria-current] { background: var(--surface); box-shadow: inset 2px 0 0 var(--mark); font-weight: 600; }
1617.filenav li a.dir { color: var(--link); }
1618.filenav li a.up { color: var(--muted); }
1619
1620/* ---- side column: facets or sections beside a list or a form ---- */
1621.withcol { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
1622.withcol.narrow { grid-template-columns: 15rem minmax(0, 56rem); }
1623.colmain { min-width: 0; }
1624.sidecol { position: sticky; top: var(--sp-4); font-size: var(--fs-2); }
1625.sidecol .grp { margin-bottom: var(--sp-4); }
1626.sidecol ul { list-style: none; margin: 0; padding: 0; }
1627.sidecol li a {
1628  display: flex; align-items: baseline; gap: var(--sp-2);
1629  padding: 4px var(--sp-2);
1630  border-radius: var(--r-ctl);
1631  color: var(--fg);
1632}
1633.sidecol li a:hover { background: var(--hover); text-decoration: none; }
1634.sidecol li a[aria-current] { background: var(--surface); box-shadow: inset 2px 0 0 var(--mark); font-weight: 500; }
1635.sidecol li a i { margin-left: auto; font-style: normal; color: var(--muted); font-size: var(--fs-1); font-variant-numeric: tabular-nums; }
1636.sidecol form.searchform { margin-top: var(--sp-2); }
1637.sidecol form.searchform input[type="text"] { min-width: 0; width: 100%; }
1638
1639/* The column's groups sit in a disclosure. Below 62rem that is all the
1640   reader sees of the column: one closed line before the list, because a
1641   repository with two dozen labels stacked the whole vocabulary under
1642   the content it filters. Above 62rem the summary is hidden and the
1643   content shown whatever the open state, so the column is what it
1644   always was. The @supports guard is the fail-safe: an engine without
1645   ::details-content keeps a working toggle at every width instead of
1646   losing the column (#237). */
1647.sidedrop > summary {
1648  display: inline-flex;
1649  align-items: center;
1650  gap: var(--sp-2);
1651  height: 32px;
1652  padding: 0 var(--sp-3);
1653  background: var(--canvas);
1654  border: 1px solid var(--line);
1655  border-radius: var(--r-ctl);
1656  color: var(--fg);
1657  font-size: var(--fs-2);
1658  cursor: pointer;
1659  list-style: none;
1660}
1661.sidedrop[open] > summary { margin-bottom: var(--sp-3); }
1662.sidedrop > summary::-webkit-details-marker { display: none; }
1663.sidedrop > summary:hover { background: var(--hover); }
1664.sidedrop > summary::after { content: "\25be"; color: var(--muted); }
1665.sidedrop[open] > summary::after { content: "\25b4"; }
1666.sideword { font-weight: 600; }
1667/* the filters in force: where you are */
1668.sideon { color: var(--warn); }
1669/* every group came out empty, so there is nothing to open */
1670.sidedrop:not(:has(.grp)) { display: none; }
1671
1672@media (min-width: 62.01rem) {
1673  @supports selector(::details-content) {
1674    .sidedrop > summary { display: none; }
1675    .sidedrop::details-content { content-visibility: visible; }
1676  }
1677}
1678
1679/* a sticky column taller than the viewport scrolls inside itself, or its
1680   tail is unreachable once the page scrolls. Above 62rem only: below it
1681   .filenav is hidden and the other two are static. .dashpins stops being
1682   a column at 80rem and resets both properties there. */
1683@media (min-width: 62.01rem) {
1684  .filenav, .sidecol, .dashgrid > aside { max-height: calc(100vh - 2 * var(--sp-4)); overflow-y: auto; }
1685}
1686
1687.refchip {
1688  display: inline-flex;
1689  align-items: center;
1690  gap: 6px;
1691  height: 32px;
1692  padding: 0 10px;
1693  background: var(--canvas);
1694  border: 1px solid var(--line);
1695  border-radius: var(--r-ctl);
1696  font-family: var(--mono);
1697  font-size: var(--fs-2);
1698  font-weight: 500;
1699  color: var(--fg);
1700}
1701details.refmenu { position: relative; }
1702details.refmenu summary { cursor: pointer; list-style: none; }
1703details.refmenu summary::-webkit-details-marker { display: none; }
1704details.refmenu summary::after { content: " \25be"; color: var(--muted); }
1705details.refmenu .refdrop {
1706  position: absolute;
1707  z-index: 10;
1708  top: calc(100% + 4px);
1709  left: 0;
1710  min-width: 12rem;
1711  max-height: 20rem;
1712  overflow-y: auto;
1713  overscroll-behavior: contain;
1714  background: var(--canvas);
1715  border: 1px solid var(--line);
1716  border-radius: var(--r-card);
1717  box-shadow: var(--shadow);
1718  padding: var(--sp-1) 0;
1719}
1720details.refmenu .refdrop a {
1721  display: block;
1722  padding: var(--sp-1) var(--sp-3);
1723  color: var(--fg);
1724  font-family: var(--mono);
1725  font-size: var(--fs-1);
1726}
1727details.refmenu .refdrop a:hover { background: var(--hover); text-decoration: none; }
1728details.refmenu .refdrop a.allrefs {
1729  color: var(--link);
1730  font-family: var(--sans);
1731  border-top: 1px solid var(--faint);
1732  margin-top: var(--sp-1);
1733}
1734
1735/* ---- repository overview layout ---- */
1736.overview { display: block; }
1737.overviewmain { min-width: 0; }
1738/* the side column exists only above 62rem; below it .facts keeps its
1739   own two-up layout and the 40rem factgrid rule applies untouched */
1740@media (min-width: 62.01rem) {
1741  .overview.withfacts { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-6); align-items: start; }
1742  .overview.withfacts .facts { display: block; margin-top: 0; max-width: none; }
1743  .overview.withfacts .facts .factgrid { grid-template-columns: repeat(2, auto); }
1744  .overview.withfacts .clone pre { white-space: pre-wrap; word-break: break-all; }
1745}
1746
1747/* ---- repository facts ---- */
1748.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin: var(--sp-5) 0 var(--sp-4); max-width: 72rem; }
1749.facts h2 {
1750  margin: 0 0 var(--sp-2);
1751  font-size: var(--fs-1);
1752  font-weight: 500;
1753  letter-spacing: 0.08em;
1754  text-transform: uppercase;
1755  color: var(--muted);
1756}
1757.clone { margin: 0 0 var(--sp-3); }
1758.facts .about { min-width: 0; margin-bottom: var(--sp-5); }
1759.clone .fieldname { font-size: var(--fs-1); color: var(--muted); font-weight: 500; margin-bottom: 2px; }
1760.clone pre { margin-bottom: var(--sp-3); user-select: all; }
1761.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); }
1762.factgrid b { font-weight: 600; }
1763.factgrid a { color: var(--fg); }
1764.factgrid a:hover { color: var(--link); }
1765.counts { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin: 0 0 var(--sp-3); font-size: var(--fs-2); }
1766.counts a { color: var(--fg); }
1767.counts a:hover { color: var(--link); }
1768.counts strong { font-weight: 600; }
1769.fact { color: var(--muted); }
1770.langbar { display: flex; height: 8px; margin: 0 0 var(--sp-2); border-radius: var(--r-ctl); overflow: hidden; gap: 1px; background: var(--faint); }
1771.langbar .lang { display: block; height: 100%; min-width: 2px; }
1772.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); }
1773.langs .lang-name { display: inline-flex; align-items: center; gap: var(--sp-1); }
1774.langs .dot { width: 8px; height: 8px; }
1775/* named where it reads as the language's own colour, neutral otherwise */
1776.lang { background: var(--neutral); }
1777.lang-go { background: var(--lang-go); }
1778.lang-rust { background: var(--lang-rust); }
1779.lang-c, .lang-c- { background: var(--lang-c); }
1780.lang-python { background: var(--lang-python); }
1781.lang-javascript { background: var(--lang-javascript); }
1782.lang-typescript { background: var(--lang-typescript); }
1783.lang-shell { background: var(--lang-shell); }
1784.lang-ruby { background: var(--lang-ruby); }
1785.lang-java { background: var(--lang-java); }
1786.lang-swift { background: var(--lang-swift); }
1787.lang-html { background: var(--lang-html); }
1788.lang-css { background: var(--lang-css); }
1789.lang-org { background: var(--lang-org); }
1790.lang-markdown { background: var(--lang-markdown); }
1791.lang-emacs-lisp { background: var(--lang-emacs-lisp); }
1792.lang-nix { background: var(--lang-nix); }
1793.lang-sql { background: var(--lang-sql); }
1794.contribs { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); margin: 0; font-size: var(--fs-1); }
1795.contribs .label { color: var(--muted); }
1796.teambody { padding: var(--sp-3); }
1797.teambody .memberchip { margin-right: var(--sp-2); }
1798
1799/* ---- landing ---- */
1800/* the width class on main carries this too; the cap here keeps the page
1801   readable on the templates that do not set one yet */
1802.landing { max-width: 48rem; padding: var(--sp-6) 0; }
1803.landing h1 { font-size: var(--fs-6); display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
1804.landing h1 .mark { width: 32px; height: 32px; }
1805.lede { font-size: var(--fs-4); color: var(--muted); line-height: 1.5; max-width: 40rem; margin: 0 0 var(--sp-5); }
1806pre.quickstart { margin: 0 0 var(--sp-4); }
1807.shot { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; margin: var(--sp-5) 0; }
1808.shot video { display: block; width: 100%; height: auto; }
1809.shot figcaption {
1810  border-top: 1px solid var(--line);
1811  background: var(--surface);
1812  padding: var(--sp-2) var(--sp-3);
1813  color: var(--muted);
1814  font-size: var(--fs-1);
1815}
1816.facets { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin: var(--sp-5) 0; }
1817.facets h2 { font-size: var(--fs-3); margin: 0 0 var(--sp-1); }
1818.facets p { color: var(--muted); font-size: var(--fs-2); margin: 0; }
1819.routes { display: flex; gap: var(--sp-3); align-items: center; margin: var(--sp-4) 0 0; }
1820
1821/* ---- profile ---- */
1822.profilehead { border-bottom: 1px solid var(--faint); padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); }
1823.profilehead h1 { margin: 0 0 var(--sp-1); }
1824.profilehead .lede { font-size: var(--fs-3); margin: 0 0 var(--sp-1); }
1825.profilehead .meta { margin: var(--sp-1) 0 0; }
1826.activity { margin-bottom: var(--sp-5); }
1827h2 .count { background: none; color: var(--muted); font-weight: 400; font-size: var(--fs-2); margin-left: var(--sp-2); padding: 0; }
1828/* 53 week columns x 7 day rows, tinted with the link blue */
1829.actgraph-scroll { overflow-x: auto; padding-bottom: var(--sp-1); }
1830.actgraph { display: flex; gap: 3px; width: max-content; padding-top: 18px; }
1831.actweek { display: flex; flex-direction: column; gap: 3px; position: relative; }
1832.actmonth { position: absolute; top: -16px; left: 0; font-size: var(--fs-0); color: var(--muted); }
1833.actday { width: 11px; height: 11px; border-radius: 2px; background: var(--faint); }
1834.actday.pad { background: transparent; }
1835.actday.l0 { background: var(--faint); }
1836.actday.l1 { background: color-mix(in srgb, var(--link) 25%, var(--canvas)); }
1837.actday.l2 { background: color-mix(in srgb, var(--link) 50%, var(--canvas)); }
1838.actday.l3 { background: color-mix(in srgb, var(--link) 75%, var(--canvas)); }
1839.actday.l4 { background: var(--link); }
1840.actlegend { display: flex; align-items: center; gap: 3px; margin-top: var(--sp-2); font-size: var(--fs-0); color: var(--muted); }
1841.actlegend span:first-child { margin-right: var(--sp-1); }
1842.actlegend span:last-child { margin-left: var(--sp-1); }
1843/* the activity log under the graph: the newest events, not the year */
1844.logsub { margin: var(--sp-5) 0 var(--sp-2); font-size: var(--fs-2); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
1845.ownerlog .feedline { font-size: var(--fs-2); }
1846.ownerlog .feedline .none { font-size: var(--fs-1); }
1847
1848/* ---- wiki ---- */
1849.wikilayout { display: flex; gap: var(--sp-5); align-items: flex-start; }
1850.wikipage { flex: 1; min-width: 0; }
1851.wikinav { flex: none; width: 15rem; }
1852.wikinav ul { list-style: none; margin: var(--sp-1) 0 var(--sp-4); padding: 0; }
1853.wikinav .wikidir { margin-bottom: 0; }
1854.wikinav li a {
1855  display: block;
1856  padding: 5px var(--sp-2);
1857  border-radius: var(--r-ctl);
1858  color: var(--fg);
1859  font-size: var(--fs-2);
1860}
1861.wikinav li a:hover { background: var(--hover); color: var(--fg); text-decoration: none; }
1862.wikinav li a.active { background: var(--surface); color: var(--link); font-weight: 500; }
1863
1864/* ---- misc ---- */
1865.meta { color: var(--muted); font-size: var(--fs-1); }
1866.muted { color: var(--muted); }
1867.desc, td.desc { color: var(--muted); }
1868.spacer { flex: 1; }
1869.compact { margin: 0; }
1870.name { min-width: 0; }
1871svg.icon { vertical-align: -0.125em; }
1872.sep { color: var(--muted); }
1873.owner { color: var(--muted); }
1874.title { margin: 0; }
1875.subject { min-width: 0; }
1876.sha { font-family: var(--mono); }
1877.when { color: var(--muted); }
1878.who { font-weight: 500; }
1879.was { color: var(--muted); }
1880.role { color: var(--muted); }
1881.age { color: var(--muted); }
1882.size { color: var(--muted); }
1883.review { font-size: var(--fs-2); }
1884
1885/* ---- breakpoints ---- */
1886@media (max-width: 80rem) {
1887  .dashgrid { grid-template-columns: minmax(0, 1fr) 20rem; }
1888  /* not a column any more, so it neither sticks nor scrolls in itself */
1889  .dashgrid > .dashpins { grid-column: 1 / -1; position: static; max-height: none; overflow: visible; }
1890  /* a pinned block that is not a column is the chip row (spec rule 7) */
1891  .pins { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
1892  /* the shorthand loses to .pins li:last-child, which drops the bottom
1893     border of the last chip -- and so of the second row */
1894  .pins li, .pins li:last-child { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: var(--sp-1) var(--sp-3); }
1895  .pins .n, .dashpins .meta { display: none; }
1896}
1897
1898@media (max-width: 62rem) {
1899  /* one column, the aside after the thread: a phone shows the
1900     description first, checks and reviewers after it (#232) */
1901  .withaside { grid-template-columns: 1fr; }
1902
1903  /* rows go back to two lines where one does not fit */
1904  ul.issuelist.rows .issuemain, ul.repolist.rows, ul.repolist.rows li, ul.loglist.rows .commitmain { display: block; }
1905  ul.issuelist.rows .title, ul.repolist.rows .desc { white-space: normal; }
1906  ul.repolist.rows .reponame, ul.repolist.rows .meta { display: block; }
1907  ul.repolist.rows li > *, ul.repolist.rows .reponame > *, ul.repolist.rows .meta > * { padding-left: 0; white-space: normal; }
1908  ul.repolist.rows .license::before, ul.repolist.rows .updated::before { content: " · "; }
1909  /* a nowrap meta or topic line on one of these rows forces horizontal
1910     page scroll on a phone: a long branch name, a long owner/repo#N */
1911  ul.issuelist.rows .meta, ul.loglist.rows .meta,
1912  ul.repolist.rows .meta, ul.repolist.rows .topics { white-space: normal; }
1913
1914  .dashgrid { grid-template-columns: 1fr; }
1915  .dashgrid > aside { position: static; }
1916  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
1917
1918  /* the tree page is the navigator on a phone */
1919  .blobgrid { grid-template-columns: 1fr; }
1920  .filenav { display: none; }
1921
1922  /* the column is a closed disclosure before the content: a filter you
1923     reach without scrolling the list, and nothing to scroll past when
1924     you do not want it. It leads rather than follows because it is what
1925     the list is narrowed by, not a note on one row (#237) */
1926  .withcol, .withcol.narrow { grid-template-columns: 1fr; }
1927  .sidecol { position: static; margin-bottom: var(--sp-3); }
1928  .sidecol .grp { display: inline-block; vertical-align: top; margin-right: var(--sp-5); }
1929}
1930
1931@media (max-width: 52rem) {
1932  main.content { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
1933  footer { padding: var(--sp-4); }
1934  .repohead { padding: var(--sp-3) 0 0; }
1935  .repohead .wrap { padding: 0 var(--sp-4); }
1936  /* seven tabs do not fit a phone in one row; a hidden scrollbar made the
1937     ones past the edge look absent. Two rows show all of them. */
1938  nav.tabs { flex-wrap: wrap; overflow: visible; }
1939  .facts { grid-template-columns: 1fr; }
1940  /* a phone shows the description under the name, not beside it */
1941  .repodesc { flex-basis: 100%; margin-left: 0; }
1942}
1943
1944@media (max-width: 40rem) {
1945  .facets { grid-template-columns: 1fr; gap: var(--sp-4); }
1946  .wikilayout { flex-direction: column; align-items: stretch; }
1947  .wikinav { width: auto; }
1948  form.setform { grid-template-columns: 1fr; gap: var(--sp-2); }
1949  form.setform label { margin-top: 0; }
1950  /* the commit subject is the widest thing in a file table and the one
1951     column a phone can do without: the tipbar above already names the
1952     latest commit */
1953  table.tree td.lastcommit, table.tree th.lastcommit { display: none; }
1954  table.tree td.mode, table.tree th.mode { display: none; }
1955  /* at 320px a nowrap name plus the age column overran the card by the
1956     cell padding and the card clipped the age; a long name wraps (#232) */
1957  table.tree td.name { white-space: normal; overflow-wrap: anywhere; }
1958  .clone pre { white-space: pre-wrap; word-break: break-all; }
1959  .readme .cardbody, .code { padding: var(--sp-3); }
1960  .thread { margin-left: var(--sp-3); }
1961  .blamehunk { flex-direction: column; gap: 0; }
1962  .blameinfo { width: auto; }
1963  .blamecode { border-left: 0; padding-left: var(--sp-3); width: 100%; }
1964  .factgrid { grid-template-columns: repeat(2, auto); }
1965  ul.loglist li { flex-wrap: wrap; }
1966  ul.loglist .commitside { width: 100%; justify-content: flex-start; }
1967}
1968
1969/* Nine 44px squares and the mark are 440px, so below 34rem the rail
1970   keeps six — dashboard, explore, search, notifications, More, your
1971   avatar — and the More menu holds the rest. Seven squares at 44px are
1972   308px, inside a 320px phone. Explore is one of the six because the
1973   More menu only exists for a signed-in viewer: dropping it left a
1974   signed-out phone with no route to the listing at all. Shrinking the
1975   squares instead is what this replaces: 32px was under the target
1976   every phone guideline asks for, and the count only grows. */
1977@media (max-width: 34rem) {
1978  .railopt { display: none; }
1979  .railmore { display: block; }
1980  .railicon svg { width: 20px; height: 20px; }
1981  /* the mark is a link home too, so it is a target like the rest */
1982  a.brand { width: var(--rail-hit); }
1983}
1984
1985/* ---- reactions ---- */
1986.reactions { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: 0; padding: var(--sp-2) var(--sp-4); }
1987p.reactions { color: var(--muted); font-size: var(--fs-1); }
1988article.comment .reactions { border-top: 1px solid var(--faint); }
1989button.react, span.react {
1990  font: inherit;
1991  font-size: var(--fs-1);
1992  padding: 0 var(--sp-2);
1993  min-height: 24px;
1994  border: 1px solid var(--line);
1995  border-radius: var(--r-sm);
1996  background: transparent;
1997  color: var(--muted);
1998}
1999button.react { cursor: pointer; }
2000button.react:hover { background: var(--surface); }
2001button.react.mine { border-color: var(--accent); background: var(--surface); color: var(--fg); }
2002
2003/* ---- rail pinned switcher ---- */
2004.railpins { position: relative; }
2005.railpins > summary { list-style: none; }
2006.railpins > summary::-webkit-details-marker { display: none; }
2007.railpins .raildrop {
2008  left: calc(100% + var(--sp-1));
2009  top: 0;
2010  bottom: auto;
2011  min-width: 14rem;
2012}
2013.railpins .raildrop .none { display: block; padding: var(--sp-2) var(--sp-3); color: var(--muted); font-size: var(--fs-1); }
2014
2015/* ---- diff file jump-list ---- */
2016.difftoc {
2017  margin: var(--sp-3) 0;
2018  border: 1px solid var(--faint);
2019  border-radius: var(--r-card);
2020  background: var(--surface);
2021}
2022.difftoc > summary {
2023  cursor: pointer;
2024  padding: var(--sp-2) var(--sp-3);
2025  font-size: var(--fs-1);
2026  font-weight: 600;
2027  color: var(--fg);
2028}
2029.difftoc-list {
2030  list-style: none;
2031  margin: 0;
2032  padding: 0 var(--sp-3) var(--sp-2);
2033  display: flex;
2034  flex-direction: column;
2035  gap: var(--sp-1);
2036  font-size: var(--fs-1);
2037  font-family: var(--mono);
2038}
2039.difftoc-list li {
2040  display: flex;
2041  align-items: baseline;
2042  gap: var(--sp-2);
2043}
2044.difftoc-list a { overflow-wrap: anywhere; }
2045.difftoc-list .fstat { margin-left: auto; white-space: nowrap; }
2046
2047/* ---- sidebar pickers & batched review ---- */
2048.review-pending {
2049  color: var(--warn);
2050  font-weight: 600;
2051  font-size: var(--fs-1);
2052}
2053.picker { margin: var(--sp-2) 0; }
2054.picker > summary {
2055  cursor: pointer;
2056  font-size: var(--fs-1);
2057  color: var(--link);
2058}
2059.picker-list {
2060  display: flex;
2061  flex-wrap: wrap;
2062  gap: var(--sp-1);
2063  margin-top: var(--sp-2);
2064}
2065.picker-btn {
2066  font: inherit;
2067  font-size: var(--fs-0);
2068  padding: 2px var(--sp-2);
2069  border: 1px solid var(--line);
2070  border-radius: var(--r-ctl);
2071  background: var(--canvas);
2072  color: var(--fg);
2073  cursor: pointer;
2074}
2075.picker-btn:hover { background: var(--hover); }
2076.picker-btn[aria-pressed="true"] {
2077  border-color: var(--link);
2078  background: var(--surface);
2079  font-weight: 600;
2080}
2081
2082/* ---- list quick state bar ---- */
2083.statebar {
2084  display: flex;
2085  flex-wrap: wrap;
2086  gap: var(--sp-2);
2087  margin: 0 0 var(--sp-3);
2088}
2089.statebar a {
2090  font-size: var(--fs-1);
2091  padding: var(--sp-1) var(--sp-3);
2092  border: 1px solid var(--faint);
2093  border-radius: var(--r-ctl);
2094  color: var(--muted);
2095  text-decoration: none;
2096}
2097.statebar a:hover { background: var(--hover); color: var(--fg); }
2098.statebar a[aria-current="page"] {
2099  border-color: var(--mark);
2100  color: var(--fg);
2101  font-weight: 600;
2102  background: var(--surface);
2103}
2104
2105/* ---- sidebar group headers & floating popovers ---- */
2106.grp-head {
2107  display: flex;
2108  align-items: center;
2109  justify-content: space-between;
2110  gap: var(--sp-2);
2111  margin-bottom: var(--sp-2);
2112}
2113.grp-head h2 { margin: 0; }
2114.popover { position: relative; }
2115.popover > summary { list-style: none; }
2116.popover > summary::-webkit-details-marker { display: none; }
2117.popbtn {
2118  display: inline-flex;
2119  align-items: center;
2120  padding: 2px var(--sp-2);
2121  border-radius: var(--r-ctl);
2122  font-size: var(--fs-0);
2123  font-weight: 500;
2124  color: var(--muted);
2125  cursor: pointer;
2126}
2127.popbtn:hover, .popover[open] > .popbtn { background: var(--hover); color: var(--fg); }
2128.popmenu {
2129  position: absolute;
2130  right: 0;
2131  top: calc(100% + var(--sp-1));
2132  z-index: 30;
2133  width: 16rem;
2134  max-width: 85vw;
2135  padding: var(--sp-3);
2136  background: var(--canvas);
2137  border: 1px solid var(--faint);
2138  border-radius: var(--r-card);
2139  box-shadow: var(--shadow);
2140  display: flex;
2141  flex-direction: column;
2142  gap: var(--sp-2);
2143}
2144.popform {
2145  display: flex;
2146  gap: var(--sp-2);
2147  align-items: center;
2148  margin: 0;
2149}
2150.popform input[type="text"], .popform select { flex: 1; min-width: 0; }
2151
2152/* ---- nav search bar & Cmd+K command palette ---- */
2153.railsearch-mob { display: none; }
2154.railsearch {
2155  display: flex;
2156  align-items: center;
2157  flex: 1 1 18rem;
2158  max-width: 28rem;
2159  margin: 0 var(--sp-3);
2160  height: 32px;
2161  padding: 0 var(--sp-1) 0 var(--sp-3);
2162  border: 1px solid var(--shell-line);
2163  border-radius: var(--r-ctl);
2164  background: var(--shell-hover);
2165}
2166.railsearch:focus-within { border-color: var(--shell-mark); }
2167.railsearch input[type="search"] {
2168  flex: 1;
2169  min-width: 0;
2170  height: 100%;
2171  padding: 0;
2172  border: 0;
2173  background: transparent;
2174  color: var(--shell-fg);
2175  font-size: var(--fs-1);
2176}
2177.railsearch input[type="search"]::placeholder { color: var(--shell-muted); }
2178.railsearch input[type="search"]:focus { outline: none; }
2179.cmdk-trigger {
2180  display: inline-flex;
2181  align-items: center;
2182  height: 24px;
2183  padding: 0 var(--sp-2);
2184  border: 1px solid var(--shell-line);
2185  border-radius: var(--r-ctl);
2186  background: var(--shell-bg);
2187  color: var(--shell-muted);
2188  font-size: var(--fs-0);
2189  font-weight: 400;
2190  cursor: pointer;
2191}
2192.cmdk-trigger:hover { color: var(--shell-fg); border-color: var(--shell-muted); filter: none; }
2193.cmdk-trigger kbd { font-family: var(--mono); font-size: var(--fs-0); color: inherit; }
2194dialog.cmdk {
2195  padding: 0;
2196  border: 1px solid var(--faint);
2197  border-radius: var(--r-card);
2198  background: var(--canvas);
2199  color: var(--fg);
2200  box-shadow: var(--shadow);
2201  width: min(42rem, 92vw);
2202  margin: 12vh auto auto;
2203}
2204dialog.cmdk::backdrop { background: rgb(0 0 0 / 0.45); }
2205.cmdk-box { display: flex; flex-direction: column; }
2206.cmdk-box input[type="search"] {
2207  width: 100%;
2208  height: 44px;
2209  padding: 0 var(--sp-4);
2210  border: 0;
2211  border-bottom: 1px solid var(--faint);
2212  border-radius: 0;
2213  background: transparent;
2214  font-size: var(--fs-3);
2215}
2216.cmdk-box input[type="search"]:focus { outline: none; }
2217.cmdk-list {
2218  list-style: none;
2219  margin: 0;
2220  padding: var(--sp-2);
2221  max-height: 22rem;
2222  overflow-y: auto;
2223}
2224.cmdk-list a {
2225  display: flex;
2226  align-items: center;
2227  gap: var(--sp-3);
2228  padding: var(--sp-2) var(--sp-3);
2229  border-radius: var(--r-ctl);
2230  color: var(--fg);
2231  text-decoration: none;
2232  font-size: var(--fs-2);
2233}
2234.cmdk-list a:hover, .cmdk-list a[aria-selected="true"] { background: var(--hover); }
2235.cmdk-grp {
2236  font-size: var(--fs-0);
2237  color: var(--muted);
2238  min-width: 5.5rem;
2239}
2240.cmdk-empty { padding: var(--sp-4); color: var(--muted); text-align: center; font-size: var(--fs-2); }
2241
2242/* ---- copy button on clone blocks ---- */
2243.copywrap { position: relative; }
2244.copywrap pre { padding-right: 4.5rem; }
2245.copybtn {
2246  position: absolute;
2247  top: 50%;
2248  right: var(--sp-2);
2249  transform: translateY(-50%);
2250  height: 24px;
2251  padding: 0 var(--sp-2);
2252  font-size: var(--fs-0);
2253  background: var(--surface);
2254  color: var(--fg);
2255  border: 1px solid var(--faint);
2256  border-radius: var(--r-ctl);
2257}
2258.copybtn:hover { background: var(--hover); filter: none; }
2259
2260@media (max-width: 44rem) {
2261  .railsearch { display: none; }
2262  .railsearch-mob { display: list-item; }
2263}
2264
2265/* ---- account & admin redesign ---- */
2266.setcard, section.activity {
2267  background: var(--canvas);
2268  border: 1px solid var(--faint);
2269  border-radius: var(--r-card);
2270  padding: var(--sp-5);
2271  margin: 0 0 var(--sp-5);
2272}
2273.setcard > h2:first-child, section.activity > h2:first-child { margin-top: 0; }
2274.setcard > h2, section.activity > h2 { display: flex; align-items: center; gap: var(--sp-2); }
2275.setcard-danger { border-color: color-mix(in srgb, var(--bad) 40%, var(--faint)); }
2276.setcard .tablewrap { overflow: visible; }
2277@media (max-width: 52rem) {
2278  .setcard .tablewrap { overflow-x: auto; }
2279}
2280.adminhead {
2281  display: flex;
2282  align-items: center;
2283  gap: var(--sp-3);
2284  flex-wrap: wrap;
2285  margin-bottom: var(--sp-3);
2286}
2287.adminhead h1 { margin: 0 0 var(--sp-1); }
2288.adminhead p.meta { margin: 0; }
2289nav.admintabs {
2290  border-bottom: 1px solid var(--faint);
2291  margin-top: 0;
2292  margin-bottom: var(--sp-5);
2293}
2294.sidecol.sticky {
2295  position: sticky;
2296  top: var(--sp-4);
2297  align-self: start;
2298}
2299.popbtn-danger { color: var(--bad); }
2300.popbtn-danger:hover, .popover[open] > .popbtn-danger {
2301  background: color-mix(in srgb, var(--bad) 10%, transparent);
2302  color: var(--bad);
2303}
2304.tablefilter { min-width: 14rem; }
2305pre.copyable { margin: var(--sp-2) 0 0; }
2306html.js form[data-autosave] button[type="submit"] { display: none; }
2307.toast {
2308  position: fixed;
2309  right: var(--sp-5);
2310  bottom: var(--sp-5);
2311  z-index: 60;
2312  padding: var(--sp-2) var(--sp-4);
2313  border-radius: var(--r-ctl);
2314  background: var(--shell-bg);
2315  color: var(--shell-fg);
2316  font-size: var(--fs-2);
2317  box-shadow: var(--shadow);
2318  opacity: 0;
2319  transform: translateY(6px);
2320  pointer-events: none;
2321  transition: opacity 0.16s ease, transform 0.16s ease;
2322}
2323.toast-show { opacity: 1; transform: translateY(0); }
2324.toast-err { background: var(--bad); color: var(--canvas); }
2325
2326/* ---- dashboard & profile polish ---- */
2327.dashpins, .feedcol {
2328  background: var(--canvas);
2329  border: 1px solid var(--faint);
2330  border-radius: var(--r-card);
2331  padding: var(--sp-4);
2332}
2333.dashcard-head {
2334  display: flex;
2335  align-items: baseline;
2336  justify-content: space-between;
2337  gap: var(--sp-2);
2338  margin-bottom: var(--sp-2);
2339}
2340.dashcard-head h2 { margin: 0; }
2341.dashfilter {
2342  width: 100%;
2343  margin: 0 0 var(--sp-2);
2344}
2345.dashsec { margin-bottom: var(--sp-5); }
2346.dashsec h2 {
2347  display: flex;
2348  align-items: center;
2349  gap: var(--sp-2);
2350  margin: 0 0 var(--sp-2);
2351}
2352.profilecard {
2353  background: var(--canvas);
2354  border: 1px solid var(--faint);
2355  border-radius: var(--r-card);
2356  padding: var(--sp-5);
2357  margin-bottom: var(--sp-4);
2358}
2359.profiletop {
2360  display: flex;
2361  align-items: flex-start;
2362  gap: var(--sp-4);
2363  flex-wrap: wrap;
2364}
2365.avatar-lg {
2366  width: 52px;
2367  height: 52px;
2368  font-size: var(--fs-5);
2369}
2370.profileid { flex: 1; min-width: 14rem; }
2371.profileid h1 { margin: 0 0 var(--sp-1); display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
2372.profilemeta {
2373  display: flex;
2374  flex-wrap: wrap;
2375  gap: var(--sp-2) var(--sp-4);
2376  font-size: var(--fs-1);
2377  color: var(--muted);
2378  margin-top: var(--sp-2);
2379}
2380.profilemeta a { color: var(--muted); }
2381.profilemeta a:hover { color: var(--link); }
2382
2383/* ---- /new & /notifications polish ---- */
2384nav.newtabs {
2385  border-bottom: 1px solid var(--faint);
2386  margin-top: 0;
2387  margin-bottom: var(--sp-5);
2388}
2389.ownername {
2390  display: flex;
2391  align-items: flex-end;
2392  gap: var(--sp-2);
2393  flex-wrap: wrap;
2394}
2395.ownerpick { flex: 0 0 auto; min-width: 9rem; }
2396.namepick { flex: 1 1 14rem; min-width: 0; }
2397.ownername .slash {
2398  color: var(--muted);
2399  font-size: var(--fs-4);
2400  line-height: 32px;
2401  padding: 0 2px;
2402}
2403ul.issuelist li.unread {
2404  box-shadow: inset 3px 0 0 var(--mark);
2405}
2406
2407/* ---- repo-level tabs polish ---- */
2408.treefilter {
2409  width: 11rem;
2410  min-width: 8rem;
2411  height: 32px;
2412}
2413.reffilter {
2414  display: block;
2415  width: calc(100% - var(--sp-4));
2416  margin: var(--sp-1) var(--sp-2) var(--sp-2);
2417  height: 28px;
2418  font-size: var(--fs-1);
2419}
2420.facts .about, .facts .clone {
2421  background: var(--canvas);
2422  border: 1px solid var(--faint);
2423  border-radius: var(--r-card);
2424  padding: var(--sp-4);
2425}
2426.popform-stack {
2427  flex-direction: column;
2428  align-items: stretch;
2429}
2430.popform-stack input, .popform-stack select, .popform-stack button {
2431  width: 100%;
2432}
2433.releasehead-top {
2434  display: flex;
2435  align-items: center;
2436  gap: var(--sp-2);
2437  flex-wrap: wrap;
2438}
2439.releasehead-top h2 {
2440  margin: 0;
2441  display: inline-flex;
2442  align-items: center;
2443  gap: var(--sp-2);
2444  flex-wrap: wrap;
2445}
2446article.release.setcard {
2447  border-top: 1px solid var(--faint);
2448  padding: var(--sp-5);
2449}
2450
2451/* ---- authoring forms polish ---- */
2452.meta-fields {
2453  display: grid;
2454  grid-template-columns: repeat(3, minmax(0, 1fr));
2455  gap: var(--sp-3);
2456  margin: var(--sp-3) 0;
2457}
2458@media (max-width: 44rem) {
2459  .meta-fields { grid-template-columns: 1fr; }
2460}
2461.commitbar {
2462  display: flex;
2463  align-items: center;
2464  gap: var(--sp-2);
2465  flex-wrap: wrap;
2466  margin: var(--sp-3) 0 var(--sp-2);
2467}
2468.commitbar input { flex: 1 1 16rem; min-width: 0; }
2469.rendered .copywrap .copybtn { top: var(--sp-2); transform: none; }
2470.btngroup a.btn[aria-current="page"] {
2471  border-color: var(--mark);
2472  background: var(--surface);
2473  color: var(--fg);
2474  font-weight: 600;
2475}
2476.commithead.setcard pre.message { margin: var(--sp-3) 0 0; }