:root{
  --bg:#f4f6fa;
  --card:#ffffff;
  --txt:#1f2937;
  --muted:#6b7280;
  --bd:#e5e7eb;
  --pri:#2563eb;
  --pri-dark:#1d4ed8;
  --soft:#f8fbff;
  --soft-bd:#dbe7f5;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--txt);
}

.wrap{
  max-width:960px;
  margin:0 auto;
  padding:28px;
}

.card{
  background:var(--card);
  border:1px solid var(--bd);
  border-radius:18px;
  padding:26px;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  margin-bottom:18px;
}

.header h1{
  margin:0 0 10px;
  font-size:34px;
  color:#163b73;
  text-align:center;
}

.sub{
  margin:0;
  color:var(--muted);
  font-size:18px;
  line-height:1.7;
  text-align:center;
}

h2{
  margin:4px 0 16px;
  font-size:28px;
  color:#163b73;
}

.content p{
  margin:12px 0;
  font-size:20px;
  line-height:1.75;
}

ul{
  margin:14px 0 0 24px;
  padding-left:18px;
}

li{
  margin:10px 0;
  font-size:19px;
  line-height:1.7;
}

.hidden{
  display:none;
}

.btn{
  border:1px solid var(--bd);
  background:#ffffff;
  padding:14px 20px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
  font-size:18px;
  transition:transform .08s ease, box-shadow .08s ease, background .08s ease;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,0,0,.08);
}

.btn.primary{
  background:var(--pri);
  color:#fff;
  border-color:var(--pri);
}

.btn.primary:hover{
  background:var(--pri-dark);
  border-color:var(--pri-dark);
}

.btn:disabled{
  opacity:.5;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.toprow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
  flex-wrap:wrap;
}

.pill{
  border:1px solid var(--bd);
  background:#fafafa;
  border-radius:999px;
  padding:8px 14px;
  font-size:15px;
  color:var(--muted);
  font-weight:600;
}

.audioRow{
  display:flex;
  align-items:center;
  gap:12px;
  margin:12px 0 18px;
  flex-wrap:wrap;
}

.hint{
  color:var(--muted);
  font-size:15px;
}

.responseRow{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}

.lab{
  font-weight:700;
  font-size:18px;
}

.input{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--bd);
  min-width:260px;
  font-size:18px;
  background:#fff;
}

.input:focus{
  outline:none;
  border-color:#93c5fd;
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

.feedback{
  min-height:26px;
  margin:14px 0 0;
  color:var(--muted);
  font-size:18px;
  font-weight:600;
}

.details summary{
  cursor:pointer;
  margin-top:10px;
  font-size:17px;
  font-weight:600;
}

.main-title{
  text-align:center;
  font-size:34px;
  margin:0 0 10px;
  color:#163b73;
}

.main-sub{
  text-align:center;
  max-width:760px;
  margin:0 auto;
  font-size:18px;
  line-height:1.7;
  color:var(--muted);
}

.section-title{
  text-align:center;
  font-size:28px;
  color:#163b73;
  margin-bottom:18px;
}

.task-instruction{
  text-align:center;
  font-size:26px;
  color:#163b73;
  margin-bottom:18px;
}

.example-box{
  background:var(--soft);
  border:1px solid var(--soft-bd);
  border-radius:14px;
  padding:18px 20px;
  margin:20px 0 10px;
}

.example-title{
  margin:0 0 10px;
  font-size:20px;
  color:#163b73;
}

.example-list{
  margin:0;
  padding-left:22px;
}

.example-list li{
  margin:10px 0;
  line-height:1.7;
}

.start-row{
  text-align:center;
  margin-top:22px;
}

#screen-instructions .content{
  max-width:820px;
  margin:0 auto;
}

#screen-transition,
#screen-finish{
  text-align:center;
}

#summary{
  margin-top:12px;
  text-align:left;
  font-size:17px;
  line-height:1.7;
}
.status{
  margin-top:16px;
  font-size:17px;
  font-weight:700;
  color:var(--muted);
}
.status.ok{ color:#15803d; }
.status.bad{ color:#b91c1c; }
.download-row{
  text-align:center;
  margin-top:18px;
}
.download-row .btn{
  margin:6px;
}
.note{
  font-size:15px;
  color:var(--muted);
  line-height:1.6;
}
