:root {
  --bg: #000;
  --card: #0d0d0d;
  --line: rgba(255, 255, 255, 0.18);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.65);
  --blue: #3da9ff;
  --yellow: #ffe500;
  --violet: #b57bff;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--blue); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px 64px; }
.narrow { max-width: 760px; }

h1 { font-size: 28px; margin: 0 0 4px; }
h2 { font-size: 19px; margin: 28px 0 8px; color: var(--blue); }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #000; border: 0; border-radius: 999px;
  padding: 10px 18px; font-weight: 700; font-size: 14px; cursor: pointer;
  text-decoration: none;
}
.btn:disabled { opacity: .4; cursor: default; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid var(--line); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}

header.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 20px;
}

.tabs { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.tabs button {
  background: transparent; color: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer;
}
.tabs button.on { background: #fff; color: #000; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat b { display: block; font-size: 26px; }

input[type=search], select {
  background: #000; color: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font-size: 14px;
}
input[type=search] { width: min(360px, 100%); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 900px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); position: sticky; top: 0; background: var(--card); }
tr.row { cursor: pointer; }
tr.row:hover { background: rgba(255,255,255,.05); }

.name { color: var(--blue); font-weight: 700; }
.days { color: var(--yellow); font-weight: 800; }
.chal { color: var(--violet); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pill.pro { background: var(--yellow); color: #000; }
.pill.free { border: 1px solid var(--line); color: var(--muted); }
.pill.ok { background: var(--green); color: #000; }
.pill.bad { background: var(--red); color: #fff; }
.pill.bug { background: var(--red); color: #fff; }
.pill.fb { background: var(--blue); color: #000; }
.ok-text { color: var(--green); font-weight: 700; }
.bad-text { color: var(--red); font-weight: 700; }

.detail { margin-top: 16px; }
.alarm-line { padding: 6px 0; border-bottom: 1px solid var(--line); }
.note { margin-bottom: 10px; }
.note p { white-space: pre-wrap; margin: 8px 0 0; }
.hidden { display: none !important; }

.legal h2 { margin-top: 24px; }
.legal p { color: rgba(255,255,255,.88); }
footer { margin-top: 40px; color: var(--muted); font-size: 13px; }
