* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1f2328;
  background: #f6f7f9;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.head h1 { margin: 0 0 6px; font-size: 26px; }
.sub { margin: 0 0 18px; color: #57606a; }

.form { display: flex; gap: 10px; }

#q {
  flex: 1;
  padding: 11px 13px;
  font-size: 15px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #fff;
}
#q:focus { outline: 2px solid #0969da33; border-color: #0969da; }

#go {
  padding: 11px 20px;
  font-size: 15px;
  border: 0;
  border-radius: 8px;
  background: #0969da;
  color: #fff;
  cursor: pointer;
}
#go:disabled { background: #8cb4e6; cursor: default; }

.status { min-height: 20px; margin: 14px 0 6px; color: #57606a; }
.status.error { color: #b42318; }
.status.warn { color: #9a6700; }

.block { margin-top: 22px; background: #fff; border: 1px solid #d8dee4; border-radius: 10px; overflow: hidden; }
.block h2 { margin: 0; padding: 13px 16px; font-size: 17px; border-bottom: 1px solid #eaeef2; background: #fbfcfd; }
.count { color: #57606a; font-weight: 400; font-size: 14px; }

.table-scroll { overflow-x: auto; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 9px 12px; border-bottom: 1px solid #eaeef2; vertical-align: top; text-align: left; }
.tbl th { font-size: 13px; color: #57606a; font-weight: 600; background: #fff; position: sticky; top: 0; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .n { width: 42px; color: #57606a; }
.tbl td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl a { color: #0969da; text-decoration: none; }
.tbl a:hover { text-decoration: underline; }
.tbl .name { max-width: 420px; }
.tbl .matched { display: block; margin-top: 3px; font-size: 12px; color: #8b949e; }
.tbl .date { white-space: nowrap; }

.empty { padding: 16px; color: #57606a; }

.foot { margin-top: 28px; color: #57606a; font-size: 13px; }
.foot .muted { color: #8b949e; }

@media (max-width: 640px) {
  .form { flex-direction: column; }
  #go { width: 100%; }
}

.verdict { padding: 10px 14px; border-bottom: 1px solid #eaeef2; font-size: 14px; }
.verdict.ok { background: #e9f6ec; color: #12643a; }
.verdict.no { background: #fdf0ef; color: #8a1f17; }
.verdict.warn { background: #fff8e6; color: #7a5a00; }
.verdict .vreason { margin-top: 4px; opacity: .85; }
.verdict .vevid { margin-top: 4px; font-size: 12px; opacity: .7; }
tr.chosen td { background: #f3fbf5; font-weight: 600; }
tr.chosen td:first-child { box-shadow: inset 3px 0 0 #1a7f37; }

/* --- вкладки --- */
.tabs { display: flex; gap: 4px; margin: 16px 0 0; border-bottom: 1px solid #d8dee4; }
.tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font: inherit; font-size: 15px; color: #57606a;
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
}
.tab:hover { color: #0969da; }
.tab.active { color: #1f2328; font-weight: 600; border-bottom-color: #0969da; }
.badge {
  min-width: 20px; padding: 1px 7px; font-size: 12px; font-weight: 600;
  color: #57606a; background: #eaeef2; border-radius: 20px;
}
.badge-ok { color: #12643a; background: #d7f0de; }

/* --- панель вкладки --- */
.panel { margin-top: 14px; }

.chosen {
  margin-bottom: 14px; padding: 14px 16px;
  background: #e9f6ec; border: 1px solid #b7e0c3; border-radius: 10px;
}
.chosen-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.chosen-head .tag {
  padding: 2px 8px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: #fff; background: #1a7f37; border-radius: 4px;
}
.chosen-head .conf { font-size: 13px; color: #12643a; }
.chosen-num { font-size: 18px; font-weight: 700; }
.chosen-num a { color: #0969da; text-decoration: none; }
.chosen-num a:hover { text-decoration: underline; }
.chosen-name { margin-top: 4px; }
.chosen-meta { margin-top: 4px; font-size: 13px; color: #3f6b4f; }
.chosen-reason { margin-top: 8px; font-size: 13px; }
.chosen-evidence { margin-top: 4px; font-size: 12px; color: #4a6b56; }

.note { margin-bottom: 14px; padding: 11px 14px; border-radius: 8px; font-size: 14px; }
.note.no { background: #fdf0ef; color: #8a1f17; border: 1px solid #f3c6c2; }
.note.warn { background: #fff8e6; color: #7a5a00; border: 1px solid #f0dfae; }
.note-reason { margin-top: 4px; opacity: .85; }

@media (max-width: 640px) {
  .tab { padding: 9px 12px; font-size: 14px; }
  .tab-name { white-space: nowrap; }
}
