.metric strong.small-value {
  font: 500 18px/1.8 var(--font);
  overflow-wrap: anywhere;
}
.version-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.version-title {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.version-title h2 {
  font-size: 17px;
  font-weight: 600;
}
.version-status {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  background: #eef3f5;
  color: #697f8b;
}
.version-status.consistent {
  background: #eaf6f0;
  color: #24745c;
}
.version-status.suspect {
  background: #fff5e6;
  color: #93621b;
}
.version-status.conflict {
  background: #fdeeee;
  color: #b34545;
}
#version-summary {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.kernel-summary {
  margin-top: 20px;
  background: #f4f8f8;
  border: 1px solid #e0ebeb;
  border-radius: 9px;
  padding: 17px 20px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 20px;
}
.kernel-summary > span {
  font-size: 12px;
  color: var(--muted);
}
.kernel-summary > strong {
  font: 500 20px var(--mono);
  color: var(--accent);
}
.kernel-summary > p {
  grid-column: 2;
  font-size: 11px;
  color: var(--muted);
}
.kernel-summary.mismatch {
  background: #fff8ec;
  border-color: #ede2cc;
}
.kernel-summary.mismatch > strong {
  color: var(--amber);
}
#version-details {
  margin-top: 20px;
}
details > summary {
  font-size: 12px;
  cursor: pointer;
}
#version-details h3 {
  font-size: 12px;
  margin: 22px 0 7px;
}
#version-details h3 span,
#version-details p,
#version-details li {
  font-size: 11px;
  color: var(--muted);
}
.version-table {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0;
}
.version-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
.version-table td,
.version-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.version-table th {
  background: #f7f9fa;
  font-weight: 500;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 6px;
  margin: 26px 0 17px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 12px 18px;
  color: var(--muted);
}
.tabs .active {
  border-bottom-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.tabs button span {
  margin-left: 9px;
}
.code-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}
.code-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f3f7f8;
  font: 11px var(--mono);
  color: var(--muted);
}
.code-head i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
}
.code-card pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  max-height: 490px;
  color: #3e626e;
  padding: 18px 22px;
}
#detect-panel > details > p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.editors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.editor {
  min-width: 0;
}
.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.editor-head label {
  font-size: 12px;
}
.editor-head label span {
  font: 9px var(--mono);
  color: var(--muted);
  margin-left: 5px;
}
.editor-head button {
  padding: 4px 7px;
  min-height: 28px;
  font-size: 10px;
}
.editor textarea {
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f9fbfc;
  padding: 16px;
  resize: vertical;
  font: 11px/1.8 var(--mono);
  color: var(--ink);
}
.error {
  font-size: 12px;
  color: var(--red);
  margin-top: 6px;
}
.diff-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 22px 0;
}
.diff-toolbar strong {
  font-size: 12px;
  font-weight: 500;
}
.toggle {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.diff-columns,
.diff-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.diff-columns {
  font-size: 11px;
  color: var(--muted);
  padding: 12px;
}
.diff-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  scroll-margin-top: 20px;
}
.diff-path {
  font: 11px var(--mono);
  overflow-wrap: anywhere;
}
.diff-path b {
  font: 10px var(--font);
  margin-right: 10px;
  padding: 2px 6px;
  background: #eaf1f3;
  border-radius: 3px;
}
.diff-values pre {
  margin-bottom: 0;
  min-width: 0;
  font-size: 11px;
}
.diff-row.changed {
  border-left: 3px solid #d6a858;
}
.diff-row.added {
  border-left: 3px solid #58a890;
}
.diff-row.removed {
  border-left: 3px solid #c67b7b;
}
.diff-row.focused {
  outline: 2px solid var(--accent);
}
.empty,
.no-diff {
  text-align: center;
  color: var(--muted);
  padding: 40px 10px;
  font-size: 13px;
}
.empty small {
  display: block;
  font-size: 11px;
  margin-top: 8px;
}
@media (max-width: 800px) {
  .version-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .editors {
    grid-template-columns: 1fr;
  }
  .kernel-summary {
    grid-template-columns: 1fr;
  }
  .kernel-summary > p {
    grid-column: auto;
  }
  .diff-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .editor-head {
    flex-wrap: wrap;
  }
  .diff-values {
    gap: 6px;
  }
  .diff-values pre {
    padding: 10px;
    font-size: 10px;
  }
  .metric strong.small-value {
    font-size: 15px;
  }
}
