:root{
  --bg:#ffffff;
  --card:#ffffff;
  --text:#111;
  --muted:#666;
  --line:#e7e7e7;
  --primary:#0b57d0;
  --warn:#b42318;
  --softYellow:#fff7cc;
  --softInput:#fffbe6;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:"Noto Sans TC",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
.wrap{max-width:1050px;margin:0 auto;padding:16px}
.topbar{border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:10}
.brand{display:flex;gap:12px;align-items:center}
.dot{width:12px;height:12px;border-radius:999px;background:var(--primary)}
.title{font-size:18px;font-weight:700}
.subtitle{font-size:12px;color:var(--muted)}
.apiBox{margin-top:12px;border:1px solid var(--line);border-radius:14px;padding:12px}
.apiBox label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.row{display:flex;gap:8px}
.row input{flex:1}
button{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 12px;font-weight:700;cursor:pointer}
button.primary{background:var(--primary);color:#fff;border-color:var(--primary)}
button.ghost{background:#fff}
button:active{transform:translateY(1px)}
.hint{font-size:12px;color:var(--muted);margin-top:8px}
.card{border:1px solid var(--line);border-radius:18px;padding:16px;margin:14px 0;box-shadow:0 8px 28px rgba(0,0,0,.06)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:12px;color:var(--muted)}
.field input, .field textarea{border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:14px;background:var(--softInput)}
.field textarea{min-height:96px;resize:vertical}
.field input:focus, .field textarea:focus{outline:2px solid rgba(11,87,208,.25);border-color:rgba(11,87,208,.35)}
.field.span2{grid-column:span 2}
.rowBetween{display:flex;justify-content:space-between;gap:12px;align-items:flex-end}
.small{font-size:12px;color:var(--muted)}
.qWrap{display:flex;flex-direction:column;gap:14px;margin-top:10px}
.qCard{border:1px solid var(--line);border-radius:16px;padding:14px;background:#fff}
.qCard.missing{background:var(--softYellow);border-color:#f5c34c}
.qHead{display:flex;justify-content:space-between;gap:10px}
.qTitle{font-weight:800}
.qPts{font-size:12px;color:var(--muted)}
.qText{margin:10px 0 12px;line-height:1.45}
.qText .en{color:#333;margin-top:6px}
.ansArea{display:flex;flex-direction:column;gap:8px}
.letterInput{max-width:180px}
.letterInput input{background:var(--softInput);text-transform:uppercase}
.letterInput input.invalid{border-color:var(--warn);outline:2px solid rgba(180,35,24,.15)}
.missBox{border:2px solid var(--warn)!important}
.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}
.status{margin-top:12px;font-size:13px}
.status.ok{color:#0a7a2a}
.status.bad{color:var(--warn)}
.footer{border-top:1px solid var(--line);margin-top:24px;color:var(--muted);font-size:12px}
mark{background:#ffe08a;padding:0 2px;border-radius:4px}
@media (max-width:900px){
  .grid3{grid-template-columns:1fr}
  .field.span2{grid-column:span 1}
  .row{flex-direction:column}
}
