/* Minimal, accessible, pro-grade UI for GitHub Pages */

:root{
  --bg:#0b1220;
  --card:#121a2b;
  --text:#eaf0ff;
  --muted:#a9b6d6;
  --line:#223053;
  --btn:#223053;
  --btn2:#2f4275;
  --blue:#2b5cff;
  --blue2:#1f4df0;
  --danger:#8b1d1d;
  --danger2:#b01f1f;
  --good:#2ecc71;
  --warn:#f1c40f;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: radial-gradient(1200px 800px at 20% 0%, #152140 0%, var(--bg) 55%, #050a14 100%);
  color:var(--text);
}

.header{
  padding:26px 18px 8px;
  max-width:980px;
  margin:0 auto;
}
.header-inner{
  display:flex;
  gap:16px;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
}
.header h1{margin:0 0 6px;font-size:28px;}
.sub{margin:0;color:var(--muted);max-width:720px;}
.chip{
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
  background:rgba(255,255,255,0.03);
}

.container{
  max-width:980px;
  margin:0 auto;
  padding:12px 18px 30px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
}

.hidden{display:none;}

.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media (max-width:820px){
  .grid2{grid-template-columns:1fr;}
}

.panel{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 14px;
  background:rgba(255,255,255,0.02);
}
.panel h3{margin:0 0 8px;font-size:16px;}
ul{margin:0;padding-left:18px;color:var(--muted);}
li{margin:6px 0;}

.row{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:14px;
  flex-wrap:wrap;
}
.row.column{
  flex-direction:column;
  align-items:flex-start;
}
.row.space{margin-top:16px;}

.btn{
  border:1px solid var(--line);
  background:var(--btn);
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
}
.btn:hover{background:var(--btn2);}
.btn:disabled{opacity:0.5;cursor:not-allowed;}

.primary{
  background:var(--blue);
  border-color:var(--blue);
}
.primary:hover{background:var(--blue2);}

.danger{
  background:rgba(139,29,29,0.45);
  border-color:rgba(176,31,31,0.7);
}
.danger:hover{background:rgba(176,31,31,0.6);}

.chk{color:var(--muted);}
.file{max-width:380px;}

.hr{
  border:0;
  border-top:1px solid var(--line);
  margin:18px 0;
}

.details summary{
  cursor:pointer;
  color:var(--text);
}
.muted{color:var(--muted);}

.topbar{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  border-bottom:1px solid var(--line);
  padding-bottom:12px;
  margin-bottom:14px;
}
.left{min-width:220px;}
.right{text-align:right;}
.pill{
  display:inline-block;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
  background:rgba(255,255,255,0.02);
}
.meta{margin-top:6px;color:var(--muted);}
.flags{
  margin-top:8px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.flag{
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.02);
  color:var(--muted);
}
.flag.warn{border-color:rgba(241,196,15,0.7); color:#f6d56c;}
.flag.bad{border-color:rgba(231,76,60,0.7); color:#ff9a92;}

.timerLabel{color:var(--muted);font-size:12px;}
.timerValue{font-size:22px;font-weight:800;letter-spacing:0.5px;}

.qwrap h2{margin:0 0 8px;}
.prompt{margin:0 0 10px;color:var(--muted);}

.stimulus{
  margin-top:10px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background:rgba(0,0,0,0.22);
}

.answers{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.choice{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.02);
  cursor:pointer;
}
.choice:hover{background:rgba(255,255,255,0.04);}
.choice input{margin-top:3px;}

.textInput{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(0,0,0,0.25);
  color:var(--text);
  margin-top:10px;
  font-size:16px;
}

.hint{margin:10px 0 0;color:var(--muted);font-size:13px;}

.results{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.resultRow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,0.02);
}
.k{color:var(--muted);}
.v{font-weight:800;}

.history{
  display:grid;
  gap:10px;
  margin-top:12px;
}

kbd{
  padding:1px 6px;
  border:1px solid var(--line);
  border-radius:6px;
  background:rgba(255,255,255,0.04);
}


.lbl{ color: var(--muted); font-size: 13px; }
.select{ padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,0.25); color: var(--text); }
.smallmuted{ color: var(--muted); font-size: 12px; }
.svgStem svg{ max-width: 100%; height: auto; display:block; margin: 0 auto; }
.svgOption svg{ width: 110px; height: 80px; }
.choiceNum{ display:inline-block; width:24px; color: var(--muted); }
