:root {
  --bg: #0f1218;
  --surface: #161b24;
  --surface-2: #1d2430;
  --border: #2a3342;
  --text: #e6eaf2;
  --muted: #8b95a7;
  --accent: #4f8cff;
  --accent-2: #7b5cff;
  --ok: #3ecf8e;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 18, 24, .9);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 18px; color: #fff;
}
.brand-title { font-weight: 700; font-size: 16px; }
.brand-sub { font-size: 12px; color: var(--muted); }
.topbar-meta { display: flex; gap: 8px; }
.pill {
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); background: var(--surface);
}
.pill-ok { color: var(--ok); border-color: rgba(62, 207, 142, .35); }
main { flex: 1; padding: 28px 0 140px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.card-head h1 { margin: 0; font-size: 18px; }
.search {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 8px 12px; width: 260px; outline: none;
}
.search:focus { border-color: var(--accent); }
.table-scroll { overflow-x: auto; }
table.tasks { width: 100%; border-collapse: collapse; min-width: 860px; }
table.tasks th, table.tasks td {
  text-align: left; padding: 14px 20px;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
table.tasks th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 600; background: var(--surface-2);
}
table.tasks tbody tr { transition: background .12s; }
table.tasks tbody tr:hover { background: var(--surface-2); }
table.tasks tbody tr:last-child td { border-bottom: none; }
.task-name { font-weight: 600; display: block; }
.task-desc { font-size: 13px; color: var(--muted); margin-top: 3px; display: block; }
.endpoint { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; color: #9ec1ff; }
.endpoint a { color: inherit; text-decoration: none; }
.endpoint a:hover { text-decoration: underline; }
.badge {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); text-decoration: none;
  transition: all .12s;
}
.badge:hover { border-color: var(--accent); color: var(--accent); }
.badge.missing { opacity: .45; pointer-events: none; }
.solution { font-size: 13px; color: var(--muted); }
.solution .when { display: block; font-size: 12px; color: #6b7484; margin-top: 3px; }
.solution .status-pass { color: var(--ok); }
.solution .status-fail { color: #ff7a7a; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.panel {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: rgba(22, 27, 36, .96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.panel-inner { display: flex; gap: 14px; align-items: flex-end; padding: 14px 20px; }
.panel-field { display: flex; flex-direction: column; gap: 5px; min-width: 220px; }
.panel-field.grow { flex: 1; }
.panel-field span { font-size: 12px; color: var(--muted); }
.panel-field select,
.panel-field input {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 10px 12px; font-size: 14px; outline: none; width: 100%;
}
.panel-field select:focus,
.panel-field input:focus { border-color: var(--accent); }
.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none; border-radius: 8px; color: #fff;
  padding: 11px 22px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: opacity .12s;
}
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.panel-msg { padding: 0 20px 12px; font-size: 13px; }
.panel-msg.ok { color: var(--ok); }
.panel-msg.err { color: #ff7a7a; }
@media (max-width: 720px) {
  .panel-inner { flex-direction: column; align-items: stretch; }
  .panel-field { min-width: 0; }
  main { padding-bottom: 260px; }
  .search { width: 100%; }
  .card-head { flex-direction: column; align-items: stretch; }
}

.solution .status-question { color: #f0b429; }
