:root{
  --bg:#0a0c0b;--bg2:#0e1210;--panel:#121715;--panel2:#171e1a;--line:#222b26;--line2:#2c3731;
  --text:#edf3ef;--muted:#93a29a;--soft:#66756d;
  --acc:#22c55e;--acc2:#16a34a;--acc3:#4ade80;--accbg:rgba(34,197,94,.12);--accline:rgba(34,197,94,.35);
  --warnbg:rgba(234,179,8,.10);--warnline:rgba(234,179,8,.28);--warn:#e8c45a;
  --red:#ef4444;--radius:18px;--shadow:0 18px 40px rgba(0,0,0,.35);
  --font:Inter,"SF Pro Text","Segoe UI",Roboto,system-ui,-apple-system,sans-serif;
  color-scheme:dark;
}
[data-theme=light]{
  --bg:#f4f6f5;--bg2:#eef2f0;--panel:#ffffff;--panel2:#f6f8f7;--line:#e2e8e4;--line2:#d5ddd8;
  --text:#0f1512;--muted:#5d6b64;--soft:#8a968f;
  --acc:#16a34a;--acc2:#15803d;--acc3:#22c55e;--accbg:rgba(22,163,74,.09);--accline:rgba(22,163,74,.32);
  --warnbg:#fff7e0;--warnline:#f3dc9c;--warn:#8a6400;--shadow:0 14px 34px rgba(16,40,28,.08);
  color-scheme:light;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--font);background:var(--bg);color:var(--text);font-size:15px;line-height:1.55;min-height:100vh;
  padding-bottom:calc(74px + env(safe-area-inset-bottom));-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
svg{display:block}
img{display:block;max-width:100%}
#app{max-width:1080px;margin:0 auto;padding:0 18px 30px;outline:0}

/* header */
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px max(18px,calc((100% - 1080px)/2 + 18px));background:color-mix(in srgb,var(--bg) 86%,transparent);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;font-weight:600;letter-spacing:.2px}
.brand .mark{width:30px;height:30px;color:var(--acc)}
.brand .mark svg{width:30px;height:30px}
.bt{font-size:16px}.bt b{font-weight:600;color:var(--acc)}
.tact{display:flex;gap:6px}
.ib{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;border:1px solid var(--line);background:var(--panel)}
.ib svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* bottom tabs */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;justify-content:center;gap:4px;
  padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--bg) 92%,transparent);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line)}
.tabs a{flex:1;max-width:150px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 4px;border-radius:14px;color:var(--soft);font-size:11.5px;font-weight:500}
.tabs svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tabs a.on{color:var(--acc);background:var(--accbg)}

/* common */
.h1{font-size:28px;line-height:1.15;font-weight:650;letter-spacing:-.4px}
.h2{font-size:20px;font-weight:620;letter-spacing:-.2px}
.muted{color:var(--muted)}
.sec{margin-top:30px}
.sech{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:14px}
.sech a{color:var(--acc);font-size:14px;font-weight:550;white-space:nowrap}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:46px;padding:0 20px;border-radius:14px;
  background:var(--acc);color:#04130a;font-weight:620;font-size:15px;transition:transform .15s,filter .15s}
