* { box-sizing: border-box; }
body {
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  margin: 0; color: #1a1a1a; background: #f6f7f9;
}
body.centered { display: grid; place-items: center; min-height: 100vh; }
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px; background: #fff; border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 10;
}
.brand a { font-weight: 700; text-decoration: none; color: #1a1a1a; }
nav { display: flex; gap: 16px; align-items: center; }
nav a { color: #374151; text-decoration: none; }
nav a:hover { color: #2563eb; }
main { max-width: 1000px; margin: 24px auto; padding: 0 16px; }
h1 { margin-top: 0; }
.card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 16px; margin-bottom: 16px;
}
.card header { background: transparent; border: 0; padding: 0; margin-bottom: 8px; position: static; gap: 8px; }
label { display: block; margin-bottom: 12px; font-weight: 500; }
input, textarea, select {
  width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px;
  font: inherit; background: #fff;
}
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
button {
  padding: 8px 14px; border: 1px solid #d1d5db; background: #fff; border-radius: 6px;
  cursor: pointer; font: inherit;
}
button:hover { background: #f3f4f6; }
button.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
button.primary:hover { background: #1d4ed8; }
button.danger { background: #dc2626; color: #fff; border-color: #dc2626; }
button.link { background: transparent; border: 0; color: #2563eb; padding: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.muted { color: #6b7280; }
.err { color: #b91c1c; background: #fef2f2; padding: 8px; border-radius: 6px; margin: 8px 0; }
.ok { color: #15803d; }
.status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #e5e7eb; }
.status.draft, .status.pending { background: #fef3c7; color: #92400e; }
.status.review { background: #dbeafe; color: #1e40af; }
.status.published, .status.ok { background: #dcfce7; color: #14532d; }
.status.failed, .status.err { background: #fee2e2; color: #991b1b; }
.status.skipped { background: #e5e7eb; color: #6b7280; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #e5e7eb; }
.feed { list-style: none; padding: 0; }
pre.master { background: #f9fafb; padding: 12px; border-radius: 6px; white-space: pre-wrap; }
.media { display: flex; gap: 8px; flex-wrap: wrap; }
.media img, .media video { max-width: 200px; max-height: 200px; border-radius: 6px; }
.variant h3 { margin: 0 0 6px; }
table.journal { width: 100%; border-collapse: collapse; background: #fff; }
table.journal th, table.journal td { padding: 6px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: 13px; }
details summary { cursor: pointer; color: #2563eb; margin-top: 8px; }
.platforms { list-style: none; padding: 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab { background: #fff; }
.tab.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.upload-zone {
  border: 2px dashed #d1d5db; border-radius: 8px; padding: 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 12px; background: #fafbfc;
}
.upload-zone.drag { border-color: #2563eb; background: #eff6ff; }
.uploads { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.thumb {
  position: relative; width: 110px;
  border: 1px solid #e5e7eb; border-radius: 6px; padding: 4px;
  background: #fff; font-size: 11px; text-align: center;
}
.thumb img, .thumb video { width: 100%; height: 80px; object-fit: cover; border-radius: 4px; display: block; }
.thumb span { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb button {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px;
  padding: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: 0; cursor: pointer;
}
