:root{--v:#7c4dff;--t:#19d3c5;--tx:#f2f5ff;--mu:#c8d0f5;--ok:#2ee59d;--bad:#ff7d92}
*{box-sizing:border-box}
body{margin:0;font:21px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:linear-gradient(160deg,#070b2e,#16206b 55%,#2a1670) fixed;color:var(--tx);min-height:100vh;overflow-wrap:anywhere}
header{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 16px;background:#070b2eee;border-bottom:1px solid #ffffff22;font-size:19px}
main{max-width:980px;margin:0 auto;padding:12px 16px 48px}
h1{font-size:32px;margin:.4em 0;line-height:1.2}h2{font-size:26px;margin:.6em 0}h3{font-size:23px;margin:.4em 0}
.sub{font-size:26px;color:var(--t);font-weight:700}.tag{font-size:19px;color:var(--mu);margin:.3em 0}
.card{background:linear-gradient(180deg,#1b2882,#141d5c);border:1px solid #ffffff26;border-radius:22px;padding:18px;margin:14px 0;box-shadow:0 10px 30px #0006}
.center{text-align:center}
button{font:inherit;font-size:20px;min-height:56px;padding:8px 20px;border-radius:16px;border:2px solid #5566d9;background:#2a3aa8;color:#fff;cursor:pointer;margin:6px 6px 6px 0}
button:hover{filter:brightness(1.15)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:4px solid #ffd54a;outline-offset:2px}
.pri{font-size:23px;min-height:64px;border:0;background:linear-gradient(90deg,var(--v),var(--t));font-weight:700}
.sec{background:transparent}.danger{background:#8a2437;border-color:#ff7d92}.nav{font-size:19px;margin:0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px;margin-top:16px}
.tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:130px;margin:0;font-size:21px;font-weight:700;background:linear-gradient(160deg,#2c3cb8,#4b2bb5);text-align:center}
.tile span{font-size:40px}
.hero{text-align:center}.hero img{display:block;margin:0 auto;width:100%;max-width:620px;height:auto;border-radius:24px;box-shadow:0 14px 40px #000a}
.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}.item span{flex:1;min-width:120px}.done{text-decoration:line-through;opacity:.7}
label{display:block;margin:14px 0 6px;font-weight:600}.chk{display:flex;align-items:center;gap:10px}.chk input{width:28px;height:28px}
input,select,textarea{width:100%;font:inherit;font-size:21px;min-height:58px;padding:8px 14px;border-radius:14px;border:2px solid #7c8cff;background:#fff;color:#0b1240}
.row input{flex:1;width:auto;min-width:150px}
.opt{display:block;width:100%;text-align:left;margin:10px 0;background:#22318f}
.opt.sel{border-color:var(--t);background:#0e5f78}.opt.ok{background:#0f7a55;border-color:var(--ok)}.opt.bad{background:#8a2437;border-color:var(--bad)}.opt:disabled{opacity:1;cursor:default}
.fb{background:#ffffff18;border-radius:14px;padding:10px 14px}
.ring{width:150px;height:150px;border-radius:50%;background:conic-gradient(var(--t) calc(var(--p)*1%),#ffffff26 0);display:grid;place-items:center;margin:8px auto}
.ring b{width:112px;height:112px;border-radius:50%;background:#141d5c;display:grid;place-items:center;font-size:28px}
.bar{background:#ffffff22;border-radius:12px;height:28px;overflow:hidden}.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--v),var(--t))}
.rev.g{border-left:8px solid var(--ok)}.rev.x{border-left:8px solid var(--bad)}
details{border-top:1px solid #ffffff22;padding:8px 0}summary{cursor:pointer;font-weight:700;min-height:44px}
#toast{position:fixed;left:12px;right:12px;bottom:16px;z-index:9;background:#fff;color:#0b1240;padding:14px 18px;border-radius:16px;font-size:20px;font-weight:600;box-shadow:0 8px 30px #000a;max-width:700px;margin:auto}
@media print{header,button,#toast{display:none!important}body{background:#fff;color:#000}.card{background:#fff;color:#000;box-shadow:none;border:1px solid #999}.tag{color:#333}}

.qt{white-space:pre-line}.mem{white-space:pre-line;font-size:30px;line-height:1.6;text-align:center;background:#ffffff18;border-radius:16px;padding:16px;margin:12px 0;letter-spacing:.04em}
