/* One small stylesheet, phone-first. Wider screens just get more room. */
:root { --ink:#1f2a37; --muted:#6b7280; --brand:#2a6f97; --bg:#f6f7f9; --card:#fff; --line:#e5e7eb; }
* { box-sizing:border-box; }
body { margin:0; font:17px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--ink); background:var(--bg); }
.top { display:flex; justify-content:space-between; align-items:center; padding:.75rem 1rem; background:var(--card); border-bottom:1px solid var(--line); }
.brand { color:var(--ink); text-decoration:none; font-weight:600; }
.brand span { color:var(--brand); }
.lang button { background:none; border:1px solid var(--line); border-radius:6px; padding:.35rem .7rem; font:inherit; font-size:.9rem; cursor:pointer; }
main { max-width:960px; margin:0 auto; padding:1rem; }
.card { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:1.25rem; }
h1 { font-size:1.5rem; margin:.2rem 0 .8rem; }
.muted { color:var(--muted); }
@media (min-width:700px){ main { padding:2rem; } h1 { font-size:1.9rem; } }
.topright { display:flex; gap:.8rem; align-items:center; flex-wrap:wrap; justify-content:flex-end; font-size:.95rem; }
.topright a { color:var(--brand); text-decoration:none; }
.inline { display:inline; margin:0; }
button.link { background:none; border:0; color:var(--brand); font:inherit; cursor:pointer; padding:0; }
.card + .card, .card { margin-bottom:1rem; }
.card.narrow { max-width:460px; margin:1rem auto; }
.card.attention { border-color:#f0b429; background:#fffbea; }
.cardhead { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.5rem; }
.actions { display:flex; gap:.5rem; flex-wrap:wrap; }
h2 { font-size:1.25rem; margin:.2rem 0 .6rem; } h3 { font-size:1.05rem; margin:1rem 0 .2rem; }
.field { margin-bottom:.9rem; display:flex; flex-direction:column; gap:.25rem; }
.field input, .field select { font:inherit; padding:.6rem; border:1px solid #cbd2d9; border-radius:8px; width:100%; }
.field label { font-weight:600; }
.error { color:#b42318; } .has-error input { border-color:#b42318; }
.btn, .btn-secondary { display:inline-block; font:inherit; padding:.6rem 1.1rem; border-radius:8px; cursor:pointer; text-decoration:none; margin:.2rem .3rem .2rem 0; }
.btn { background:var(--brand); color:#fff; border:0; }
.btn-secondary { background:#fff; color:var(--brand); border:1px solid var(--brand); }
.msg { padding:.7rem 1rem; border-radius:8px; margin-bottom:1rem; background:#e8f4fd; }
.msg-success { background:#e3f9e5; } .msg-error { background:#fde8e8; }
.tbl { width:100%; border-collapse:collapse; font-size:.95rem; }
.tbl th, .tbl td { text-align:left; padding:.45rem .4rem; border-bottom:1px solid var(--line); }
.small { font-size:.9rem; }
@media (max-width:560px){ .tbl thead { display:none; } .tbl td { display:block; border:0; padding:.15rem 0; } .tbl tr { display:block; border-bottom:1px solid var(--line); padding:.4rem 0; } .tbl td[data-label]::before { content:attr(data-label) ": "; color:var(--muted); } }
a { color:var(--brand); }
.badge { display:inline-block; font-size:.8rem; font-weight:500; background:#eef2ff; color:#3730a3; border-radius:999px; padding:.15rem .6rem; vertical-align:middle; }
.aclist { list-style:none; padding:0; margin:0; }
.aclist li a { display:flex; align-items:center; gap:.8rem; padding:.75rem .2rem; border-bottom:1px solid var(--line); color:var(--ink); text-decoration:none; }
.aclist li:last-child a { border-bottom:0; }
.acnum { flex:0 0 2rem; height:2rem; border-radius:50%; background:#eef2f7; display:flex; align-items:center; justify-content:center; font-weight:600; }
.actitle { flex:1; display:flex; flex-direction:column; } .actitle small { font-size:.85rem; }
.st { font-size:.8rem; padding:.2rem .6rem; border-radius:999px; background:#f1f5f9; color:var(--muted); white-space:nowrap; }
.st-passed { background:#e3f9e5; color:#196c2e; } .st-failed { background:#fde8e8; color:#9b1c1c; } .st-progress { background:#fff4d6; color:#8a5a00; }
.stepper { display:flex; gap:.4rem; list-style:none; padding:0; margin:.5rem 0 1rem; flex-wrap:wrap; }
.stepper a { display:flex; width:2.2rem; height:2.2rem; border-radius:50%; align-items:center; justify-content:center; border:2px solid var(--line); background:#fff; color:var(--ink); text-decoration:none; font-weight:600; }
.stepper .done a { background:#e3f9e5; border-color:#7bc47f; } .stepper .current a { border-color:var(--brand); }
.video { position:relative; padding-top:56.25%; margin:.5rem 0 1rem; } .video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; border-radius:8px; }
.cardimg { max-width:100%; height:auto; border-radius:8px; border:1px solid var(--line); margin:.5rem 0; }
.stepnav { display:flex; justify-content:space-between; gap:.5rem; margin-top:1rem; } .stepnav .btn { margin-left:auto; }
fieldset.q { border:1px solid var(--line); } fieldset.q legend { font-weight:600; padding:0 .3rem; }
.opt { display:flex; gap:.6rem; align-items:flex-start; padding:.6rem; border:1px solid var(--line); border-radius:8px; margin:.4rem 0; cursor:pointer; }
.opt input { margin-top:.3rem; transform:scale(1.2); }
.card.pass { border-color:#7bc47f; background:#f3fbf4; } .card.fail { border-color:#f0b429; background:#fffbea; }
.card.q.wrong { border-left:4px solid #e02424; } .card.q.right { border-left:4px solid #31c48d; }
.ok { color:#196c2e; } .bad { color:#9b1c1c; }
