:root {
  --ink: #0e0e10; --iron: #1a1a1e; --iron-2: #25252b; --line: #33333b;
  --chalk: #f5f5f7; --muted: #a3a3ae; --peach: #ffb39e; --peach-deep: #f79f86;
  --good: #7fd6a8; --danger: #ff6b6b;
  --font: 'Archivo', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--chalk); font: 400 15px/1.5 var(--font); }
a { color: var(--peach); }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--peach); color: var(--ink); font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--peach-deep); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--chalk); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--iron); }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 14px; }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px #5a2a2a; }
input[type=email], input[type=text], input[type=date], input[type=number], input[type=password], select {
  min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--iron); color: var(--chalk); width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--peach); }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(1); }
.msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; }
.msg.err { color: var(--danger); } .msg.ok { color: var(--good); }

/* Sign in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.signin-box { width: min(100%, 400px); display: grid; gap: 14px; }
.signin-box img { width: 56px; height: 56px; border-radius: 14px; }
.signin-box h1 { font-stretch: 62%; font-weight: 800; font-size: 56px; line-height: .95; margin: 8px 0 0; }
.signin-box p { color: var(--muted); margin: 0; }

/* Shell */
.shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; margin: 0 8px 22px; }
.side .brand img { width: 30px; height: 30px; border-radius: 8px; }
.side .brand small { color: var(--muted); font-weight: 500; font-size: 12px; display: block; }
.side a.nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; }
.side a.nav:hover { background: var(--iron); color: var(--chalk); }
.side a.nav.on { background: var(--iron-2); color: var(--chalk); }
.side .count { background: var(--peach); color: var(--ink); border-radius: 999px; font-size: 12px; font-weight: 800; padding: 1px 8px; }
.side .who { margin-top: auto; padding: 12px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.main { padding: 28px 36px 64px; max-width: 1200px; }
.main h2 { font-stretch: 62%; font-weight: 800; font-size: 46px; line-height: 1; margin: 0 0 6px; }
.main .sub { color: var(--muted); margin: 0 0 24px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .side .brand { margin: 0 12px 0 4px; } .side .who { display: none; }
  .main { padding: 20px 16px 48px; }
}

/* Range picker */
.range { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.range button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.range button.on { background: var(--chalk); border-color: var(--chalk); color: var(--ink); }
.range .custom { display: flex; gap: 6px; align-items: center; }
.range .custom input { width: 150px; min-height: 36px; }

/* Stats */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--iron); border-radius: 16px; padding: 18px; }
.stat .label { color: var(--muted); font-size: 13px; margin: 0; }
.stat .value { font-stretch: 62%; font-weight: 800; font-size: 44px; line-height: 1.05; margin: 4px 0 0; }
.stat .note { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.stat.hero { background: var(--chalk); color: var(--ink); }
.stat.hero .label, .stat.hero .note { color: #5d5d66; }
.section-title { font-size: 19px; font-weight: 800; margin: 8px 0 12px; }
.panel { background: var(--iron); border-radius: 16px; padding: 18px; margin-bottom: 20px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .two { grid-template-columns: 1fr; } }

/* Bar chart */
.chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 10px; }
.chart .bar { flex: 1; background: var(--peach); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.chart .bar:hover { background: var(--chalk); }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }
.empty { color: var(--muted); padding: 24px 0; text-align: center; }

/* Split bar (women vs men) */
.split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--iron-2); margin: 10px 0; }
.split .w { background: var(--peach); } .split .m { background: #8fb7ff; }
.legend { display: flex; gap: 18px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.legend b { color: var(--chalk); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
td .tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--iron-2); color: var(--muted); margin-right: 4px; }
td .tag.on { background: rgba(255,179,158,.15); color: var(--peach); }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form > input[type=email], .inline-form > input[type=text] { flex: 1 1 220px; }
.inline-form > input[type=number] { flex: 0 1 140px; }
.inline-form > select, .inline-form > input[type=date] { width: auto; flex: 0 0 auto; }
.inline-form label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) { .inline-form > * { flex: 1 1 100%; } }

/* Moderation cards */
.queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--iron); border-radius: 16px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.card img.photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; background: var(--iron-2); }
.card img.id { width: 100%; aspect-ratio: 3/2; object-fit: contain; border-radius: 12px; background: #000; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; }
.thumbs img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; flex: none; }
.card h3 { margin: 0; font-size: 17px; }
.muted { color: var(--muted); font-size: 13px; margin: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.checklist { background: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; display: grid; gap: 4px; }
.chat { background: var(--ink); border-radius: 10px; padding: 10px; display: grid; gap: 6px; max-height: 320px; overflow-y: auto; font-size: 14px; }
.chat .them { color: var(--muted); }
.chat b { color: var(--chalk); }
.kicker { color: var(--danger); font-size: 12px; font-weight: 800; }
dialog { background: var(--iron); color: var(--chalk); border: 1px solid var(--line); border-radius: 16px; padding: 20px; width: min(92vw, 420px); }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog h3 { margin: 0 0 10px; }
dialog .reasons { display: grid; gap: 8px; margin: 12px 0; }

#pw-form { display: grid; gap: 10px; width: min(90vw, 380px); }
#pw-form h3 { margin: 0; }
#pw-form p { margin: 0; }
