* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f4f5f7;
  color: #1c1f24;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: #1c1f24;
  color: #fff;
}
.logout-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.content {
  max-width: 780px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
.content.content-wide {
  max-width: min(96vw, 1400px);
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.error { color: #b3261e; }
.hint { color: #555; font-size: 0.9rem; }
.badge {
  font-size: 0.75rem;
  background: #eef;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.status-pending { color: #8a6d00; }
.button {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: #2955a3;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}
table.inventory {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0.5rem 0 1.25rem;
}
table.inventory th,
table.inventory td {
  vertical-align: top;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #e3e5e9;
  overflow-wrap: anywhere;
  word-break: break-word;
}
table.inventory th {
  background: #f0f1f4;
  font-size: 0.85rem;
}
table.inventory code {
  overflow-wrap: anywhere;
  word-break: break-all;
  font-size: 0.85rem;
}
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 1rem;
}
.category-nav a {
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #eef;
  color: #1c1f24;
  text-decoration: none;
}
.category-section summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.25rem 0;
}
.tech-details summary {
  cursor: pointer;
  color: #2955a3;
  font-size: 0.85rem;
}
.evidence-json {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.8rem;
  max-height: 16rem;
  overflow-y: auto;
  background: #f4f6fa;
  padding: 0.5rem;
  border-radius: 4px;
}
input, button {
  font-size: 1rem;
  padding: 0.4rem;
}
button {
  cursor: pointer;
  background: #2955a3;
  color: #fff;
  border: none;
  border-radius: 6px;
}
