/* V4: unified local course */
*{box-sizing:border-box}html,body{margin:0;padding:0}body{min-height:100vh;font-family:Inter,Segoe UI,Arial,sans-serif;background:#f3f6fa;color:#1b2a3d}.app{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;width:330px;flex:0 0 330px;overflow:auto;background:#101a2c;color:#dce6f5;border-right:1px solid #263550;padding:20px 15px}.brand{font-size:23px;font-weight:800;color:#fff}.sub{font-size:12px;color:#91a3bd;margin:6px 0 16px}.search input{width:100%;padding:11px 13px;border:1px solid #344663;border-radius:12px;background:#1a273b;color:#fff;outline:none}.search input:focus{border-color:#7194bf}.group{margin-top:20px}.group h3{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#8fa4c2;margin:0 8px 7px}.nav{display:flex;flex-direction:column;gap:2px}.nav a{display:flex;gap:8px;padding:7px 8px;border-radius:8px;color:#dce6f5;text-decoration:none;font-size:13px;line-height:1.35}.nav a:hover,.nav a.active{background:#1d2b43;color:#fff}.n{color:#7190b7;min-width:25px}.side-foot{margin:22px 8px;color:#8295af;font-size:12px}.main{min-width:0;flex:1}.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:#fff;border-bottom:1px solid #dfe6ef;position:sticky;top:0;z-index:5}.crumb{font-size:13px;color:#718198}.homebtn{color:#3f608b;text-decoration:none;border:1px solid #d7e0eb;border-radius:9px;padding:8px 12px;background:#fff}.content{max-width:1180px;margin:auto;padding:30px}.hero{background:#fff;border:1px solid #e0e7ef;border-radius:18px;padding:27px 30px;margin-bottom:20px;box-shadow:0 7px 25px rgba(33,55,82,.06)}.badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#edf3fa;color:#4b6d98;font-size:11px;font-weight:800;letter-spacing:.06em}.hero h1{margin:10px 0 0;font-size:34px;line-height:1.15;color:#16263c}.article{background:#fff;border:1px solid #e0e7ef;border-radius:18px;padding:32px;box-shadow:0 7px 25px rgba(33,55,82,.05);font-size:16px;line-height:1.65;overflow-wrap:anywhere}.article h2,.article h3{color:#172b45;line-height:1.3}.article img{max-width:100%;height:auto;border-radius:8px}.article table{border-collapse:collapse;width:100%;margin:18px 0}.article th,.article td{border:1px solid #d8e1eb;padding:8px}.article th{background:#f1f5f9}.article pre{overflow:auto;background:#101a2a;color:#eef5ff;padding:15px;border-radius:10px}.article code{background:#edf2f7;padding:2px 5px;border-radius:4px}.article a{color:#3d6fa8}.pager{display:flex;gap:10px;margin-top:18px}.pager a{flex:1;background:#fff;border:1px solid #dbe4ee;border-radius:11px;padding:13px 15px;color:#355a87;text-decoration:none}.pager a:nth-child(2){flex:0 0 auto}.offline-note{margin:0 0 15px;padding:10px 13px;border-radius:10px;background:#eef5fb;border:1px solid #d8e5f1;color:#58718f;font-size:13px}.test-page .que{border:1px solid #dbe4ee;border-radius:13px;padding:17px;margin:17px 0;background:#fbfdff}.test-page .info{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #e5ebf2;padding-bottom:9px;margin-bottom:12px}.test-page .info h3{margin:0;font-size:17px}.test-page .state,.test-page .grade{font-size:12px;color:#72839a}.test-page .answer{display:grid;gap:8px}.test-page .answer>div{padding:10px 12px;border:1px solid #dbe4ee;border-radius:9px}.test-page input[type=radio]{margin-right:7px}.test-page .questionflag,.test-page .offline-media,.test-page .qtype_multichoice_clearchoice{display:none}.test-page .ablock{margin-top:10px}@media(max-width:850px){.sidebar{width:270px;flex-basis:270px}.content{padding:18px}.article{padding:21px}}@media(max-width:650px){.app{display:block}.sidebar{position:static;width:100%;height:auto;max-height:none;border-right:0;border-bottom:1px solid #263550}.group{display:none}.topbar{padding:0 13px}.content{padding:12px}.hero{padding:21px}.hero h1{font-size:27px}.article{padding:17px;font-size:15px}.pager{position:sticky;bottom:0;background:#f3f6fa;padding-top:7px}.pager a{font-size:12px}}
