@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=IBM+Plex+Mono&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #FAFAFA;
  color: #21242C;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.doc { max-width: 1000px; margin: 0 auto; padding: 56px 40px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #676F7E;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 16px;
}
.back-link:visited { color: #676F7E; }
.back-link:hover { color: #21242C; }

.cover-title { font-size: 24px; font-weight: 500; }

.subtitle { color: #676F7E; line-height: 1.8; margin-top: 10px; }

.section { margin-top: 40px; }

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #676F7E;
  margin-bottom: 10px;
}

.group { border: 1px solid #E2E2E2; border-radius: 12px; overflow: hidden; }

.group-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  text-decoration: none;
  color: #21242C;
  line-height: 1.5;
  transition: background 0.1s;
}

.group-link + .group-link { border-top: 1px solid #E8E8E8; }
.group-link:hover { background: #fff; }

.group-row { padding: 16px 18px; border-bottom: 1px solid #E8E8E8; }
.group-row:last-child { border-bottom: none; }

.group-name { font-weight: 500; }

.link-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: #F0F0F0;
  color: #888;
  flex-shrink: 0;
}

.link-badge-green { background: #E8F4EC; color: #276334; }
.link-badge-orange { background: #FFF0E0; color: #CC6000; }
.link-badge-purple { background: #F0EAFF; color: #6E3AB3; }

.pr-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid #E8E8E8;
}

.pr-row:last-child { border-bottom: none; }

.pr-row:hover { background: #fff; }
.pr-row { transition: background 0.1s; }

.pr-state {
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  width: 68px;
  text-align: center;
  padding: 2px 7px;
  border-radius: 20px;
}

.pr-open   { background: #E8F4EC; color: #276334; }
.pr-merged { background: #F0EAFF; color: #6E3AB3; }
.pr-closed { background: #F0F0F0; color: #666; }

.pr-title { flex: 1; color: #21242C; text-decoration: none; line-height: 1.6; }

.pr-date { color: #676F7E; flex-shrink: 0; width: 52px; }
.pr-loading { color: #676F7E; padding: 12px 18px; }

.pnum { color: #676F7E; margin-bottom: 4px; }

.title { font-size: 20px; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }

.body { color: #676F7E; line-height: 1.85; margin-bottom: 28px; }

.cap { font-size: 14px; color: #676F7E; margin-top: 8px; line-height: 1.5; }

.lbl { font-size: 14px; color: #676F7E; margin-bottom: 8px; }

.tm {
  background: #1A1A1A;
  border-radius: 8px;
  padding: 16px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  line-height: 1.9;
}

.e { color: #E05050; }
.w { color: #CC8800; }
.g { color: #4CAF50; }
.d { color: #555; }
.c { color: #CCC; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.tag-today  { background: #FFF0E0; color: #CC6000; }
.tag-future { background: #EEF4FF; color: #2255BB; }
