internal/web/static/style.css

4a511e42574ead9c92dc73fd320f296cc4dbea07
gitbay/internal/web/static/style.css

2799 lines · 103974 bytes

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

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form