/* Minimal styling for readability */
:root {
  color-scheme: light;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --border: #e2e3e5;
  --text: #1f2328;
  --muted: #4d5561;
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  border-color: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.status {
  min-height: 20px;
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.status.error {
  color: #b42318;
}

.sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

section h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table th {
  width: 240px;
  font-weight: 600;
  color: var(--muted);
  background: #fafafa;
}

.table tr:last-child th,
.table tr:last-child td {
  border-bottom: none;
}

.report-panel {
  margin-bottom: 12px;
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.report-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-text {
  width: 100%;
  margin-top: 10px;
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  resize: vertical;
  background: #fafafa;
  color: var(--text);
}

.report-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .table th {
    width: 180px;
  }
}
