
:root{
  --bg:#0b1020;
  --card:#0f172a;
  --card2:#111c36;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --brand:#38bdf8;
  --ok:#22c55e;
  --bad:#ef4444;
  --border:rgba(148,163,184,.18);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  --max:980px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}
@media (prefers-color-scheme: light){
  :root{
    --bg:#f6f8fc;
    --card:#ffffff;
    --card2:#ffffff;
    --text:#0b1020;
    --muted:#475569;
    --border:rgba(15,23,42,.12);
    --shadow: 0 10px 24px rgba(2,6,23,.08);
  }
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(56,189,248,.14), transparent 55%),
              radial-gradient(900px 520px at 90% 10%, rgba(34,197,94,.10), transparent 50%),
              var(--bg);
  color:var(--text);
}
a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:18px 14px 40px;}
.header{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(2,6,23,.72), rgba(2,6,23,.10));
  border-bottom:1px solid var(--border);
}
@media (prefers-color-scheme: light){
  .header{ background: linear-gradient(to bottom, rgba(246,248,252,.92), rgba(246,248,252,.60)); }
}
.topbar{display:flex; align-items:center; justify-content:space-between; gap:12px;}
.brand{
  display:flex; align-items:center; gap:12px; min-width:0;
}
.logo{
  width:42px; height:42px; border-radius:14px;
  background: linear-gradient(135deg, rgba(56,189,248,.95), rgba(34,197,94,.85));
  box-shadow: var(--shadow);
  display:grid; place-items:center;
  flex:0 0 auto;
}
.logo svg{filter: drop-shadow(0 6px 10px rgba(0,0,0,.22))}
.brand h1{font-size:16px; margin:0; line-height:1.15}
.brand .sub{font-size:12px; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.actions{display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.btn{
  appearance:none; border:1px solid var(--border); background: rgba(148,163,184,.10);
  color:var(--text); padding:10px 12px; border-radius:14px; cursor:pointer;
  font-weight:600; font-size:13px;
  display:inline-flex; align-items:center; gap:8px;
}
.btn:hover{transform: translateY(-1px); transition: transform .12s ease}
.btn.primary{background: rgba(56,189,248,.18); border-color: rgba(56,189,248,.35)}
.btn.ok{background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.34)}
.btn.bad{background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.34)}
.pill{
  padding:8px 10px; border:1px solid var(--border); border-radius:999px;
  font-size:12px; color:var(--muted); background: rgba(148,163,184,.06);
}
.progress-wrap{margin-top:12px;}
.progress{
  height:10px; border-radius:999px;
  border:1px solid var(--border);
  background: rgba(148,163,184,.08);
  overflow:hidden;
}
.progress > div{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(56,189,248,.95), rgba(34,197,94,.90));
  border-radius:999px;
  transition: width .25s ease;
}
.grid{display:grid; gap:14px; margin-top:16px;}
.card{
  background: linear-gradient(180deg, rgba(148,163,184,.06), rgba(148,163,184,.02));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-inner{padding:16px}
.meta{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap}
.qtitle{font-size:14px; color:var(--muted); font-weight:700; letter-spacing:.2px}
.qtext{margin:10px 0 12px; font-size:16px; line-height:1.4}
.options{display:grid; gap:10px; margin:12px 0 4px;}
.opt{
  display:flex; gap:10px; align-items:flex-start;
  padding:12px 12px; border-radius:14px;
  border:1px solid var(--border);
  background: rgba(148,163,184,.06);
  cursor:pointer;
}
.opt:hover{background: rgba(148,163,184,.10)}
.opt input{margin-top:3px}
.opt .txt{font-size:14px; line-height:1.3}
.hint{color:var(--muted); font-size:12px; margin-top:6px}
.footerbar{display:flex; gap:10px; flex-wrap:wrap; justify-content:space-between; align-items:center; margin-top:12px;}
.toast{
  margin-top:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(148,163,184,.06);
}
.toast.ok{border-color: rgba(34,197,94,.34); background: rgba(34,197,94,.10)}
.toast.bad{border-color: rgba(239,68,68,.34); background: rgba(239,68,68,.10)}
.small{font-size:12px; color:var(--muted)}
.list{margin:0; padding-left:18px}
.accordion summary{cursor:pointer; font-weight:700}
.accordion details{
  border:1px solid var(--border);
  border-radius:14px;
  background: rgba(148,163,184,.05);
  padding:12px 12px;
}
.accordion details + details{margin-top:10px}
pre{
  margin:10px 0 0;
  white-space:pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:13px;
  color:var(--text);
}
