:root {
  --bg: #f6f4f5;
  --card: #ffffff;
  --text: #1d1a1c;
  --muted: #6c6469;
  --line: #e4dfe2;
  --brand: #a3214f;
  --brand-text: #ffffff;
  --danger: #b3261e;
  --ok: #1e7a46;
  --warn: #9a6700;
  --chip: #f0e9ec;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141113;
    --card: #1f1b1e;
    --text: #efe9ec;
    --muted: #a99fa5;
    --line: #353035;
    --brand: #e0789c;
    --brand-text: #1a0f14;
    --danger: #ff8a80;
    --ok: #7fd7a1;
    --warn: #f2c14e;
    --chip: #2c2529;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
header {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; letter-spacing: 2px; }
.brand span { font-weight: 500; letter-spacing: 0; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
nav button { background: none; color: var(--text); border: 0; padding: 6px 10px; border-radius: 8px; }
nav button.active { background: var(--chip); color: var(--brand); font-weight: 600; }
.count:not(:empty) {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 2px; border-radius: 10px;
  background: var(--brand); color: var(--brand-text); font-size: 12px; text-align: center;
}
.who { color: var(--muted); font-size: 13px; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
h2 { margin: 8px 0 12px; font-size: 20px; }
h3 { margin: 20px 0 8px; font-size: 16px; }
button, select, input, textarea { font: inherit; }
button {
  cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 6px 12px; border-radius: 8px;
}
button.primary { background: var(--brand); color: var(--brand-text); border-color: var(--brand); }
button.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
button.quiet { border-color: transparent; background: none; color: var(--muted); }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 8px; padding: 6px 10px;
}
textarea { width: 100%; min-height: 80px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px;
}
.row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.grow { flex: 1; min-width: 200px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.chip {
  display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--chip);
  font-size: 12px; font-weight: 600; margin-right: 4px;
}
.chip.BANNED, .chip.bad { color: var(--danger); }
.chip.ACTIVE, .chip.good { color: var(--ok); }
.chip.PAUSED, .chip.warn { color: var(--warn); }
.chip.DELETED { color: var(--muted); }
a, .link { color: var(--brand); cursor: pointer; text-decoration: underline; background: none; border: 0; padding: 0; }
.thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--chip); }
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.photo { position: relative; }
.photo img { width: 150px; height: 190px; object-fit: cover; border-radius: 10px; display: block; background: var(--chip); }
.photo.big img { width: 220px; height: 280px; }
.photo .label { position: absolute; left: 6px; bottom: 6px; }
.blur img { filter: blur(22px); }
.blur::after {
  content: "Flagged: click to show"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px #000; cursor: pointer;
}
.memberline { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.memberline:hover .name { text-decoration: underline; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.notice { padding: 10px 14px; border-radius: 10px; background: var(--chip); margin-bottom: 12px; }
.notice.error { color: var(--danger); }
.center { text-align: center; padding: 60px 16px; }
dialog {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text);
  width: min(460px, calc(100vw - 32px)); padding: 18px;
}
dialog::backdrop { background: rgb(0 0 0 / .45); }
#toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 10;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px;
}
@media (max-width: 600px) {
  header { padding: 8px 12px; }
  .photo img { width: 120px; height: 150px; }
  .hide-narrow { display: none; }
}
