[hidden] {
  display: none !important;
}

body {
  font-family: system-ui, sans-serif;
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 16px 48px;
  color: #1c1c1e;
  background: #fafafa;
}
header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
}
header h1 { font-size: 22px; margin: 0; }
h2 { font-size: 17px; margin-top: 24px; }
textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  padding: 8px;
}
button, select, input[type="text"], input[type="password"], input:not([type]) {
  font-size: 14px;
  padding: 5px 10px;
}
button { cursor: pointer; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}
th, td { border: 1px solid #e2e2e2; padding: 6px 8px; text-align: left; vertical-align: top; }
th { background: #f0f0f2; }
.row { display: flex; gap: 12px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.muted { color: #888; font-size: 13px; }
.badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 9px;
  font-size: 12px;
  background: #eee;
  margin-left: 6px;
}
.badge.warn { background: #ffe9a8; }
.badge.err { background: #ffd0d0; }
.badge.ok { background: #d6f5d6; }
.cover { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 6px; }
.error {
  margin-top: 16px;
  padding: 10px 14px;
  background: #ffe1e1;
  border: 1px solid #e3a6a6;
  border-radius: 6px;
  white-space: pre-wrap;
}
.state.loading { color: #2a6fb0; }
.state.ready { color: #1d7a1d; }
.state.error { color: #b03030; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-body {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 760px;
  width: 95%;
  max-height: 85vh;
  overflow: auto;
}
.modal-body fieldset { margin: 14px 0; }
.modal-body label { display: block; margin: 6px 0; }
a#zip-link { font-size: 16px; }
