:root {
  color-scheme: light;
  font: 16px system-ui, sans-serif;
  background: #fff8fb;
  color: #35253a;
  --border: #e3cad9;
  --accent: #8e2058;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; overflow-wrap: anywhere; }
body:has(dialog[open]) { overflow: hidden; }
.site-header { background: linear-gradient(110deg, #51214c, #a22962); color: white; }
.site-header > div, main { max-width: 1000px; margin: auto; padding: 16px; }
.site-header > div, .page-heading, .dialog-heading, .member-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
}
.site-header strong { font: italic 28px Georgia, serif; }
a { color: var(--accent); }
.site-header a { color: white; padding: 10px 0; }
h1, h2, h3 { margin: 0; }
h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
p { margin: .65rem 0; }
button, input, select, textarea { font: inherit; min-height: 46px; }
button {
  padding: 9px 15px; border: 1px solid transparent; border-radius: 9px;
  color: white; background: var(--accent); font-weight: 650; cursor: pointer;
}
button.secondary, nav button[aria-pressed="false"] {
  background: white; color: var(--accent); border-color: var(--border);
}
button.danger { background: #a21d36; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #6c3db4; outline-offset: 2px; }
label { display: grid; gap: 5px; font-weight: 650; min-width: 0; }
input, select, textarea {
  display: block; width: 100%; padding: 10px; background: white;
  color: inherit; border: 1px solid #bda5b4; border-radius: 8px;
}
textarea { min-height: 85px; resize: vertical; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats div, .panel { border: 1px solid var(--border); border-radius: 14px; padding: 15px; }
.stats div { background: #fcecf4; }
.stats dd { font-size: 1.4rem; font-weight: 700; margin: 4px 0 0; }
nav, .actions { display: flex; flex-wrap: wrap; gap: 8px; }
nav { margin: 16px 0; }
.panel, dialog { background: white; }
.panel h2 { margin-bottom: 14px; }
.filters { display: grid; gap: 10px; grid-template-columns: 2fr 1fr auto; align-items: end; }
.member-list { padding: 0; margin: 0 0 10px; list-style: none; }
.member-list li, .case { border-top: 1px solid var(--border); padding: 14px 0; }
.member-list p { margin: .2rem 0; }
.muted { color: #605263; }
.badge {
  display: inline-block; padding: 3px 8px; background: #eef5ef; color: #194426;
  border-radius: 12px; font-size: .85rem; font-weight: 700;
}
.badge.suspended { background: #fff0d1; color: #674300; }
.badge.banned { background: #fce1e6; color: #8a1830; }
dialog {
  border: 1px solid var(--border); color: inherit; border-radius: 15px;
  padding: 16px; width: min(680px, calc(100% - 20px)); max-height: 90dvh;
}
dialog::backdrop { background: #241629ac; }
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px;
}
.detail-grid dt { font-weight: 650; }
.detail-grid dd { margin: 3px 0 0; }
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px;
  margin: 10px 0 16px;
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.case form, .decision-form { display: grid; gap: 10px; margin: 12px 0; }
.case button, .decision-form button { justify-self: start; }
.case blockquote { margin: 8px 0; padding: 10px; border-left: 3px solid var(--border); white-space: pre-wrap; }
.profile-bio { white-space: pre-wrap; }
.error { color: #9d1b3a; }
@media (max-width: 560px) {
  .filters { grid-template-columns: 1fr; }
  nav button { flex: 1; }
  .stats { gap: 5px; }
  .stats div { padding: 9px; font-size: .85rem; }
}
@media (max-width: 360px) {
  .detail-grid { grid-template-columns: 1fr; }
}
