:root{--bg:#f5f6f2;--surface:#fff;--ink:#172d27;--muted:#78817d;--line:#e4e9e2;--green:#246c50;--deep:#153c2c;--lime:#d8f298;--soft:#eef5e8;--gold:#d1b16d;--red:#b9433c;--radius:20px;--shadow:0 12px 36px rgba(30,51,40,.04)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans CJK SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.65}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #82bb60;outline-offset:3px}a{color:var(--green);text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.35}h2{font-size:20px;letter-spacing:-.4px}h3{font-size:16px}small,.muted{color:var(--muted)}.icon{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:#fff;border-right:1px solid var(--line);padding:34px 23px 22px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;margin:0 7px 36px}.brand-icon{width:41px;height:41px;border-radius:12px;background:var(--deep);color:var(--lime);display:grid;place-items:center}.brand strong{font-size:21px;font-weight:800;letter-spacing:-.6px}.brand span{display:block;font-size:10px;letter-spacing:2px;color:var(--muted);line-height:1.2;margin-top:3px}.nav-label{font-size:10px;color:#9aa29d;letter-spacing:1.6px;margin:20px 15px 10px}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 15px;border-radius:11px;color:#78857d;font-weight:550;margin-bottom:6px;transition:.15s}.nav-item:hover{background:var(--bg);color:var(--ink)}.nav-item.active{background:var(--soft);color:var(--deep);font-weight:700}.nav-item.active:after{content:"";margin-left:auto;background:var(--green);width:6px;height:6px;border-radius:50%}.sidebar-foot{margin-top:auto;background:var(--bg);padding:15px;border-radius:14px;font-size:12px;line-height:1.8}.sidebar-foot b{color:var(--green)}.workspace{margin-left:240px}.topbar{height:88px;padding:0 48px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.65)}.crumb{color:#8a948b;font-size:12px}.crumb b{color:var(--ink);font-weight:500}.top-right{display:flex;align-items:center;gap:16px}.pill{font-size:11px;border:1px solid var(--line);background:#fff;border-radius:30px;padding:5px 12px;white-space:nowrap}.pill.dot:before{content:"";display:inline-block;width:5px;height:5px;background:#689d43;border-radius:50%;margin:0 7px 1px 0}.user-btn{border:0;background:transparent;display:flex;align-items:center;gap:9px;color:var(--ink);font-size:12px}.avatar{display:grid;place-items:center;width:33px;height:33px;background:var(--deep);color:var(--lime);border-radius:50%;font-size:12px;font-weight:700}.main-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:25px}.main-head p{color:var(--muted);margin-top:7px}.eyebrow{font-size:11px;letter-spacing:1.6px;font-weight:650;color:var(--green);margin-bottom:7px}.main-date{font-size:11px;color:var(--muted);padding-top:10px}.button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 20px;border-radius:10px;border:1px solid transparent;line-height:1.45;background:var(--deep);color:#fff;font-weight:600;font-size:13px;transition:transform .1s,background .15s}.button:hover,.btn:hover{background:#245340}.btn:active{transform:translateY(1px)}.btn.secondary{border-color:var(--line);background:#fff;color:var(--ink)}.btn.secondary:hover{background:#f1f5ef}.btn.light{background:var(--lime);color:var(--deep)}.btn.ghost{border-color:rgba(255,255,255,.25);background:transparent;color:white}.btn.tiny{min-height:34px;padding:6px 12px;font-size:12px}.btn.danger{color:var(--red);border-color:#efcdc9;background:#fff}.text-btn{border:0;background:transparent;color:var(--green);padding:6px 0;font-size:12px}.icon-btn{background:transparent;border:1px solid var(--line);border-radius:10px;width:40px;height:40px;display:inline-grid;place-items:center;color:var(--muted)}.icon-btn.chosen{background:var(--soft);color:var(--green)}#main{padding:34px 48px 24px;max-width:1520px;margin:auto;min-height:calc(100vh - 140px)}.hero{display:grid;grid-template-columns:1.1fr 1fr;position:relative;isolation:isolate;overflow:hidden;background:#163d2e;color:#fff;border-radius:24px;margin-bottom:25px;min-height:253px}.hero-copy{padding:33px 36px;z-index:2}.hero .tag{font-size:10px;background:rgba(216,242,152,.12);border:1px solid rgba(216,242,152,.25);color:var(--lime);display:inline-block;border-radius:5px;padding:3px 9px;letter-spacing:1px;margin-bottom:13px}.hero h2{font-size:32px;line-height:1.5;letter-spacing:-.6px;font-weight:650}.hero p{font-size:12px;color:#acc8b7;margin:8px 0 21px}.hero-actions{display:flex;gap:10px}.tactical-art{display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:radial-gradient(ellipse at 55% 60%,rgba(76,144,92,.2),transparent 65%)}.tactical-art svg{width:96%;max-height:240px;transform:rotate(-12deg);opacity:.9}.tactical-label{position:absolute;right:35px;bottom:25px;font-size:9px;letter-spacing:2px;color:#8caa91}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.metric{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}.metric-icon{height:40px;width:40px;border-radius:12px;display:grid;place-items:center;background:#f1f5e9;color:#5f8e40}.metric:nth-child(2) .metric-icon{background:#eff4f7;color:#62808e}.metric:nth-child(3) .metric-icon{background:#f8f1e6;color:#aa8b4b}.metric:nth-child(4) .metric-icon{background:#f2eef7;color:#897396}.metric label{display:block;font-size:10px;color:var(--muted)}.metric strong{font-size:25px;letter-spacing:-.8px;line-height:1.3}.metric small{font-size:10px;margin-left:5px}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:24px;align-items:start}.section-header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}.section-header h2{font-size:17px}.section-header p{font-size:11px;color:var(--muted);margin-top:3px}.section-header .text-btn{white-space:nowrap}.categories{display:grid;grid-template-columns:1fr 1fr;gap:14px}.category{background:#fff;border:1px solid var(--line);border-radius:16px;padding:19px;display:block;color:var(--ink);transition:.2s}.category:hover{border-color:#9abd83;transform:translateY(-2px);box-shadow:var(--shadow)}.cat-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.cat-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f3f6ec;color:#4f7146}.category .index{font-family:monospace;font-size:10px;color:#aab0a8}.category h3{font-size:13px;font-weight:650}.category p{font-size:10px;color:var(--muted);margin:4px 0 14px}.progress{background:#edf0e8;height:4px;border-radius:4px;overflow:hidden}.progress span{background:#79a454;display:block;height:100%;border-radius:4px}.cat-bottom{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#9ca398;margin-top:8px}.side-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:21px;margin-bottom:16px}.side-card h3{font-size:13px}.goal-row{display:flex;justify-content:space-between;align-items:center}.goal-circle{width:67px;height:67px;border-radius:50%;border:5px solid var(--soft);display:grid;place-items:center;text-align:center;line-height:1.25;color:var(--green);font-size:16px}.goal-circle small{font-size:8px;display:block}.days{display:flex;gap:8px;justify-content:space-between;margin-top:18px}.day{text-align:center;font-size:9px;color:#97a090}.day span{display:grid;place-items:center;border-radius:50%;background:#f4f6f0;width:22px;height:22px;margin-top:5px;font-size:9px}.day.current span{background:var(--deep);color:white}.side-card.note{background:#eef3e7;border-color:#e4ebd9}.note p{font-size:11px;color:#738267;line-height:1.9;margin-top:9px}.sponsor{position:relative;overflow:hidden;background:#212820;color:#fff;border-radius:18px;padding:24px 23px;display:flex;flex-direction:column;min-height:242px}.ad-label{font-size:9px;color:#a4afa5;letter-spacing:.5px;margin-bottom:20px;display:block}.mufun-word{font-size:28px;font-weight:900;letter-spacing:-1px;font-style:italic;line-height:1.1;color:#e0c285}.mufun-word small{font-size:13px;font-weight:400;font-style:normal;letter-spacing:3px;color:#e0c285;display:block;margin-top:8px}.sponsor h3{font-size:17px;margin-top:20px;color:#f0e5cd}.sponsor p{font-size:10px;color:#9ba898;margin:7px 0 18px;line-height:1.9}.sponsor .btn{background:rgba(225,197,142,.08);border:1px solid #645b43;color:#dcc18c;width:100%;margin-top:auto}.sponsor:after{content:"M";position:absolute;right:-18px;top:15px;font-size:170px;color:rgba(212,185,120,.025);font-weight:900;pointer-events:none;transform:skew(-15deg)}.disclaimer{font-size:10px;color:#94a087;border-top:1px solid var(--line);padding-top:16px;margin-top:24px;line-height:1.8}#footer{padding:0 48px 25px;display:flex;gap:18px;justify-content:space-between;font-size:10px;color:#929b90;max-width:1520px;margin:auto}.mobile-nav{display:none}.loading{padding:100px 0;text-align:center;color:var(--muted)}.notice{padding:13px 16px;border-radius:12px;background:#f0f5e7;border:1px solid #e0e8d7;font-size:12px;line-height:1.9;margin-bottom:20px;color:#647451}.notice.warn{background:#fff6e8;border-color:#eee0c4;color:#92702c}.notice.error{background:#fff1ed;border-color:#f0d7d0;color:#a84b3b}.empty{padding:48px 25px;background:#fff;border:1px dashed var(--line);border-radius:18px;text-align:center}.empty h3{font-size:17px;margin:12px}.empty p{font-size:12px;color:var(--muted);margin-bottom:20px}.empty .icon{width:30px;height:30px;color:#99b481}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:20px}.toolbar input{flex:1;min-width:150px}.search-box{position:relative}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:15px}.field label{font-size:12px;color:#65736a}.field input,.field select,.field textarea,.toolbar input,.toolbar select{width:100%;border:1px solid #dce4d8;border-radius:10px;padding:11px 12px;background:#fff;color:var(--ink);min-height:44px}.field textarea{resize:vertical;min-height:85px}.field small{font-size:10px}.check{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:#667561;margin:12px 0 20px}.check input{accent-color:var(--green);width:16px;height:16px;margin-top:3px;flex:none}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-grid .span2{grid-column:span 2}.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:25px;box-shadow:var(--shadow)}.quiz-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:22px}.question-meta{display:flex;justify-content:space-between;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:20px;color:var(--muted);font-size:11px}.badge{font-size:10px;display:inline-block;padding:3px 8px;border-radius:5px;background:#eef4e7;color:#72904e}.badge.sample,.badge.draft{background:#fcf1dc;color:#9b7736}.badge.archived{background:#eee;color:#888}.badge.review{background:#eaf2fa;color:#5c809c}.quiz-title{font-size:20px;line-height:1.9;margin-bottom:24px;font-weight:650;white-space:pre-wrap}.options{display:flex;flex-direction:column;gap:13px}.option{border:1px solid var(--line);background:#fff;border-radius:12px;padding:16px 18px;text-align:left;display:flex;align-items:center;gap:15px;line-height:1.7;width:100%;font-size:14px;color:#55665b;transition:.15s}.option .letter{height:28px;min-width:28px;border-radius:8px;background:#f4f6f0;display:grid;place-items:center;font-size:12px;color:#75806f}.option:hover{background:#f8faf5;border-color:#a7c491}.option.selected{background:#f0f6e7;border-color:#95b778;color:var(--deep)}.option.selected .letter{background:var(--deep);color:#fff}.option.correct{background:#edf6e8;border-color:#8cb46b}.option.wrong{background:#fff0eb;border-color:#df9a8e}.option:disabled{opacity:1;cursor:default}.quiz-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}.inline-actions{display:flex;gap:9px;align-items:center}.explanation{border-radius:14px;border:1px solid #dbe9ce;background:#f4f8ee;margin-top:24px;padding:19px;line-height:1.9;font-size:13px}.explanation h3{color:var(--green);font-size:14px;margin-bottom:8px}.explanation p{white-space:pre-wrap}.source{font-size:10px;color:#7e8d6d;margin-top:17px;padding-top:12px;border-top:1px solid #dfe8d4;word-break:break-word}.source a{text-decoration:underline}.locked{background:#fff;border:1px dashed #bdcba8;padding:16px;border-radius:10px;margin-top:16px}.locked .btn{margin-top:10px}.question-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:16px}.qnum{border:1px solid var(--line);border-radius:7px;background:#fff;min-height:32px;color:#8c9782;font-size:11px}.qnum.current{border-color:var(--green);color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.qnum.answered{background:var(--soft);color:var(--green)}.timer{font-size:28px;letter-spacing:2px;font-variant-numeric:tabular-nums;color:var(--deep);margin:12px 0}.exam-intro{max-width:760px;margin:auto;text-align:center;padding:44px}.exam-intro .icon{width:42px;height:42px;color:var(--green)}.exam-intro h2{font-size:26px;margin-top:20px}.exam-intro p{margin:14px 0 25px;color:var(--muted)}.exam-facts{display:flex;gap:25px;justify-content:center;margin:25px 0}.exam-facts div{border-right:1px solid var(--line);padding-right:25px}.exam-facts div:last-child{border:0;padding-right:0}.exam-facts b{display:block;font-size:25px}.exam-facts small{font-size:11px}.result-head{text-align:center;background:var(--deep);border-radius:20px;color:white;padding:33px;margin-bottom:22px}.result-head strong{font-size:66px;line-height:1.3;font-weight:650;color:var(--lime)}.result-head strong span{font-size:16px}.result-head p{color:#a3bea8;font-size:12px;margin-top:8px}.result-item{padding:18px 0;border-top:1px solid var(--line)}.result-item h3{font-size:14px;margin-bottom:8px}.result-item p{font-size:12px;color:var(--muted)}.result-detail{margin-top:8px;background:#f6f8f1;padding:12px;border-radius:9px}.review-options{margin-bottom:10px;font-size:11px;color:#73856e}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;min-width:550px}th{font-size:10px;letter-spacing:.5px;color:#8a9880;background:#f6f8f3;font-weight:600;white-space:nowrap}th,td{padding:14px 17px;border-bottom:1px solid var(--line);vertical-align:top}tr:last-child td{border-bottom:0}td.stem-cell{max-width:380px;min-width:220px}td .actions{display:flex;gap:7px;flex-wrap:wrap}td small{font-size:10px}tr:hover td{background:#fbfcf8}.admin-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:22px}.tab{border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:9px;padding:8px 15px;font-size:12px}.tab.active{background:var(--deep);border-color:var(--deep);color:#fff}.admin-section-title{margin:20px 0 13px;font-size:16px}.equipment-hero{background:#20281f;border:1px solid #4c533d;padding:38px;border-radius:22px;color:#ddd9c6;margin-bottom:24px;display:flex;justify-content:space-between;gap:25px;align-items:center}.equipment-hero .mufun-word{font-size:58px;margin:12px 0}.equipment-hero h1{font-size:31px;color:#e9d6ab;margin-top:20px}.equipment-hero p{color:#a6ac96;margin:13px 0;font-size:12px}.equipment-hero .mini-pitch{width:220px;opacity:.3;color:var(--gold)}.benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:24px}.benefit{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px}.benefit h3{font-size:13px;margin:10px 0 6px}.benefit p{font-size:11px;color:var(--muted)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px}.copyline{padding:12px;background:#f4f7ee;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere;margin:15px 0;font-size:12px}.legal h2{margin:22px 0 10px;font-size:18px}.legal p{margin-bottom:15px;font-size:13px;color:#61745f;line-height:2}.legal ul{padding-left:20px;font-size:13px;color:#61745f}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#243d2e;color:white;padding:13px 23px;border-radius:12px;font-size:13px;z-index:2000;max-width:90vw;transition:.2s;box-shadow:0 8px 40px #0002}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{border:0;border-radius:22px;padding:0;width:min(570px,92vw);max-height:90vh;overflow:auto;background:white;color:var(--ink);box-shadow:0 24px 90px #12231633}dialog::backdrop{background:rgba(14,31,21,.5);backdrop-filter:blur(4px)}.modal-inner{padding:30px}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:20px}.modal-head h2{font-size:19px}.modal-inner p.desc{font-size:12px;color:var(--muted);margin-bottom:20px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.splash-inner{padding:26px;background:#242a20;color:#e7d6b0;position:relative;text-align:center;min-height:340px}.splash-inner .close-splash{display:block;margin-left:auto;border:1px solid #64684e;border-radius:30px;color:#e6debf;background:transparent;min-height:40px;padding:6px 16px;font-size:12px}.splash-inner .mufun-word{font-size:51px;margin:28px 0}.splash-inner h2{font-size:25px;margin:20px 0 10px}.splash-inner p{font-size:12px;color:#a9ae92}.splash-inner .btn{margin:25px 0 10px;background:#d8bd81;color:#263222}.reward-video{width:100%;border-radius:12px;background:#212920;aspect-ratio:16/9}.reward-state{font-size:12px;color:#7f8a70;margin:12px 0}.skip-link{position:absolute;left:10px;top:-100px;z-index:3000}.skip-link:focus{top:10px;padding:10px;background:white}.error-text{color:var(--red);font-size:12px;white-space:pre-wrap;margin:10px 0;min-height:1px}.fine{font-size:10px!important;color:#9c9e8b!important}.admin-form{max-width:900px}.full{width:100%}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;background:#f5f7f0;padding:15px;border-radius:10px}.ad-wide{margin-top:22px;border-radius:15px;padding:18px 22px;background:#252e24;color:#d6c291;display:flex;justify-content:space-between;align-items:center;gap:20px}.ad-wide p{font-size:11px;color:#a5ac91}.ad-wide .btn{white-space:nowrap;background:#d3bd82;color:#283526}.ad-wide .ad-label{margin:0 0 3px}.ad-wide h3{font-size:15px}.saved-note{font-size:10px;color:#809170}.admin-list-controls{display:flex;gap:8px;align-items:center}.chip{border:1px solid var(--line);border-radius:8px;padding:7px 10px;font-size:12px;min-height:37px}.status-ok{color:var(--green)}.status-bad{color:var(--red)}.mt{margin-top:20px}.mb{margin-bottom:20px}.right{text-align:right}
@media(min-width:1600px){.sidebar{width:265px;padding:40px 29px}.workspace{margin-left:265px}.hero{min-height:280px}.hero-copy{padding:40px}.hero h2{font-size:37px}.content-grid{grid-template-columns:minmax(0,1fr) 310px}.category{padding:22px}.side-card{padding:25px}}
@media(max-width:1180px){.sidebar{width:206px;padding:28px 16px}.workspace{margin-left:206px}.topbar{padding:0 30px}#main{padding:28px 30px}#footer{padding:0 30px 25px}.content-grid{grid-template-columns:1fr 242px;gap:18px}.hero-copy{padding:28px}.hero h2{font-size:28px}.metric{padding:15px;gap:10px}.metric-icon{width:33px;height:33px}.metrics{gap:11px}.metric strong{font-size:22px}.categories{gap:10px}.category{padding:16px}.quiz-layout{grid-template-columns:1fr 200px}.brand{gap:8px;margin-left:4px}.brand strong{font-size:19px}}
@media(max-width:960px){.content-grid{grid-template-columns:1fr}.side-stack{display:grid;grid-template-columns:1fr 1fr;gap:16px}.side-stack .note{display:none}.sponsor{min-height:220px}.metric{padding:15px 12px}.metric-icon{display:none}.hero h2{font-size:25px}.hero-copy{padding:26px}.hero-actions .btn{padding:10px 13px}.quiz-layout{grid-template-columns:1fr}.quiz-map{order:2}.question-grid{grid-template-columns:repeat(10,1fr)}.two-col{grid-template-columns:1fr}.equipment-hero .mini-pitch{width:140px}.top-right .pill{display:none}}
@media(max-width:720px){.sidebar{display:none}.workspace{margin-left:0}.topbar{height:66px;padding:0 21px;background:#fff}.crumb{font-size:11px}.crumb .desktop-only{display:none}.user-btn{gap:7px}.user-name{max-width:75px;overflow:hidden;text-overflow:ellipsis}.top-right{gap:6px}#main{padding:23px 20px 30px}.main-head{margin-bottom:21px}.main-head h1{font-size:25px}.main-head p{font-size:11px;line-height:1.8}.main-date{display:none}.eyebrow{font-size:9px;margin-bottom:7px}.hero{grid-template-columns:1fr;min-height:245px;margin-bottom:18px;border-radius:20px}.hero-copy{padding:25px;max-width:100%}.hero h2{font-size:26px}.hero p{font-size:10px;margin-top:9px;max-width:90%;line-height:1.8}.hero .tag{font-size:9px}.tactical-art{position:absolute;width:66%;height:100%;right:-65px;top:-15px;opacity:.22;z-index:-1}.tactical-label{display:none}.hero-actions{margin-top:18px}.hero-actions .btn{font-size:11px;min-height:41px}.metrics{grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:24px}.metric{display:block;padding:12px 8px;border-radius:12px;text-align:center}.metric label{font-size:9px}.metric strong{font-size:21px;letter-spacing:-1px}.metric small{font-size:8px;margin-left:3px}.section-header h2{font-size:16px}.section-header p{font-size:10px}.section-header .text-btn{font-size:10px}.categories{gap:11px}.category{padding:15px;border-radius:14px}.category h3{font-size:12px}.category p{font-size:9px;margin-bottom:13px}.cat-icon{width:30px;height:30px}.cat-top{margin-bottom:11px}.category .index{font-size:9px}.cat-bottom{font-size:8px}.side-stack{grid-template-columns:1fr}.side-card{margin:0}.side-stack .side-card:not(.note){margin-top:0}.sponsor{min-height:210px;display:grid;grid-template-columns:1fr 1fr;gap:2px 15px}.sponsor .ad-label{grid-column:span 2;margin-bottom:12px}.sponsor .mufun-word{font-size:26px}.sponsor h3{font-size:15px;margin:0}.sponsor p{margin:5px 0 14px;grid-column:span 2}.sponsor .btn{grid-column:span 2;font-size:11px}.sponsor:after{font-size:140px}.content-grid{gap:22px}.disclaimer{font-size:9px;line-height:1.9;margin-top:23px}#footer{padding:0 20px 100px;flex-wrap:wrap;font-size:9px;gap:5px 14px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;min-height:65px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid #e3e8df;backdrop-filter:blur(8px);z-index:100;display:flex;justify-content:space-around;align-items:center}.mobile-nav a{color:#9aa18f;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:9px;min-width:48px;padding:3px;border-radius:10px}.mobile-nav a.active{color:var(--green);background:#f0f6e8}.mobile-nav .icon{width:20px;height:20px}.toast{bottom:90px;font-size:12px;padding:12px 17px;width:max-content;max-width:90vw}.card{padding:20px;border-radius:15px}.question-meta{font-size:10px;padding-bottom:13px;margin-bottom:16px;flex-wrap:wrap}.quiz-title{font-size:17px;line-height:1.9;margin-bottom:21px}.option{padding:13px;font-size:13px;gap:12px}.option .letter{min-width:25px;height:25px;font-size:11px}.quiz-actions{flex-wrap:wrap}.quiz-actions .btn{font-size:12px;padding:10px 13px}.quiz-actions .inline-actions{gap:6px}.explanation{font-size:12px;padding:16px}.locked .btn{font-size:11px;padding:10px 12px}.question-grid{grid-template-columns:repeat(8,1fr)}.timer{font-size:23px;margin:8px 0}.quiz-map{padding:18px}.quiz-layout{gap:15px}.toolbar{gap:8px}.toolbar input,.toolbar select{font-size:12px}.form-grid{grid-template-columns:1fr}.form-grid .span2{grid-column:auto}.exam-intro{padding:29px 20px}.exam-intro h2{font-size:23px}.exam-intro p{font-size:12px}.exam-facts{gap:18px}.exam-facts div{padding-right:18px}.exam-facts b{font-size:22px}.exam-facts small{font-size:10px}.result-head{padding:28px}.result-head strong{font-size:53px}.equipment-hero{padding:27px 24px;overflow:hidden;position:relative}.equipment-hero .mufun-word{font-size:47px}.equipment-hero h1{font-size:24px}.equipment-hero .mini-pitch{position:absolute;right:-55px;top:20px;width:160px;opacity:.13}.benefits{gap:8px;grid-template-columns:1fr}.benefit{padding:16px;display:grid;grid-template-columns:30px 1fr;gap:0 12px}.benefit h3{margin:0 0 4px;font-size:12px}.benefit p{grid-column:2;font-size:11px}.benefit .icon{grid-row:span 2}.two-col{gap:18px}.admin-tabs{gap:6px}.tab{font-size:11px;padding:7px 11px}.admin-list-controls{flex-wrap:wrap}.ad-wide{padding:17px;gap:12px;align-items:flex-start;flex-wrap:wrap}.ad-wide h3{font-size:13px}.ad-wide p{font-size:10px}.ad-wide .btn{min-height:37px;font-size:11px}.modal-inner{padding:24px 20px}.modal-head h2{font-size:17px}.modal-actions .btn{font-size:12px}.form-grid{gap:0}.field label{font-size:11px}.field input,.field select,.field textarea{font-size:13px}.splash-inner{padding:22px}.splash-inner .close-splash{min-height:43px;padding:8px 15px}.splash-inner .mufun-word{font-size:46px}table{font-size:11px}th,td{padding:12px}.side-card.note{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}.category:hover{transform:none}}
/* Regression fix: wide admin tables scroll inside their card, never widen the phone page. */
.card,.two-col>*,.content-grid>*,.quiz-layout>*{min-width:0}
.table-wrap{max-width:100%}
.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:960px){.two-col{grid-template-columns:minmax(0,1fr)}}

/* V0.5: resilient layout. Do not hide document overflow to mask broken content. */
html{scroll-padding-bottom:100px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.workspace,#main,.topbar,.top-right,.crumb,.user-btn,.card,.form-grid>*,.toolbar>*,.quiz-layout>*,.equipment-hero>*,.metrics>*{min-width:0}
button,input,select,textarea{max-width:100%}
button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #779c4e;outline-offset:3px}
.btn,.option,.text-btn,.icon-btn{min-height:44px}
.btn{white-space:normal;overflow-wrap:anywhere;text-align:center}
.option{overflow-wrap:anywhere;align-items:flex-start}
.option>.letter{flex-shrink:0}
.option>span:last-child{min-width:0;flex:1;overflow-wrap:anywhere}
.quiz-title,.question-meta,.source,.explanation,.result-item,.legal,.notice,.copyline,td,th,.field label,.error-text{overflow-wrap:anywhere}
.question-meta,.quiz-actions,.modal-actions,.exam-facts{flex-wrap:wrap}
.question-meta{gap:8px}
.toolbar input{min-width:min(150px,100%)}
.field select,.toolbar select{min-width:0;max-width:100%;text-overflow:ellipsis}
.user-name{display:block;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-btn .avatar,.modal-head .icon-btn{flex-shrink:0}
.modal-head h2{min-width:0;overflow-wrap:anywhere}
.modal-actions{gap:10px}
dialog{max-width:calc(100vw - 24px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overscroll-behavior:contain}
.modal-inner,dialog pre{min-width:0;max-width:100%;overflow-wrap:anywhere}
dialog pre{white-space:pre-wrap;word-break:break-word;font-size:12px}
.table-wrap{width:100%;min-width:0;overscroll-behavior-x:contain}
.admin-tabs{gap:8px}
.admin-tabs .tab{min-height:44px;line-height:1.5}
.loading{min-height:180px;display:flex;align-items:center;justify-content:center;color:#52704f;line-height:1.8;padding:24px;text-align:center}
.login-gate{text-align:center;margin:18px 0 32px}
@media(max-width:960px){.exam-facts{row-gap:14px}.exam-facts div{min-width:0}}
@media(max-width:720px){
 .workspace{padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))}
 .topbar{height:auto;min-height:66px;gap:10px;padding:12px 16px}
 .crumb{flex:1}.top-right{flex-shrink:0;max-width:49%}.user-name{max-width:85px}
 .mobile-nav{padding-bottom:env(safe-area-inset-bottom,0px);min-height:66px}
 .mobile-nav a{min-height:58px;justify-content:center}
 #main{padding:22px 16px 30px}#footer{padding:0 16px 18px;gap:12px;flex-wrap:wrap;font-size:11px}
 .field input,.field select,.field textarea{font-size:16px;line-height:1.5}
 .field label{font-size:12px}
 .quiz-title{font-size:20px;line-height:1.7}.option{font-size:14px;padding:14px 12px}
 .quiz-actions{gap:12px}.quiz-actions .inline-actions{flex-wrap:wrap}
 .question-grid{grid-template-columns:repeat(auto-fit,minmax(38px,1fr))}.qnum{min-height:40px;font-size:12px}
 .admin-tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:8px;scrollbar-width:thin}
 .admin-tabs .tab{flex:0 0 auto;font-size:12px;white-space:nowrap}
 .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric label{font-size:11px}.metric small{font-size:11px}
 .btn.tiny{min-height:40px}.toolbar{align-items:stretch}
 .equipment-hero h1{font-size:25px;line-height:1.55}.equipment-hero .mini-pitch{pointer-events:none;opacity:.18}
 .notice,.fine,.source,.explanation{font-size:12px;line-height:1.8}
 .modal-head{gap:10px}.modal-inner{padding:22px 16px}
 .toast{max-width:calc(100vw - 32px);bottom:calc(86px + env(safe-area-inset-bottom,0px));overflow-wrap:anywhere;white-space:normal}
}
