/* Inspector-only presentation; existing controls and other management surfaces are untouched. */
.compact-inspection {
  color: var(--ink, #22324a);
  container-type: inline-size;
  margin: 0 0 12px;
}

.compact-inspection .inspection-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding-right: 28px;
  margin-bottom: 12px;
}
.compact-inspection .inspection-header h3,
#panel .compact-inspection .inspection-header h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.compact-inspection .inspection-status {
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid var(--line, #d6d0c3);
  border-radius: 4px;
  background: var(--chrome, #f5f1e8);
  color: var(--ink-2, #4b5d78);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
  cursor: help;
}

.compact-inspection .inspection-status--good {
  color: var(--good, #286c40);
  background: #edf5ef;
  border-color: #bfd5c5;
}

.compact-inspection .inspection-status--warn {
  color: #795218;
  background: #faf1db;
  border-color: #dfc994;
}

.compact-inspection .inspection-status--bad {
  color: var(--bad, #b0402e);
  background: #f9e9e4;
  border-color: #dfb6a9;
}

.compact-inspection .inspection-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.compact-inspection .inspection-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid var(--line, #d6d0c3);
  border-radius: 5px;
  background: var(--paper, #fffdf8);
  cursor: help;
}

.compact-inspection .inspection-stat dt {
  color: var(--ink-2, #4b5d78);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.compact-inspection .inspection-stat dd {
  order: -1;
  margin: 0;
  color: var(--ink, #22324a);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.compact-inspection .inspection-stat:focus-visible,
.compact-inspection .inspection-status:focus-visible {
  outline: 2px solid var(--blue, #2f6fb5);
  outline-offset: 2px;
}

.compact-inspection .inspection-note {
  margin: 9px 0 0;
  color: var(--ink-2, #4b5d78);
  font-size: 12px;
  line-height: 1.4;
}

@container (max-width: 235px) {
  .compact-inspection .inspection-stats {
    grid-template-columns: minmax(0, 1fr);
  }
}