.btn:hover{filter:brightness(1.07)}.btn:active{transform:scale(.98)}
.btn.ghost{background:var(--panel2);color:var(--text);border:1px solid var(--line2)}
.btn.full{width:100%}
.btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chip{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--line2);font-size:13.5px;color:var(--muted);white-space:nowrap;background:var(--panel)}
.chip.on{color:var(--acc);border-color:var(--accline);background:var(--accbg)}
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.chips::-webkit-scrollbar{display:none}
.bar{height:6px;border-radius:9px;background:var(--line);overflow:hidden}
.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--acc2),var(--acc3));border-radius:9px}
.tag{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}
.tag svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
.empty{padding:40px 20px;text-align:center;color:var(--muted)}
.back{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:14px;margin:18px 0 6px}
.back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.fade{animation:fade .25s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* home */
.hero{margin-top:20px;padding:22px;position:relative;overflow:hidden;
  background:radial-gradient(120% 140% at 100% 0%,rgba(34,197,94,.22),transparent 55%),linear-gradient(160deg,var(--panel2),var(--panel));}
.hero .kick{font-size:12px;letter-spacing:1.4px;text-transform:uppercase;color:var(--acc);font-weight:600}
.hero .h1{margin:8px 0 8px;max-width:560px}
.hero p{color:var(--muted);max-width:520px}
.hero .row{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.cont{display:flex;gap:14px;align-items:center;margin-top:18px;padding:14px;border-radius:14px;background:color-mix(in srgb,var(--bg) 55%,transparent);border:1px solid var(--line)}
.cont img{width:46px;height:62px;object-fit:cover;border-radius:8px}
.cont .t{font-weight:600;font-size:14.5px;line-height:1.3}
.cont .s{font-size:12.5px;color:var(--muted);margin:2px 0 8px}
.cont .grow{flex:1;min-width:0}
.search{display:flex;align-items:center;gap:10px;height:46px;padding:0 14px;border-radius:14px;background:var(--panel);border:1px solid var(--line);margin-top:18px}
.search svg{width:18px;height:18px;fill:none;stroke:var(--soft);stroke-width:2}
.search input{flex:1;background:none;border:0;outline:0;color:var(--text);font:inherit}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px 12px}
.tile{display:flex;flex-direction:column;gap:2px;transition:transform .18s}
.tile:hover{transform:translateY(-3px)}
.tpic{display:block;aspect-ratio:1;border-radius:20px;overflow:hidden;box-shadow:0 8px 20px rgba(16,60,35,.10);margin-bottom:8px}
.tpic img{width:100%;height:100%;object-fit:cover}
.tsvg{display:grid;place-items:center;width:100%;height:100%;background:linear-gradient(160deg,#e6f7ec,#cfeedd)}
[data-theme=dark] .tsvg,:root:not([data-theme=light]) .tsvg{background:linear-gradient(160deg,#16251c,#0f1a14)}
.tsvg svg{width:62%;height:62%}
.tile .nm{font-weight:620;font-size:15px;line-height:1.25}
.tile .sb{font-size:12px;color:var(--muted);line-height:1.3}
.clist{display:grid;gap:10px}
.crow{display:flex;gap:14px;padding:12px;align-items:center}
.crow img{width:64px;height:88px;object-fit:cover;border-radius:10px;flex:none;box-shadow:0 6px 16px rgba(0,0,0,.25)}
.crow .grow{flex:1;min-width:0}
.crow .t{font-weight:610;line-height:1.3}
.crow .s{font-size:13px;color:var(--muted);margin:3px 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.crow .meta{display:flex;gap:12px;flex-wrap:wrap}
.crow .pl{margin-top:8px;display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}
.crow .pl .bar{flex:1}
.badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:7px;font-size:11.5px;font-weight:600;background:var(--accbg);color:var(--acc)}
.hscroll{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;padding-bottom:6px;margin:0 -18px;padding-left:18px;padding-right:18px}
.hscroll::-webkit-scrollbar{display:none}
.bk{flex:none;width:138px}
.bk img{width:138px;height:190px;object-fit:cover;border-radius:12px;box-shadow:0 10px 22px rgba(0,0,0,.3)}
.bk .t{font-size:13.5px;font-weight:580;line-height:1.3;margin-top:8px}
.bk .s{font-size:12px;color:var(--muted)}

/* section page */
.shead{display:flex;gap:16px;align-items:center;margin:6px 0 20px}
.shead .art{width:84px;height:84px;flex:none}

/* course */
.chero{display:grid;grid-template-columns:200px 1fr;gap:24px;align-items:start;margin-top:8px}
.chero img{width:200px;border-radius:14px;box-shadow:var(--shadow)}
.chero .kick{font-size:12px;letter-spacing:1.2px;text-transform:uppercase;color:var(--acc);font-weight:600}
.chero .h1{margin:6px 0 4px}
.chero .sub{color:var(--muted);font-size:16px}
.chero p{margin-top:12px;color:var(--muted)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}
.stat{padding:12px 14px}
.stat b{display:block;font-size:20px;font-weight:650}
.stat span{font-size:12.5px;color:var(--muted)}
.prog{padding:16px;margin-top:14px}
.prog .row{display:flex;justify-content:space-between;align-items:center;font-size:14px;margin-bottom:10px}
.prog .row b{font-size:22px;color:var(--acc)}
.prog .two{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;font-size:13px;color:var(--muted)}
.prog .two div{display:flex;justify-content:space-between;padding:10px 12px;border-radius:12px;background:var(--panel2)}
.prog .two b{color:var(--text)}
.mod{margin-top:12px;overflow:hidden}
.modh{width:100%;display:flex;align-items:center;gap:12px;padding:14px 16px;text-align:left}
.modh .num{width:34px;height:34px;flex:none;border-radius:11px;display:grid;place-items:center;font-size:13px;font-weight:650;background:var(--accbg);color:var(--acc)}
.modh .grow{flex:1;min-width:0}
.modh .t{font-weight:610}
.modh .s{font-size:12.5px;color:var(--muted)}
.modh .chev{width:20px;height:20px;fill:none;stroke:var(--soft);stroke-width:2;transition:transform .2s}
.mod.open .chev{transform:rotate(180deg)}
.mod .body{display:none;border-top:1px solid var(--line);padding:6px}
.mod.open .body{display:block}
.les{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px}
.les:hover{background:var(--panel2)}
.les .th{width:52px;height:40px;flex:none;border-radius:9px;overflow:hidden;background:var(--panel2);border:1px solid var(--line)}
.les .th img{width:100%;height:100%;object-fit:cover;object-position:top}
.les .grow{flex:1;min-width:0}
.les .t{font-size:14px;font-weight:550;line-height:1.3}
.les .s{font-size:12px;color:var(--muted)}
.les .st{width:24px;height:24px;flex:none;border-radius:50%;border:1.5px solid var(--line2);display:grid;place-items:center}
.les .st svg{width:14px;height:14px;fill:none;stroke:#04130a;stroke-width:3}
.les.done .st{background:var(--acc);border-color:var(--acc)}
.les.cur{background:var(--accbg);outline:1px solid var(--accline)}
.testrow{display:flex;align-items:center;gap:12px;margin:6px;padding:12px;border-radius:12px;border:1px dashed var(--accline);background:var(--accbg)}
.testrow svg{width:22px;height:22px;fill:none;stroke:var(--acc);stroke-width:1.8;flex:none}
.testrow .grow{flex:1}
.testrow .t{font-weight:600;font-size:14px}
.testrow .s{font-size:12px;color:var(--muted)}

/* lesson */
.lbar{display:flex;align-items:center;gap:10px;margin:14px 0 4px;font-size:13px;color:var(--muted)}
.lbar a{display:inline-flex;align-items:center;gap:4px}
.lbar svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.ltitle{font-size:27px;line-height:1.2;font-weight:650;letter-spacing:-.3px;margin:6px 0 14px}
.plaque{padding:14px 16px;border-radius:14px;background:var(--warnbg);border:1px solid var(--warnline);color:var(--text);font-size:14.5px}
.plaque b{display:block;font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--warn);margin-bottom:4px}
.player{position:relative;margin-top:16px;aspect-ratio:16/9;border-radius:18px;overflow:hidden;border:1px solid var(--line);
  background:radial-gradient(90% 120% at 80% 10%,rgba(34,197,94,.25),transparent 60%),linear-gradient(150deg,#0f1713,#070908);display:grid;place-items:center;text-align:center;color:#e8f1ec}
.player .pbtn{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);margin:0 auto 12px;backdrop-filter:blur(6px)}
.player .pbtn svg{width:24px;height:24px;fill:#e8f1ec;margin-left:4px}
.player .pt{font-weight:600;font-size:15px}
.player .ps{font-size:12.5px;opacity:.7;margin-top:3px}
.player .pctl{position:absolute;left:14px;right:14px;bottom:12px;display:flex;align-items:center;gap:10px;font-size:11.5px;opacity:.7}
.player .pctl .bar{flex:1;height:4px;background:rgba(255,255,255,.2)}
.ltext{margin-top:22px;font-size:16.5px;line-height:1.72;max-width:720px}
.ltext p{margin:0 0 14px}
.ltext h4{font-size:12.5px;letter-spacing:1.1px;color:var(--acc);margin:22px 0 8px;font-weight:650}
.ltext .cap{font-size:13px;color:var(--muted);font-style:italic}
.pages{margin-top:22px}
.pages summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:14px 16px;font-weight:600;font-size:14.5px}
.pages summary::-webkit-details-marker{display:none}
.pages summary svg{width:20px;height:20px;fill:none;stroke:var(--acc);stroke-width:1.8}
.pages summary .s{font-weight:400;font-size:12.5px;color:var(--muted);margin-left:auto}
.pages .imgs{padding:0 12px 12px;display:grid;gap:12px}
.pages img,.reader img{width:100%;height:auto;border-radius:10px;background:#fff;box-shadow:0 4px 18px rgba(0,0,0,.08)}
.reader img{aspect-ratio:auto}
.ldone{margin-top:22px;display:flex;flex-direction:column;gap:10px;padding:18px}
.ldone .t{font-weight:620}
.ldone .s{font-size:13.5px;color:var(--muted)}
.lnav{position:sticky;bottom:calc(70px + env(safe-area-inset-bottom));margin-top:18px;display:flex;align-items:center;gap:8px;padding:8px;border-radius:16px;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow)}
.lnav a{width:42px;height:42px;flex:none;border-radius:12px;display:grid;place-items:center;background:var(--panel2)}
.lnav a.off{opacity:.3;pointer-events:none}
.lnav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2}
.lnav .mid{flex:1;min-width:0;text-align:center;font-size:13px;line-height:1.3;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* test */
.quiz{max-width:680px;margin:0 auto}
.qtop{display:flex;align-items:center;gap:12px;margin:16px 0}
.qtop .bar{flex:1}
.qtop span{font-size:13px;color:var(--muted);white-space:nowrap}
.qcard{padding:20px}
.qcard .q{font-size:18.5px;font-weight:600;line-height:1.4;margin-bottom:16px}
.opt{width:100%;text-align:left;display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:14px;border:1px solid var(--line2);background:var(--panel2);margin-bottom:10px;font-size:15px;line-height:1.4}
.opt .l{width:26px;height:26px;flex:none;border-radius:8px;display:grid;place-items:center;font-size:12.5px;font-weight:650;background:var(--panel);border:1px solid var(--line2)}
.opt.ok{border-color:var(--acc);background:var(--accbg)}
.opt.ok .l{background:var(--acc);color:#04130a;border-color:var(--acc)}
.opt.bad{border-color:var(--red);background:rgba(239,68,68,.08)}
.opt.bad .l{background:var(--red);color:#fff;border-color:var(--red)}
.opt:disabled{cursor:default}
.expl{margin-top:6px;padding:14px;border-radius:14px;background:var(--panel2);font-size:14.5px;color:var(--muted)}
.expl b{color:var(--text);display:block;margin-bottom:4px}
.result{padding:28px 22px;text-align:center}
.ring{width:130px;height:130px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;font-size:30px;font-weight:700}

/* library */
.lgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:18px 14px;margin-top:6px}
.lgrid .bk{width:auto}
.lgrid .bk img{width:100%;height:auto;aspect-ratio:3/4.1}
.bhero{display:grid;grid-template-columns:220px 1fr;gap:24px;margin-top:8px}
.bhero img{width:220px;border-radius:14px;box-shadow:var(--shadow)}
.ov{margin-top:16px;padding:16px}
.ov .t{font-weight:620;margin-bottom:6px}
.ov p{color:var(--muted);font-size:14.5px}
.file{display:flex;align-items:center;gap:12px;margin-top:14px;padding:12px 14px;border-radius:14px;background:var(--panel2);border:1px solid var(--line)}
.file .ic{width:36px;height:44px;border-radius:7px;background:var(--accbg);color:var(--acc);display:grid;place-items:center;font-size:10.5px;font-weight:700}
.file .grow{flex:1;min-width:0;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file .s{font-size:12px;color:var(--muted)}
.bbtns{display:grid;gap:10px;margin-top:14px}
.reader{max-width:820px;margin:0 auto;display:grid;gap:14px;padding-top:6px}
.rbar{position:sticky;top:63px;z-index:5;display:flex;align-items:center;gap:10px;padding:10px 0;background:var(--bg)}
.rbar .grow{flex:1;font-size:14px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.rbar .pg{font-size:12.5px;color:var(--muted)}

/* news */
.nhero{margin-top:20px}
.nhero .kick{font-size:12px;letter-spacing:1.4px;text-transform:uppercase;color:var(--acc);font-weight:600}
.nlist{display:grid;gap:10px;margin-top:14px}
.ni{display:flex;gap:14px;padding:12px}
.ni .img{width:104px;height:78px;flex:none;border-radius:12px;background:var(--panel2) center/cover no-repeat;border:1px solid var(--line)}
.ni .grow{flex:1;min-width:0}
.ni .c{font-size:11.5px;font-weight:650;letter-spacing:.8px;text-transform:uppercase;color:var(--acc)}
.ni .t{font-weight:600;line-height:1.35;margin:3px 0 4px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ni .s{font-size:12px;color:var(--muted)}
.ntop{padding:0;overflow:hidden}
.ntop .img{height:200px;background:var(--panel2) center/cover no-repeat}
.ntop .in{padding:16px}
.ntop .t{font-size:20px;font-weight:640;line-height:1.3;margin:4px 0 6px}
.ntop p{color:var(--muted);font-size:14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.sheet{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center}
.sheet .in{width:100%;max-width:640px;max-height:86vh;overflow:auto;background:var(--panel);border-radius:22px 22px 0 0;padding:20px 20px calc(20px + env(safe-area-inset-bottom));animation:up .25s ease}
@keyframes up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
.sheet .grab{width:44px;height:5px;border-radius:9px;background:var(--line2);margin:0 auto 16px}
.sheet .t{font-size:20px;font-weight:640;line-height:1.3;margin:6px 0 10px}
.sheet p{color:var(--muted);font-size:15px}
.sheet .img{height:180px;border-radius:14px;background:var(--panel2) center/cover no-repeat;margin-bottom:12px}

/* community */
.comm{margin-top:20px}
.comm .h1 span{color:var(--acc)}
.ctabs{display:flex;gap:6px;margin:18px 0 10px;overflow-x:auto;scrollbar-width:none}
.ctabs span{padding:8px 14px;border-radius:11px;font-size:13.5px;color:var(--muted);white-space:nowrap}
.ctabs span.on{background:var(--accbg);color:var(--acc)}
.cempty{padding:34px 22px;text-align:center;margin-top:12px}
.cempty .ic{width:64px;height:64px;margin:0 auto 14px;border-radius:18px;display:grid;place-items:center;background:var(--accbg)}
.cempty .ic svg{width:30px;height:30px;fill:none;stroke:var(--acc);stroke-width:1.7}
.cempty .k{font-size:11.5px;letter-spacing:1.4px;color:var(--acc);font-weight:650;text-transform:uppercase}
.cempty .t{font-size:22px;font-weight:650;margin:8px 0}
.cempty p{color:var(--muted);max-width:420px;margin:0 auto 18px}
.rules{display:grid;gap:10px;margin-top:14px}
.rules .card{display:flex;gap:12px;padding:14px}
.rules svg{width:20px;height:20px;flex:none;fill:none;stroke:var(--acc);stroke-width:1.8;margin-top:2px}
.rules .t{font-weight:600;font-size:14.5px}
.rules .s{font-size:13px;color:var(--muted)}
.foot{margin-top:40px;padding-top:18px;border-top:1px solid var(--line);font-size:12px;color:var(--soft)}

.toast{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:60;padding:11px 16px;border-radius:12px;background:var(--panel);border:1px solid var(--accline);box-shadow:var(--shadow);font-size:14px}

@media (max-width:720px){
  .h1{font-size:24px}
  .tile .sb{display:none}
  .chero,.bhero{grid-template-columns:1fr;gap:16px}
  .chero img,.bhero img{width:150px}
  .ltitle{font-size:23px}
  .ltext{font-size:16px}
  .stats{gap:8px}.stat{padding:10px}
  .stat b{font-size:18px}
  .lgrid{grid-template-columns:repeat(2,1fr)}
}

.lwrap{max-width:780px;margin:0 auto}
@media (min-width:900px){.hero{padding:30px}}

.topnav{display:none}
@media (min-width:960px){
  body{font-size:16px;padding-bottom:0}
  .tabs{display:none}
  .top{padding:14px max(32px,calc((100% - 1240px)/2 + 32px))}
  .topnav{display:flex;gap:4px;margin-left:28px;flex:1}
  .topnav a{padding:9px 16px;border-radius:12px;font-size:15px;font-weight:550;color:var(--muted)}
  .topnav a:hover{color:var(--text);background:var(--panel)}
  .topnav a.on{color:var(--acc);background:var(--accbg)}
  .brand .mark,.brand .mark svg{width:34px;height:34px}.bt{font-size:18px}
  #app{max-width:1240px;padding:0 32px 40px}
  .h1{font-size:36px}.h2{font-size:24px}
  .sec{margin-top:44px}
  .hero{padding:44px 48px;margin-top:28px}
  .hero .h1{font-size:46px;max-width:720px}
  .hero p{font-size:18px;max-width:640px}
  .hero .btn{height:52px;padding:0 26px;font-size:16px}
  .search{height:54px;font-size:16px;margin-top:24px}
  .tiles{grid-template-columns:repeat(4,1fr);gap:26px 22px}
  .tile .nm{font-size:18px}.tile .sb{display:block;font-size:13.5px}
  .tpic{border-radius:26px}
  .clist{grid-template-columns:1fr 1fr;gap:16px}
  .crow{padding:18px;gap:18px}
  .crow img{width:96px;height:132px}
  .crow .t{font-size:17px}.crow .s{font-size:14px}
  .hscroll{margin:0;padding-left:0;padding-right:0;gap:18px}
  .bk,.bk img{width:170px}.bk img{height:234px}
  .bk .t{font-size:15px}
  .shead .art{width:120px;height:120px}
  .chero{grid-template-columns:300px 1fr;gap:44px;margin-top:14px}
  .chero img{width:300px}
  .chero .sub{font-size:19px}.chero p{font-size:17px}
  .stat b{font-size:28px}.stat{padding:16px 18px}
  .prog{padding:20px}
  .modh{padding:18px 20px}.modh .t{font-size:17px}
  .les{padding:12px 14px}.les .t{font-size:15.5px}
  .les .th{width:64px;height:48px}
  .lwrap{max-width:860px}
  .ltitle{font-size:38px}
  .plaque{font-size:16.5px;padding:18px 22px}
  .ltext{font-size:18.5px;max-width:none}
  .lnav{bottom:16px}
  .quiz{max-width:760px}.qcard{padding:28px}.qcard .q{font-size:22px}.opt{font-size:16.5px;padding:16px}
  .lgrid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:28px 22px}
  .bhero{grid-template-columns:320px 1fr;gap:44px}
  .bhero img{width:320px}
  .bbtns{grid-template-columns:repeat(3,auto);justify-content:start}
  .bbtns .btn.full{width:auto}
  .reader{max-width:900px}
  .rbar{top:71px}
  .nlist{grid-template-columns:1fr 1fr;gap:16px}
  .ntop{grid-column:1/-1}.ntop:has(.img){display:grid;grid-template-columns:1.3fr 1fr}
  .ntop .img{height:auto;min-height:300px}
  .ntop .in{padding:28px}.ntop .t{font-size:26px}
  .ni .img{width:150px;height:104px}
  .ni .t{font-size:16.5px}
  .comm{max-width:900px}
  .rules{grid-template-columns:repeat(3,1fr)}
  .toast{bottom:28px}
  .sheet{align-items:center}.sheet .in{border-radius:22px}
}

.brand .logo{height:30px;width:auto}
.lg-d{display:none}
[data-theme=dark] .lg-l{display:none}[data-theme=dark] .lg-d{display:block}
@media (min-width:960px){.brand .logo{height:36px}}
@media (max-width:370px){.brand .logo{height:26px}}

/* ===== community, chat, guides, account ===== */
.ib.acc{padding:0;overflow:hidden}
.av{display:inline-grid;place-items:center;flex:none;border-radius:50%;color:#fff;font-weight:650;font-size:15px;overflow:hidden;background:var(--acc)}
.av img{width:100%;height:100%;object-fit:cover}
.founder{display:inline-flex;align-items:center;gap:3px;margin-left:6px;padding:2px 7px;border-radius:7px;font-size:11px;font-weight:650;background:var(--accbg);color:var(--acc);vertical-align:middle}
.founder svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2}
.sheet .sx{position:absolute;right:16px;top:14px;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--panel2)}
.sheet .in{position:relative}
.sheet svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sheet-wide .in{max-width:680px}
.sheet-img .in{background:transparent;padding:10px;max-width:1000px}
.sheet-img .grab{display:none}
.zoom{width:100%;border-radius:14px;max-height:84vh;object-fit:contain}
.form{display:grid;gap:12px}
.form label{display:grid;gap:6px;font-size:13.5px;font-weight:550;color:var(--muted)}
.form input,.form textarea,.form select,.sheet textarea{width:100%;font:inherit;font-size:15.5px;color:var(--text);background:var(--panel2);border:1px solid var(--line2);border-radius:12px;padding:12px 14px;outline:0}
.form input:focus,.form textarea:focus,.sheet textarea:focus{border-color:var(--accline)}
.lbl{font-size:13.5px;font-weight:550;color:var(--muted)}
.ferr{padding:10px 12px;border-radius:10px;background:rgba(239,68,68,.1);color:#dc2626;font-size:13.5px}
.swap{margin-top:14px;text-align:center;font-size:14px}.swap a{color:var(--acc);font-weight:600}
.gbtn{display:flex;justify-content:center;min-height:44px;margin:4px 0}
.or{display:flex;align-items:center;gap:10px;color:var(--soft);font-size:12.5px;margin:12px 0}
.or:before,.or:after{content:"";flex:1;height:1px;background:var(--line)}
.accrow{display:flex;gap:14px;align-items:center;margin:8px 0 16px}
.menu{display:grid;gap:4px}
.menu a,.menu button{display:flex;align-items:center;gap:12px;width:100%;padding:13px 12px;border-radius:12px;font-size:15px;text-align:left}
.menu a:hover,.menu button:hover{background:var(--panel2)}
.menu .danger{color:#dc2626}
.agree{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;margin:14px 0;font-size:14.5px;color:var(--text)!important;font-weight:500!important}
.agree input{width:20px!important;height:20px;accent-color:var(--acc)}
.rlist{display:grid;gap:10px;padding-left:20px;margin:6px 0}
.rlist li{padding-left:4px}.rlist b{display:block;font-size:14.5px}.rlist span{font-size:13.5px;color:var(--muted)}
.allowed{display:grid;gap:10px;margin-top:16px}
.allowed div{padding:12px 14px;border-radius:12px;background:var(--panel2)}
.allowed b{display:block;margin-bottom:3px}.allowed span{font-size:13.5px;color:var(--muted)}
.allowed div:first-child b{color:var(--acc)}.allowed div:last-child b{color:#dc2626}

.commw{max-width:760px;margin:0 auto}
.comm-h{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-top:20px;flex-wrap:wrap}
.comm-h .kick,.ghead .kick,.kick{font-size:12px;letter-spacing:1.3px;text-transform:uppercase;color:var(--acc);font-weight:650}
.comm-h .h1 span,.ghead .h1 span{color:var(--acc)}
.comm-h p{margin-top:4px}
.comm-h .btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4}
.seg{display:flex;gap:4px;padding:4px;border-radius:14px;background:var(--panel);border:1px solid var(--line);margin:18px 0 6px}
.seg a{flex:1;text-align:center;padding:9px 6px;border-radius:10px;font-size:14px;font-weight:600;color:var(--muted)}
.seg a.on{background:var(--acc);color:#04130a}
.ctabs a{padding:8px 14px;border-radius:11px;font-size:14px;color:var(--muted);white-space:nowrap;font-weight:550}
.ctabs a.on{background:var(--accbg);color:var(--acc)}
.feed{display:grid;gap:12px;margin-top:12px}
.post{padding:14px 16px}
.ph{display:flex;align-items:center;gap:10px}
.pw{flex:1;min-width:0}
.pn{font-weight:640;font-size:15px}
.pm{font-size:12.5px;color:var(--muted)}
.ptopic{color:var(--acc);font-weight:600}
.fbtn{height:32px;padding:0 14px;border-radius:999px;border:1px solid var(--accline);color:var(--acc);font-size:13px;font-weight:620}
.fbtn.on{background:var(--panel2);border-color:var(--line2);color:var(--muted)}
.fbtn.big{height:40px;padding:0 20px;font-size:14.5px}
.more{width:32px;height:32px;border-radius:10px;font-size:20px;line-height:1;color:var(--soft)}
.ptext{margin:10px 0 4px;font-size:15.5px;line-height:1.6;word-wrap:break-word}
.ptext a,.mt a,.cb a{color:var(--acc);word-break:break-all}
.ptext.clamp{display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden}
.readmore{font-size:14px;color:var(--acc);font-weight:600}
.pimgs{display:grid;gap:4px;margin-top:10px;border-radius:14px;overflow:hidden}
.pimgs img{width:100%;height:100%;object-fit:cover;cursor:zoom-in;background:var(--panel2)}
.pimgs.n1 img{max-height:520px;object-fit:contain;background:#000}
.pimgs.n2{grid-template-columns:1fr 1fr}.pimgs.n2 img{aspect-ratio:1}
.pimgs.n3{grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr}.pimgs.n3 img:first-child{grid-row:span 2}.pimgs.n3 img{aspect-ratio:auto;min-height:120px}
.pimgs.n4{grid-template-columns:1fr 1fr}.pimgs.n4 img{aspect-ratio:1.3}
.pa{display:flex;align-items:center;gap:4px;margin-top:10px;padding-top:8px;border-top:1px solid var(--line)}
.act{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 10px;border-radius:10px;color:var(--muted);font-size:13.5px}
.act:not(.static):hover{background:var(--panel2)}
.act svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.act.on{color:var(--acc)}
.act[data-like].on{color:#e11d48}.act[data-like].on svg{fill:#e11d48;stroke:#e11d48}
.act[data-save].on svg{fill:currentColor}
.pa .grow{flex:1}
.cempty .k{font-size:11.5px;letter-spacing:1.4px;color:var(--acc);font-weight:650;text-transform:uppercase}
.cempty .ic svg{width:30px;height:30px;fill:none;stroke:var(--acc);stroke-width:1.7}
.tsel{margin:4px 0 12px;flex-wrap:wrap}
.tsel .chip{cursor:pointer}
.sheet textarea#ct{min-height:150px;resize:vertical;line-height:1.55}
.cprev{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.cimg{position:relative;width:84px;height:84px;border-radius:12px;overflow:hidden}
.cimg img{width:100%;height:100%;object-fit:cover}
.cimg button{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center}
.cimg button svg{width:14px;height:14px}
.cbar{display:flex;align-items:center;gap:10px;margin-top:12px}
.cbar .grow{flex:1}
.cbar label.ib{cursor:pointer}
.cnote{font-size:12.5px;color:var(--soft);margin-top:10px}.cnote a{color:var(--acc)}
.comms{margin-top:12px;padding:16px}
.cmt{display:flex;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.cb{flex:1;min-width:0;font-size:14.5px;line-height:1.5}
.cbh{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13.5px;margin-bottom:2px}
.cbh a{font-weight:640}.cbh .muted{font-size:12px}
.cdel,.mdel{margin-left:auto;color:var(--soft);display:inline-grid;place-items:center}
.cdel svg,.mdel svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
.cform{display:flex;align-items:flex-end;gap:8px;margin-top:12px}
.cform textarea{flex:1;font:inherit;font-size:15px;color:var(--text);background:var(--panel2);border:1px solid var(--line2);border-radius:14px;padding:11px 14px;resize:none;outline:0;max-height:140px}
.ib.send{background:var(--acc);border-color:var(--acc);color:#04130a;width:44px;height:44px;flex:none}
.ib.send svg{stroke:#04130a}
.prof{display:flex;gap:16px;align-items:center;padding:18px;margin:6px 0 12px;flex-wrap:wrap}
.prof .grow{flex:1;min-width:160px}
.pst{display:flex;gap:16px;margin-top:6px;font-size:14px;color:var(--muted)}.pst b{color:var(--text)}

/* chat */
.chat{margin-top:8px;display:flex;flex-direction:column;height:calc(100vh - 330px);min-height:420px;overflow:hidden}
.chath{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line);font-size:14.5px}
.chath .muted{margin-left:auto;font-size:12.5px}
.dot{width:8px;height:8px;border-radius:50%;background:var(--acc);box-shadow:0 0 0 4px var(--accbg)}
.msgs{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
.msg{display:flex;gap:8px;align-items:flex-end;max-width:86%;cursor:pointer}
.msg.me{align-self:flex-end;flex-direction:row-reverse}
.bub{padding:8px 12px 6px;border-radius:16px 16px 16px 6px;background:var(--panel2);border:1px solid var(--line);min-width:90px}
.msg.me .bub{background:var(--accbg);border-color:var(--accline);border-radius:16px 16px 6px 16px}
.msg.fd .bub{border-color:var(--acc);box-shadow:0 0 0 1px var(--accline)}
.mn{font-weight:650;font-size:13px;color:var(--acc);padding:0}
.mt{font-size:15px;line-height:1.45;word-wrap:break-word;margin-top:1px}
.mt .at{color:var(--acc);font-weight:600}
.mtime{display:flex;align-items:center;justify-content:flex-end;gap:6px;font-size:11px;color:var(--soft);margin-top:2px}
.rq{margin:4px 0 4px;padding:5px 8px;border-left:3px solid var(--acc);border-radius:6px;background:color-mix(in srgb,var(--acc) 8%,transparent);font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}
.rq b{color:var(--acc);margin-right:6px}
.rbarq{display:flex;align-items:center;gap:10px;padding:8px 14px;border-top:1px solid var(--line);background:var(--panel2);font-size:13px}
.rbarq>svg{width:18px;height:18px;fill:none;stroke:var(--acc);stroke-width:2;flex:none}
.rbarq div{flex:1;min-width:0}.rbarq b{display:block;color:var(--acc)}.rbarq span{display:block;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rbarq button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
.chatf{margin:0;padding:10px;border-top:1px solid var(--line)}
.chat .ferr{margin:0 10px 10px}
.chat .empty{margin:auto}

/* guides */
.ghead{margin-top:20px}
.ghead .h1{margin:6px 0 4px}
.gpick{display:grid;grid-template-columns:1fr;overflow:hidden;margin-top:18px;padding:0}
.gimg{background:var(--panel2) center/cover no-repeat}
.gpick .gimg{aspect-ratio:16/10}
.gin{padding:16px}
.gpick .h2{margin:6px 0 6px;line-height:1.25}
.gpick .btn{margin-top:14px}
.gmeta{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);margin-top:10px}
.gmeta svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}
.glist{display:grid;gap:12px;margin-top:14px}
.gcard{display:grid;grid-template-columns:120px 1fr;overflow:hidden;padding:0}
.gcard .gimg{min-height:100%;aspect-ratio:1}
.gcard .gin{padding:12px 14px}
.gcard .t,.gmini .t{font-weight:640;line-height:1.3;margin:4px 0}
.gcard p{font-size:13.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hg{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gmini{overflow:hidden;padding:0}
.gmini .gimg{aspect-ratio:1.5}
.gmini .gin{padding:10px 12px}
.gmini .t{font-size:14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.glead{font-size:18px;color:var(--muted);margin-top:-4px}
.gby{display:flex;align-items:center;gap:12px;margin:18px 0}
.gby .muted{font-size:13px}.gby .ib{margin-left:auto}
.gcover{aspect-ratio:16/9;border-radius:18px;background:var(--panel2) center/cover no-repeat}
.keyt{margin-top:18px;padding:18px}
.keyt .t{font-weight:650;margin-bottom:10px}
.kt{display:flex;gap:10px;align-items:flex-start;padding:5px 0;font-size:15px}
.kt svg{width:20px;height:20px;flex:none;fill:none;stroke:var(--acc);stroke-width:2.4;margin-top:1px}
.gbody h2{font-size:22px;line-height:1.3;margin:28px 0 10px;letter-spacing:-.2px}
.gbody blockquote{margin:18px 0;padding:14px 18px;border-left:4px solid var(--acc);border-radius:10px;background:var(--accbg);font-weight:550}
.gbody ul{padding-left:22px;margin:0 0 14px}.gbody li{margin:6px 0}
.gcta{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:26px;padding:18px;background:linear-gradient(120deg,var(--accbg),transparent)}
.gcta b{display:block}.gcta span{font-size:13.5px;color:var(--muted)}
.gcta svg{width:22px;height:22px;fill:none;stroke:var(--acc);stroke-width:2}
.covs{display:flex;gap:8px;flex-wrap:wrap}
.cov{width:64px;height:64px;border-radius:12px;overflow:hidden;border:2px solid transparent;display:grid;place-items:center;background:var(--panel2) center/cover;cursor:pointer}
.cov img{width:100%;height:100%;object-fit:cover}
.cov.on{border-color:var(--acc)}
.cov svg{width:22px;height:22px;fill:none;stroke:var(--muted);stroke-width:1.8}
.arow{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.arep{padding:14px;margin-bottom:12px}
.arep .post{border:0;padding:10px 0;box-shadow:none}

@media (min-width:720px){
  .gpick{grid-template-columns:1.1fr 1fr}.gpick .gimg{aspect-ratio:auto;min-height:320px}.gpick .gin{padding:28px;display:flex;flex-direction:column;justify-content:center}
  .gpick .h2{font-size:28px}
  .glist{grid-template-columns:1fr 1fr}
  .gcard{grid-template-columns:1fr;}.gcard .gimg{aspect-ratio:1.7}
  .hg{grid-template-columns:repeat(4,1fr)}
}
@media (min-width:960px){
  .commw{max-width:820px}
  .chat{height:calc(100vh - 300px)}
  .glist{grid-template-columns:repeat(3,1fr)}
  .post{padding:18px 20px}.ptext{font-size:16px}
}
@media (max-width:420px){
  .tabs a{font-size:10.5px;padding:7px 2px}
  .comm-h .btn{width:100%}
}

.gcover{max-height:380px}

/* ===== trainer ===== */
.pos{color:#16a34a}.neg{color:#ef4444}
[data-theme=dark] .pos{color:#4ade80}[data-theme=dark] .neg{color:#f87171}
.trbanner{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-top:18px;padding:20px;background:linear-gradient(120deg,var(--accbg),var(--panel) 70%)}
.trbanner .h2{margin:6px 0 4px}.trbanner p{font-size:14px}.trbanner .btn{margin-top:12px;height:42px}
.trbi{width:150px;flex:none}.trbi svg{width:100%}
.trw{max-width:1180px;margin:0 auto}
.trh{margin-top:20px}.trh .h1{margin:6px 0 4px}
.trtabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:16px 0 12px;padding:5px;border-radius:16px;background:var(--panel);border:1px solid var(--line)}
.trtabs a{display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 4px;border-radius:12px;font-size:12px;font-weight:600;color:var(--muted);text-align:center;line-height:1.2}
.trtabs svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.trtabs a.on{background:var(--acc);color:#04130a}
.trbar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}
.selw{display:flex;align-items:center;gap:6px;font-weight:650}
.selw select{font:inherit;font-size:16px;font-weight:700;color:var(--text);background:var(--panel);border:1px solid var(--line2);border-radius:12px;padding:8px 12px;outline:0}
.seg2{display:inline-flex;gap:2px;padding:3px;border-radius:12px;background:var(--panel);border:1px solid var(--line)}
.seg2 button{padding:7px 12px;border-radius:9px;font-size:13px;font-weight:600;color:var(--muted)}
.seg2 button.on{background:var(--accbg);color:var(--acc)}
.seg2.full{display:flex;width:100%;margin:10px 0}.seg2.full button{flex:1}
.trgrid{display:grid;gap:12px}
.trchart{padding:12px;overflow:hidden}
.trch{display:flex;align-items:center;gap:10px;font-size:14px;margin-bottom:8px;flex-wrap:wrap}
.trch b{font-size:16px}
.lg{margin-left:auto;font-size:11.5px;color:var(--muted);display:flex;align-items:center;gap:4px}
.lg i{display:inline-block;width:12px;height:3px;border-radius:2px;margin-left:6px}
.cv{width:100%;height:300px;display:block}.cv.tall{height:340px}
.cvs{width:100%;height:70px;display:block}
.subp{border-top:1px solid var(--line);margin-top:8px;padding-top:6px}
.subl{font-size:12px;color:var(--muted);margin:6px 0 2px}.subl b{color:var(--text)}
.trside{display:grid;gap:12px;align-content:start}
.score{padding:16px}.sc{display:flex;gap:16px;align-items:center;margin:10px 0}
.ring{--v:50;width:78px;height:78px;border-radius:50%;flex:none;display:grid;place-items:center;background:conic-gradient(var(--acc) calc(var(--v)*1%),var(--line) 0)}
.ring span{width:62px;height:62px;border-radius:50%;background:var(--panel);display:grid;place-items:center;font-size:22px;font-weight:700}
.ring.big{width:108px;height:108px}.ring.big span{width:88px;height:88px;font-size:30px}
.down .ring{background:conic-gradient(#ef4444 calc(var(--v)*1%),var(--line) 0)}
.flat .ring{background:conic-gradient(#a3a3a3 calc(var(--v)*1%),var(--line) 0)}
.warn{margin-top:6px;font-size:12.5px;color:#b45309;background:rgba(245,158,11,.12);padding:4px 8px;border-radius:8px;display:inline-block}
.why{display:grid;gap:6px;margin-top:6px}
.why .w{display:flex;gap:8px;align-items:flex-start;font-size:13.5px;line-height:1.4}
.why .w i{width:8px;height:8px;border-radius:50%;margin-top:6px;flex:none;background:#a3a3a3}
.why .up i{background:#16a34a}.why .down i{background:#ef4444}
.ind{padding:14px 16px}
.ir{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.ir b{text-align:right}.ir em{grid-column:1/-1;font-style:normal;font-size:12px;color:var(--muted)}
.learn{display:flex;align-items:center;gap:6px;margin-top:12px;color:var(--acc);font-weight:600;font-size:14px}
.learn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.note{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;margin-top:12px;font-size:13px;color:var(--muted)}
.note svg{width:20px;height:20px;flex:none;fill:none;stroke:var(--acc);stroke-width:1.8}
.aigrid{display:grid;gap:12px}
.aihero{padding:20px}.aih{display:flex;gap:18px;align-items:center;margin:12px 0}
.aih .h1{margin-bottom:2px}
.pill{display:inline-block;margin-top:8px;padding:5px 12px;border-radius:999px;font-size:13px;font-weight:650}
.pill.ok{background:var(--accbg);color:var(--acc)}.pill.wait{background:rgba(245,158,11,.14);color:#b45309}
.story p{margin:0 0 10px;line-height:1.6;font-size:15.5px}
.mtf,.plan{padding:16px}
.tfr{display:grid;grid-template-columns:40px 1fr 70px;gap:10px;align-items:center;padding:8px 0;font-size:14px}
.tfr span{text-align:right;font-weight:600;font-size:13px}
.pr{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.plan .btn{margin-top:14px}
.acc{padding:14px 16px;margin-bottom:12px}
.accg{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.accg div{display:flex;flex-direction:column}.accg span{font-size:12px;color:var(--muted)}.accg b{font-size:18px}
.accr{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:12.5px}
.accr a{color:var(--acc)}.lnk{color:var(--muted);font-size:12.5px;text-decoration:underline}
.ticket{padding:14px}
.sides{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.sides button{height:42px;border-radius:12px;font-weight:650;background:var(--panel2);border:1px solid var(--line2);color:var(--muted)}
.sides .on.long{background:#16a34a;border-color:#16a34a;color:#fff}.sides .on.short{background:#ef4444;border-color:#ef4444;color:#fff}
.fl{display:grid;gap:5px;font-size:12.5px;color:var(--muted);font-weight:550;margin-top:10px}
.fl input{font:inherit;font-size:15.5px;color:var(--text);background:var(--panel2);border:1px solid var(--line2);border-radius:11px;padding:10px 12px;outline:0;width:100%}
.fl input[type=range]{padding:0;accent-color:var(--acc);height:28px}
.fl b{color:var(--text)}
.qp{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:6px}
.qp button{height:30px;border-radius:9px;background:var(--panel2);border:1px solid var(--line);font-size:12.5px;color:var(--muted)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.risk{margin:12px 0;font-size:13px;display:grid;gap:5px}
.risk div{display:flex;justify-content:space-between}.risk span{color:var(--muted)}
.risk .bad{color:#dc2626;font-size:12.5px;margin:2px 0}.risk .hint{color:var(--muted);font-size:12.5px}
.btn.shortb{background:#ef4444;color:#fff}
.btn.sm{height:32px;padding:0 12px;font-size:13px}
.ptabs{display:flex;gap:4px;border-bottom:1px solid var(--line);padding:6px 8px 0;overflow-x:auto}
.ptabs button,.ptabs a{padding:10px 12px;font-size:14px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}
.ptabs .on{color:var(--acc);border-color:var(--acc)}
.ptabs.big{border:0;padding:0;margin:12px 0}
#plist{padding:4px 12px 10px}
.prow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}
.prow .s{font-size:12px;margin-top:2px}
.pr2{display:flex;align-items:center;gap:10px}.pr2 b{text-align:right}.pr2 small{display:block;font-size:11.5px;font-weight:500}
.tag{font-size:11px;font-weight:700;padding:2px 6px;border-radius:6px;text-transform:uppercase}
.tag.long{background:rgba(22,163,74,.12);color:#16a34a}.tag.short{background:rgba(239,68,68,.12);color:#ef4444}
.lrow{display:grid;grid-template-columns:26px 1fr auto auto;gap:10px;align-items:center;padding:11px 4px;border-bottom:1px solid var(--line);font-size:14px}
.lrow em{font-style:normal;color:var(--muted);font-size:12.5px}
.pwal{padding:16px}
.pwi{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.pgrid{display:grid;gap:12px}
.pmk{padding:16px}
.pmt{display:flex;justify-content:space-between;font-size:12.5px}
.coin{font-weight:700;color:var(--acc)}
.pq{font-size:17px;font-weight:640;line-height:1.35;margin:8px 0 12px}
.pbar{height:8px;border-radius:9px;background:rgba(239,68,68,.25);overflow:hidden}
.pbar i{display:block;height:100%;background:#16a34a;border-radius:9px}
.pod{display:flex;justify-content:space-between;font-size:13px;font-weight:600;margin:6px 0 10px}
.pod span:first-child{color:#16a34a}.pod span:last-child{color:#ef4444}
.pbtn{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pbtn button{height:42px;border-radius:12px;font-weight:650;font-size:14px}
.pbtn .yes{background:rgba(22,163,74,.12);color:#15803d;border:1px solid rgba(22,163,74,.3)}
.pbtn .no{background:rgba(239,68,68,.1);color:#dc2626;border:1px solid rgba(239,68,68,.28)}
.pmeta{font-size:12px;margin-top:10px}
.mine{margin-top:8px;font-size:12.5px;padding:7px 10px;border-radius:9px;background:var(--accbg);color:var(--acc);font-weight:600}
@media (min-width:720px){
  .accg{grid-template-columns:repeat(5,1fr)}
  .pgrid{grid-template-columns:1fr 1fr}
  .aigrid{grid-template-columns:1.4fr 1fr}.aigrid .aihero{grid-row:span 2}
}
@media (min-width:960px){
  .trgrid{grid-template-columns:1fr 360px}
  .cv{height:420px}.cv.tall{height:460px}
  .trtabs{grid-template-columns:repeat(4,auto);justify-content:start;display:inline-grid}
  .trtabs a{flex-direction:row;padding:10px 16px;font-size:14px}
  .pgrid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:560px){.trbi{display:none}}
.gcard{grid-template-columns:96px 1fr;align-items:start}
.gcard .gimg{width:96px;height:96px;min-height:0;aspect-ratio:auto;margin:12px 0 12px 12px;border-radius:12px}
.gcard .gin{min-width:0}
@media (min-width:720px){.gcard{grid-template-columns:1fr}.gcard .gimg{width:auto;height:auto;aspect-ratio:1.7;margin:0;border-radius:0}}
.cvlive{position:absolute;right:66px;top:44px;padding:6px 10px;border-radius:9px;background:var(--acc);color:#04130a;font-size:12px;font-weight:650;box-shadow:var(--shadow)}
.cvhint{font-size:12px;text-align:center;margin:8px 0 4px}
.r5grid{display:grid;gap:12px}
.r5{padding:14px}
.r5h{display:flex;align-items:baseline;gap:10px}.r5h .coin{font-size:18px}.r5p{font-weight:650;font-size:16px}.r5t{margin-left:auto;font-size:13px;font-variant-numeric:tabular-nums;color:var(--muted)}
.r5c{position:relative;margin:8px -4px}.cv5{width:100%;height:170px;display:block}
.r5row{display:flex;justify-content:space-between;font-size:13.5px;padding:3px 0}.r5row span{color:var(--muted)}
.r5s .pbar{margin-top:8px}
.locked{padding:11px;border-radius:12px;background:var(--panel2);text-align:center;font-size:13.5px;color:var(--muted)}
.r5past{display:flex;align-items:center;gap:4px;margin-top:10px;flex-wrap:wrap}.r5past .s{margin-right:6px;font-size:12px}
.r5past i{width:14px;height:14px;border-radius:4px;display:inline-block}.r5past i.u{background:#16a34a}.r5past i.d{background:#ef4444}
.pmc{margin:0 -4px 6px}.cvm{width:100%;height:110px;display:block}
.muted.s{font-size:12px}
@media (min-width:720px){.r5grid{grid-template-columns:repeat(3,1fr)}}
.ctf{display:flex;gap:6px;margin:8px 0 4px}
.ctf button{border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:8px;padding:4px 10px;font:600 12px/1.2 inherit;cursor:pointer}
.ctf button.on{background:var(--accbg);color:var(--acc2);border-color:transparent}
