:root {
  --bar: #a9c1f7;
  --bar-line: #fff;
  --section: #d6dffb;
  --row-odd: #eeeeee;
  --row-even: #f6f6f6;
  --text: #111;
  --muted: #666;
  --head: #555;
  --blue: #1a66e0;
  --green: #0a7a12;
  --amber: #f8bb45;
  --lgtm: #0b6b0b;
  --merged: #6f42c1;
  --grey: #b5b5b5;
  --red: #c5221f;
  --border: #c8c8c8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font: 13px/1.3 Arial, "Helvetica Neue", Helvetica, sans-serif;
}

button, input { font: inherit; color: inherit; }

/* Header */
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
}
.brand {
  flex: 0 0 132px;
  color: #222;
  text-decoration: none;
  font-size: 18px;
}
.search {
  display: flex;
  flex: 1 1 auto;
  max-width: 460px;
  height: 24px;
  position: relative;
}
.search input {
  flex: 1;
  min-width: 0;
  border: 1px solid #bbb;
  border-right: 0;
  padding: 0 26px 0 6px;
  outline: none;
  appearance: none;
  border-radius: 0;
}
.search input:focus { border-color: var(--blue); }
.search .help {
  position: absolute;
  right: 54px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #555;
  color: #fff;
  font-weight: bold;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  cursor: help;
}
.search button {
  flex: 0 0 48px;
  border: 0;
  border-radius: 0 2px 2px 0;
  background: var(--blue);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.search button svg { width: 14px; height: 14px; }
.gear { margin-left: auto; position: relative; }
.gear summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: linear-gradient(#f8f8f8, #ececec);
  cursor: pointer;
}
.gear summary svg { width: 14px; height: 14px; }
.gear summary::-webkit-details-marker { display: none; }
.caret {
  border: 4px solid transparent;
  border-top-color: #444;
  margin-top: 4px;
}
.menu {
  position: absolute;
  right: 0;
  top: 27px;
  z-index: 5;
  min-width: 190px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.menu-who { padding: 3px 5px 6px; color: var(--muted); }
.menu button {
  width: 100%;
  text-align: left;
  padding: 5px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu button:hover { background: var(--row-odd); }

/* Navigation bar */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--bar);
  min-height: 22px;
}
.tab {
  border: 0;
  border-right: 1px solid var(--bar-line);
  background: none;
  padding: 0 9px;
  cursor: pointer;
  min-height: 22px;
}
.tab[aria-current="page"] { font-weight: bold; }
.cell {
  display: flex;
  align-items: center;
  padding: 0 5px;
  border-right: 1px solid var(--bar-line);
}
.btn {
  height: 18px;
  padding: 0 6px;
  border: 1px solid #999;
  border-radius: 2px;
  background: linear-gradient(#fafafa, #e9e9e9);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { background: #dcdcdc; }
.btn:disabled { color: #aaa; border-color: #ccc; cursor: default; }

/* Sections */
main { padding-bottom: 30px; }
.section { margin-top: 8px; }
.section-head {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  border: 0;
  background: var(--section);
  padding: 4px 9px;
  text-align: left;
  cursor: pointer;
}
.section-head b { margin-right: 1px; }
.box {
  display: inline-grid;
  place-items: center;
  width: 9px;
  height: 9px;
  border: 1px solid #4a67b5;
  border-radius: 1px;
  background: #fff;
  color: #2b4590;
  font: bold 9px/1 Arial, sans-serif;
  flex: none;
}
.scroll { overflow-x: auto; padding-top: 8px; }
table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
}
col.c-exp { width: 22px; }
col.c-star { width: 18px; }
col.c-change { width: 70px; }
col.c-repo { width: 150px; }
col.c-author { width: 110px; }
col.c-status { width: 96px; }
col.c-last { width: 150px; }
col.c-rev { width: 170px; }
col.c-size { width: 34px; }
th {
  font-weight: normal;
  color: var(--head);
  text-align: left;
  padding: 3px 4px;
}
td {
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
th.num, td.num { text-align: right; }
th.c-size, td.c-size { text-align: right; padding-right: 6px; }
tbody tr:nth-child(4n+1) { background: var(--row-odd); }
tbody tr:nth-child(4n+3) { background: var(--row-even); }
tbody tr.detail { background: #fff; font-size: 12px; color: #333; }
tbody tr.detail td { white-space: normal; padding: 5px 4px 8px; }
tr.mine td.c-change, tr.mine td.c-status, tr.mine td.c-size, tr.mine td.c-desc { font-weight: bold; }
td.c-exp { text-align: right; padding-right: 2px; }
td.c-star { padding-left: 1px; padding-right: 0; }
td.c-repo { color: #333; }
.icon-btn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  vertical-align: middle;
}
.star { font-size: 15px; color: #c9c9c9; margin-top: -3px; }
.star[aria-pressed="true"] { color: #f4b400; }
td a { color: inherit; text-decoration: none; }
td a:hover { text-decoration: underline; }
.turn { font-weight: bold; }
.reviewed { color: var(--green); }
.sq {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: -1px;
  background: var(--amber);
}
.sq.lgtm { background: var(--lgtm); }
.sq.merged { background: var(--merged); }
.sq.grey { background: var(--grey); }
.empty { padding: 8px 12px; color: var(--muted); }
.pager {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px 2px;
  color: var(--muted);
  font-size: 12px;
}
.detail dl { display: flex; flex-wrap: wrap; gap: 3px 20px; margin: 0; }
.detail dt { display: inline; color: var(--muted); }
.detail dd { display: inline; margin: 0 0 0 4px; }
.detail a { color: var(--blue); }
.add { color: var(--green); }
.del { color: var(--red); }

/* Messages and sign-in */
.note { margin: 8px 9px 0; padding: 5px 8px; background: #fff4ce; border: 1px solid #f0d58a; }
.note.err { background: #fde7e5; border-color: #f0a8a2; }
.loading { padding: 12px; color: var(--muted); }
.connect { max-width: 520px; margin: 18px 12px; line-height: 1.5; }
.connect h1 { font-size: 16px; margin: 0 0 6px; }
.connect form { display: flex; gap: 5px; margin: 10px 0; }
.connect input { flex: 1; min-width: 0; height: 24px; border: 1px solid #999; padding: 0 6px; }
.connect form .btn { height: 24px; }
.connect a { color: var(--blue); }
.connect p { margin: 6px 0; }
.connect .fine { color: var(--muted); font-size: 12px; }
.connect .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.connect .gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #1b1f23;
  border-radius: 3px;
  background: #24292f;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}
.connect .gh-btn svg { width: 16px; height: 16px; }
.connect .gh-btn:hover { background: #32383f; }
.connect .link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
}
.connect .code {
  display: inline-block;
  margin: 4px 0 2px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--row-even);
  font: bold 22px/1.2 Menlo, Consolas, monospace;
  letter-spacing: 3px;
  user-select: all;
}
.connect .alt summary { cursor: pointer; color: var(--blue); }
.connect .actions .btn { height: 32px; padding: 0 10px; }

@media (max-width: 600px) {
  .top { flex-wrap: wrap; }
  .brand { flex: 1 1 auto; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
}
