.hwid-panel {
  --hwid-bg: #f3f3f5;
  --hwid-head: #fff;
  --hwid-line: #e3e4e7;
  --hwid-ink: #182136;
  --hwid-muted: #596579;
  --hwid-accent: #235bda;
  --hwid-pill: #e2e9fb;
  min-width: 0;
  max-width: 760px;
  padding: 16px;
  border-radius: 16px;
  background: var(--hwid-bg);
  color: var(--hwid-ink);
  font-size: 13px;
}
body.dark .hwid-panel {
  --hwid-bg: #141f32;
  --hwid-head: #1c2a41;
  --hwid-line: #33425a;
  --hwid-ink: #e7efff;
  --hwid-muted: #aebcd2;
  --hwid-accent: #a1baff;
  --hwid-pill: #24385e;
}
.hwid-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 6px 16px;
  margin: 2px 0 20px;
}
.hwid-intro h2 { margin: 0 0 5px; font-size: 15px; }
.hwid-intro p, .hwid-status { margin: 0; color: var(--hwid-muted); font-size: 11px; }
.hwid-group {
  margin: 0 0 16px;
  border: 1px solid var(--hwid-line);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 2px 5px #12203b0d;
}
.hwid-group:last-child { margin-bottom: 0; }
.hwid-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--hwid-head);
  border-bottom: 1px solid var(--hwid-line);
}
.hwid-group-head h3 { margin: 0; font-size: 14px; }
.hwid-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--hwid-pill);
  color: var(--hwid-accent);
  font-size: 11px;
  line-height: 1.4;
}
.hwid-group-head .hwid-tag { padding: 0 7px; }
.hwid-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--hwid-line); }
.hwid-grid-single { grid-template-columns: minmax(0, 1fr); }
.hwid-item { padding: 12px 16px 14px; min-width: 0; background: var(--hwid-bg); }
.hwid-panel-compact { max-width: 420px; padding: 0; margin-bottom: 14px; background: transparent; }
.hwid-panel-compact .hwid-grid { grid-template-columns: minmax(0, 1fr); }
.hwid-slot { margin-bottom: 4px; font-size: 11px; }
.hwid-model { font-weight: 600; overflow-wrap: anywhere; }
.hwid-fields {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 12px;
  margin: 8px 0 0;
  font-size: 12px;
}
.hwid-fields dd { margin: 0; text-align: right; color: var(--hwid-muted); }
.hwid-address {
  color: var(--hwid-ink);
  font: 700 13px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
  user-select: all;
}
.hwid-code { font-size: 10px; white-space: nowrap; user-select: all; }
.hwid-empty { padding: 16px; border: 1px solid var(--hwid-line); border-radius: 10px; color: var(--hwid-muted); }
@media (max-width: 560px) {
  .hwid-panel:not(.hwid-panel-compact) { padding: 10px; }
  .hwid-grid { grid-template-columns: minmax(0, 1fr); }
  .hwid-item, .hwid-group-head { padding-inline: 13px; }
}
