
.file-type-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 7px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 500;
}

.file-title-group {
  min-width: 0;
}

.file-title-group h3,
.file-title-group p {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-title-group h3 {
  font-size: 13px;
  font-weight: 600;
}

.file-title-group p {
  margin-top: 3px;
  color: var(--ink-muted);
  font-family: "Geist Mono", monospace;
  font-size: 9px;
}

.report-tabs {
  position: sticky;
  top: -28px;
  z-index: 8;
  display: flex;
  margin: 0 -28px 20px;
  padding: 10px 28px 0;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

.report-tabs::-webkit-scrollbar {
  display: none;
}

.report-tab {
  position: relative;
  flex: 1 1 0;
  min-height: 38px;
  padding: 0 11px;
  color: var(--ink-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
}

.report-tab::after {
  position: absolute;
  right: 9px;
  bottom: 0;
  left: 9px;
  height: 2px;
  content: "";
  background: transparent;
  border-radius: 2px 2px 0 0;
}

.report-tab:hover {
  color: var(--ink);
}

.report-tab.active {
  color: var(--ink);
}

.report-tab.active::after {
  background: var(--ink);
}

.tab-panel {
  padding-bottom: 8px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 26px 0 11px;
  gap: 16px;
}

.section-heading:first-child {
  margin-top: 0;
}

.section-heading h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.4;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  color: var(--ink-soft);
  background: #f1f1f1;
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  white-space: nowrap;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric-card {
  min-width: 0;
  min-height: 82px;
  padding: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-border);
  border-radius: 8px;
}

.metric-card .metric-label,
.metric-card .metric-value,
.metric-card .metric-detail {
  display: block;
}

.metric-label {
  margin-bottom: 10px;
  color: var(--ink-muted);
  font-size: 10px;
}

.metric-value {
  overflow: visible;
  color: var(--ink);
  font-family: "Geist Mono", monospace;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.metric-detail {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.3;
}

.fact-list,
.detail-list {
  padding: 0;
  margin: 0;
  list-style: none;
  box-shadow: var(--shadow-border);
  border-radius: 8px;
  overflow: hidden;
}

.fact-list li,
.detail-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  min-height: 40px;
  padding: 10px 12px;
  gap: 12px;
  box-shadow: 0 1px 0 var(--line);
  font-size: 11px;
  line-height: 1.45;
}

.fact-list li:last-child,
.detail-list li:last-child {
  box-shadow: none;
}

.fact-list span:first-child,
.detail-list span:first-child {
  color: var(--ink-muted);
}

.fact-list span:last-child,
.detail-list span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  text-align: right;
}

.notice {
  margin: 12px 0;
  padding: 12px;
  color: var(--ink-soft);
  background: var(--surface);
  box-shadow: var(--shadow-border);
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.5;
}

.notice strong {
  color: var(--ink);
}

.notice.info {
  background: var(--blue-soft);
  box-shadow: 0 0 0 1px rgba(10, 114, 239, 0.15);
}

.notice.warning {
  background: var(--amber-soft);
  box-shadow: 0 0 0 1px rgba(138, 75, 8, 0.18);
}

.notice.error {
  background: var(--red-soft);
  box-shadow: 0 0 0 1px rgba(217, 45, 32, 0.18);
}

.validation-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  box-shadow: var(--shadow-border);
  border-radius: 8px;
}

.validation-stat {
  padding: 12px 8px;
  text-align: center;
  box-shadow: 1px 0 0 var(--line);
}

.validation-stat:last-child {
  box-shadow: none;
}

.validation-stat strong,
.validation-stat span {
  display: block;
}

.validation-stat strong {
  margin-bottom: 3px;
  font-family: "Geist Mono", monospace;
  font-size: 18px;
  font-weight: 500;
}

.validation-stat span {
  color: var(--ink-muted);
  font-size: 9px;
}

.validation-stat.errors strong {
  color: var(--red);
}

.validation-stat.warnings strong {
  color: var(--amber);
}
