*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:#f6f7fb;color:#111}
#app{max-width:980px;margin:0 auto;padding:20px}
header{margin-bottom:14px}
h1{margin:0 0 6px 0;font-size:28px}
.sub{color:#444}
.card{background:#fff;border:1px solid #e6e8f2;border-radius:14px;padding:16px;box-shadow:0 6px 18px rgba(20,20,40,.06);margin-bottom:14px}
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:end}
.row.small{margin-top:10px;align-items:center}
label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#333}
select,input[type="text"]{border:1px solid #d7dbea;border-radius:10px;padding:10px 12px;min-width:220px;font-size:14px}
button{border:1px solid #d7dbea;background:#fff;border-radius:10px;padding:10px 12px;font-weight:600;cursor:pointer}
button.primary{background:#111;color:#fff;border-color:#111}
button.ghost{background:#fff;color:#111}
button:disabled{opacity:.6;cursor:not-allowed}
.check{flex-direction:row;align-items:center;gap:8px}
.hidden{display:none}
.topbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.crumbs,.stats{color:#444;font-size:13px}
.question{padding:10px 0}
.q-label{font-size:12px;color:#666;margin-bottom:6px}
.q-text{font-size:28px;font-weight:800;letter-spacing:.3px}
.answer{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:10px}
.answer input{flex:1;min-width:240px}
.result{margin-top:12px;padding:10px 12px;border-radius:12px;font-weight:700}
.result.ok{background:#e8fff1;border:1px solid #b7f2cc;color:#0b5d2a}
.result.no{background:#fff2f2;border:1px solid #ffc5c5;color:#7b1212}
.miss{margin-top:12px;border-top:1px dashed #e1e5f3;padding-top:12px}
.miss-title{font-weight:900;margin-bottom:8px}
.miss-body{color:#222;line-height:1.35}
.miss-body .small{color:#444;font-size:13px}
code{background:#f0f3ff;padding:2px 6px;border-radius:8px}
footer{color:#666;font-size:12px;margin-top:10px}
.status{color:#555;font-size:12px;margin-top:4px}
.steps{margin:6px 0 0 18px;padding:0}
.steps li{margin-bottom:4px}
.muted{color:#777}
.log-panel{border-top:1px dashed #e1e5f3;padding-top:8px}
.log-table{width:100%;border-collapse:collapse;font-size:13px}
.log-table th,.log-table td{border-bottom:1px solid #eef0f7;padding:6px 8px;text-align:left;vertical-align:top}
.log-table th{color:#444;font-weight:700;background:#fafbff}
.log-table tr:nth-child(even){background:#fbfcff}
.pill{display:inline-block;padding:2px 6px;border-radius:6px;font-size:12px;font-weight:700}
.pill.ok{background:#e8fff1;color:#0b5d2a}
.pill.no{background:#fff2f2;color:#7b1212}
.pill.star{background:#ffeccc;color:#7b4b00}
.test-box{margin-top:8px;border:1px solid #e6e8f2;border-radius:12px;padding:12px;background:#fafbff}
.test-answer input{min-width:200px}
.test-questions{margin-top:10px;display:flex;flex-direction:column;gap:10px}
.test-item{border:1px solid #e6e8f2;border-radius:10px;padding:10px;background:#fafbff}
.test-item .q-label{margin-bottom:6px}
.test-item input{width:100%;max-width:320px}
