:root { --bg:#10141a; --card:#1a212b; --fg:#e8edf3; --muted:#9aa7b6; --acc:#3d8bfd; --ok:#3fbf6f; --bad:#ff6b6b; --warn:#f0b400; }
* { box-sizing: border-box; }
html, body { margin:0; background:var(--bg); color:var(--fg); font:16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 720px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.5rem; margin: 8px 0 16px; }
h2 { font-size: 1.15rem; margin: 0 0 10px; display:flex; align-items:center; gap:10px; }
.num { display:inline-flex; width:28px; height:28px; border-radius:50%; background:var(--acc); color:#fff; align-items:center; justify-content:center; font-size:.95rem; flex:none; }
.card { background:var(--card); border-radius:12px; padding:16px; margin:0 0 14px; }
.card.done .num { background:var(--ok); }
ol { margin:0; padding-left:22px; } li { margin:4px 0; }
code { background:#0b0f14; padding:1px 6px; border-radius:6px; font-size:.95em; }
button { font:inherit; font-weight:600; border:0; border-radius:10px; padding:12px 18px; background:var(--acc); color:#fff; cursor:pointer; min-height:48px; margin:6px 0; }
button.secondary { background:#2c3644; }
button:disabled { opacity:.45; cursor:not-allowed; }
.hint { color:var(--muted); margin:0 0 8px; }
.status { margin-top:8px; white-space:pre-line; }
.status.ok { color:var(--ok); } .status.bad { color:var(--bad); } .status.warn { color:var(--warn); }
.alert { border-radius:10px; padding:12px 14px; margin:0 0 14px; }
.alert.bad { background:#3a1717; border:1px solid var(--bad); }
.alert.warn { background:#3a3112; border:1px solid var(--warn); margin-top:10px; }
.alert b { display:block; margin-bottom:4px; }
dl { display:grid; grid-template-columns:max-content 1fr; gap:4px 12px; margin:10px 0 0; }
dt { color:var(--muted); } dd { margin:0; word-break:break-word; }
progress { width:100%; height:10px; margin-top:8px; }
.perm-info { background:#0f1620; border:1px dashed #3a4a60; border-radius:10px; padding:10px 14px; margin:0 0 8px; }
.perm-info p { margin:0 0 4px; } .perm-info ul { margin:0; padding-left:20px; }
.perms { list-style:none; padding:0; margin:8px 0 0; }
.perms li { padding:4px 0; border-bottom:1px solid #263040; }
.perms .st { float:right; color:var(--muted); } .perms .st.ok { color:var(--ok); } .perms .st.bad { color:var(--warn); }
details { margin-top:8px; color:var(--muted); }
pre { white-space:pre-wrap; word-break:break-all; font-size:.8rem; background:#0b0f14; padding:10px; border-radius:8px; max-height:320px; overflow:auto; }
[hidden] { display:none !important; }
