:root{--ink:#0E1116;--muted:#5B6472;--bg:#F2F3F6;--card:#FFFFFF;--soft:#F5F6F8;--line:#E3E6EB;--blue:#2F5BEA;--blue-d:#1E44C4;--blue-l:#E8EDFB;--green:#17663F;--green-l:#E2F3EA;--orange:#9A4214;--orange-l:#FCEBDF;--red:#A23B12;--shadow:0 1px 2px rgba(14,17,22,.06)}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Segoe UI",system-ui,sans-serif;font-size:14px}
h1,h2,h3,.num{font-family:"Space Grotesk","Segoe UI",sans-serif}
a{color:var(--blue)}a:hover{color:var(--blue-d)}
button{font-family:inherit;cursor:pointer}
button:disabled{opacity:.5;cursor:default}
input,select,textarea{font-family:inherit;font-size:14px;color:var(--ink);border:1px solid #C9CFD8;border-radius:10px;padding:9px 11px;background:#fff;width:100%}
textarea{resize:vertical;line-height:1.5}
input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
label{font-size:12px;color:var(--muted);display:block;margin-bottom:4px}
.muted{color:var(--muted)}.small{font-size:12px}
.app{display:flex;min-height:100vh}
.side{width:228px;flex:none;padding:24px 14px;display:flex;flex-direction:column;gap:4px;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:10px;padding:0 10px 24px;font-family:"Space Grotesk",sans-serif;font-size:17px;line-height:1.1}
.brand span{font-family:Inter,sans-serif;font-size:13px;color:var(--muted)}
.logo{width:34px;height:34px;border-radius:10px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.nav-btn{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;min-height:44px;padding:0 12px;border:0;border-radius:12px;font-size:14px;color:var(--ink);background:transparent}
.nav-btn:hover{background:#E9EBEF}
.nav-btn.on{background:#fff;font-weight:600;box-shadow:0 1px 3px rgba(14,17,22,.10)}
.badge{background:var(--blue);color:#fff;border-radius:10px;padding:1px 8px;font-size:12px;font-weight:600}
.li-box{margin-top:auto;background:#fff;border-radius:14px;padding:14px;box-shadow:var(--shadow)}
.dot{display:inline-block;width:8px;height:8px;border-radius:4px;margin-right:8px;background:#A9B2C0}.dot.on{background:#1F9D5C}
.main{flex:1;min-width:0;padding:24px 28px 40px 8px;display:flex;flex-direction:column;gap:18px}
.card{background:var(--card);border-radius:18px;padding:18px 20px;box-shadow:var(--shadow)}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.between{justify-content:space-between}
.grid{display:grid;gap:14px}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}.g5{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:1100px){.g3,.g4,.g5{grid-template-columns:repeat(2,minmax(0,1fr))}}
.h1{margin:0;font-size:30px;font-weight:700}
.h2{margin:0;font-size:15px;font-weight:600}
.btn{min-height:42px;padding:0 16px;border:0;border-radius:12px;font-size:14px;font-weight:600;background:var(--blue);color:#fff}
.btn:hover{background:var(--blue-d)}
.btn.dark{background:var(--ink)}.btn.dark:hover{background:#262c36}
.btn.light{background:#fff;color:var(--ink);font-weight:500;box-shadow:0 1px 2px rgba(14,17,22,.1)}.btn.light:hover{background:#F7F8FA}
.btn.soft{background:#F0F1F4;color:var(--ink);font-weight:500}.btn.soft:hover{background:#E6E8EC}
.btn.ghost{background:transparent;color:var(--red);font-weight:500;padding:0 8px}
.btn.sm{min-height:34px;padding:0 12px;font-size:13px}
.pill{min-height:34px;padding:0 14px;border-radius:17px;font-size:13px;border:0;background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(14,17,22,.08)}
.pill.on{background:var(--ink);color:#fff}
.chip{display:inline-block;padding:3px 10px;border-radius:10px;font-size:12px;font-weight:600;white-space:nowrap;background:var(--blue-l);color:var(--blue-d)}
.chip.green{background:var(--green-l);color:var(--green)}.chip.orange{background:var(--orange-l);color:var(--orange)}.chip.grey{background:#ECEEF1;color:#4A5361}.chip.gold{background:#F3F0E4;color:#6B5A1E}
.chip.click{cursor:pointer;border:0}
.score{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;border-radius:10px;font-family:"Space Grotesk",sans-serif;font-weight:700;font-size:14px}
.score.A{background:var(--blue);color:#fff}.score.B{background:var(--blue-l);color:var(--blue-d)}.score.C{background:#ECEEF1;color:#4A5361}
.hero{background:var(--ink);color:#fff;border-radius:22px;padding:28px 32px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px}
.hero h1{margin:0;font-size:36px;letter-spacing:-.01em}
.hero p{margin:0;color:#C9D0DA;font-size:16px;line-height:1.5;max-width:460px}
.hero .btn.outline{background:transparent;border:1px solid #3A4352;color:#fff;font-weight:500}
.ring{width:112px;height:112px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.ring>div{width:88px;height:88px;border-radius:50%;background:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center}
.scene{width:150px;height:150px;perspective:600px}
.cube{width:96px;height:96px;margin:27px;position:relative;transform-style:preserve-3d;animation:spin 16s linear infinite}
.cube>div{position:absolute;inset:0;border-radius:14px;border:1px solid rgba(255,255,255,.35);background:linear-gradient(145deg,#E9EDF3,#9AA6B6 55%,#5E6A7B)}
.cube .f1{transform:translateZ(48px)}.cube .f2{transform:rotateY(180deg) translateZ(48px)}.cube .f3{transform:rotateY(90deg) translateZ(48px)}
.cube .f4{transform:rotateY(-90deg) translateZ(48px)}.cube .f5{transform:rotateX(90deg) translateZ(48px);background:linear-gradient(145deg,#F7F9FC,#C3CCD8)}.cube .f6{transform:rotateX(-90deg) translateZ(48px)}
.hole{position:absolute;left:30px;top:30px;width:36px;height:36px;border-radius:50%;background:radial-gradient(circle at 60% 35%,#3A4352,#0E1116 70%);box-shadow:inset 0 2px 6px rgba(0,0,0,.6)}
@keyframes spin{from{transform:rotateX(-22deg) rotateY(0)}to{transform:rotateX(-22deg) rotateY(360deg)}}
@media (prefers-reduced-motion:reduce){.cube{animation:none;transform:rotateX(-22deg) rotateY(-35deg)}}
.item{display:flex;align-items:center;gap:10px;text-align:left;padding:10px;border:0;border-radius:12px;background:var(--soft);color:var(--ink);width:100%}
.item:hover{background:#ECEEF2}
.item .t{flex:1;min-width:0}.item .t b{display:block;font-size:14px}.item .t span{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.list-card{display:flex;align-items:center;gap:12px;text-align:left;padding:12px;border-radius:14px;color:var(--ink);background:#fff;border:2px solid #fff;box-shadow:var(--shadow);width:100%}
.list-card.on{border-color:var(--blue)}
.list-card .t{flex:1;min-width:0}.list-card .t b{display:block;font-size:14px}.list-card .t span{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
code.q{display:block;flex:1 1 420px;background:var(--soft);border-radius:12px;padding:14px;font-size:13px;color:#2B3240;white-space:pre-wrap}
.info{background:var(--soft);border-radius:12px;padding:10px 12px}.info .k{font-size:11px;color:var(--muted)}.info .v{font-size:13px;font-weight:600;word-break:break-word}
.msg{background:var(--soft);border-radius:14px;padding:16px;font-size:14px;line-height:1.6;white-space:pre-line}
.steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.steps .bar{height:6px;border-radius:3px;background:var(--line)}.steps .bar.done{background:var(--green)}.steps .bar.cur{background:var(--blue)}
.steps span{font-size:11px;color:var(--muted)}.steps span.cur{color:var(--blue-d);font-weight:600}
.split{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-start}
.split>.l{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:8px;max-height:calc(100vh - 150px);overflow:auto;padding:2px}
.split>.r{flex:999 1 480px;min-width:0;display:flex;flex-direction:column;gap:14px}
.fbar{display:flex;align-items:flex-end;height:120px}.fbar>div{width:100%;border-radius:10px;background:var(--blue)}
.hbar{flex:1;height:8px;background:#EEF0F3;border-radius:4px}.hbar>span{display:block;height:8px;border-radius:4px;background:var(--blue)}
.toggle{flex:none;width:52px;height:30px;border-radius:15px;border:0;padding:3px;display:flex;background:#C9CFD8}
.toggle.on{background:var(--blue);justify-content:flex-end}
.toggle>span{width:24px;height:24px;border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.modal{position:fixed;inset:0;background:rgba(14,17,22,.45);display:flex;align-items:flex-start;justify-content:center;padding:6vh 16px;z-index:10;overflow:auto}
.modal[hidden]{display:none}
.modal .box{background:#fff;border-radius:20px;padding:24px;width:min(640px,100%);display:flex;flex-direction:column;gap:14px;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:12px;font-size:14px;z-index:20;max-width:90vw}
.toast.err{background:#9A2A12}
.empty{padding:24px;text-align:center;color:var(--muted);background:var(--soft);border-radius:14px}
.kv{display:flex;justify-content:space-between;gap:12px;font-size:14px;padding:6px 0;border-bottom:1px solid #F0F1F4}
.spin{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:r .8s linear infinite;vertical-align:-2px;margin-right:6px}
@keyframes r{to{transform:rotate(360deg)}}
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.login-card{width:min(400px,100%);display:flex;flex-direction:column;gap:16px;padding:28px}
.alert{background:var(--orange-l);color:var(--orange);border-radius:12px;padding:10px 12px;font-size:13px}
.side a.small{text-decoration:none}
@media (max-width:820px){.app{flex-direction:column}.side{width:auto;height:auto;position:static;flex-direction:row;flex-wrap:wrap;padding:12px}.side .brand{padding:0 8px 0 0}.side #nav{display:flex;flex-wrap:wrap;gap:4px}.nav-btn{width:auto}.li-box{margin:0}.main{padding:12px}.hero{padding:20px}.scene{display:none}.g3,.g4,.g5,.g2{grid-template-columns:1fr}}
