:root{font-family:system-ui,sans-serif;color:#18263d;background:#f1f4f9;--navy:#101b30;--accent:#176c61}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{background:var(--navy);color:white;padding:17px max(20px,calc((100vw - 1000px)/2));display:flex;align-items:center;justify-content:space-between}.brand{font-size:25px;white-space:nowrap}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#a6b4cb;margin-left:30px}main{max-width:1000px;margin:28px auto;padding:0 18px;min-height:78vh}.panel{background:white;border:1px solid #dfe5ef;border-radius:15px;padding:22px;margin-bottom:20px;box-shadow:0 3px 12px #11233b08}.narrow{max-width:450px;margin:40px auto}h1{font-size:27px;margin:6px 0 10px}h2{font-size:18px;margin:0}p{color:#596b81;line-height:1.5}form{display:grid;gap:12px}label{display:grid;gap:5px;font-size:14px;font-weight:600}input,select,button{font:inherit;border:1px solid #cbd5e3;border-radius:9px;padding:11px;color:inherit;background:white}button{cursor:pointer;font-weight:600}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--accent);color:white;border:0}.link{border:0;color:#176c61;background:transparent;padding:10px 5px}.between,.intro{display:flex;align-items:center;justify-content:space-between;gap:12px}.eyebrow{font-size:11px;letter-spacing:1.8px;font-weight:700;color:#176c61}.intro p{margin-top:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.stats div{background:#f2f5f9;padding:12px;border-radius:10px;text-align:center}.stats b{display:block;font-size:25px}.stats span{color:#596b81;font-size:12px}progress{width:100%;height:10px;border:0;border-radius:8px;overflow:hidden;appearance:none;margin-top:15px;background:#e6ebf2}progress::-webkit-progress-bar{background:#e6ebf2}progress::-webkit-progress-value{background:var(--bar,#176c61);border-radius:8px}progress::-moz-progress-bar{background:var(--bar,#176c61)}.filters{display:flex;gap:10px;margin:18px 0}.filters input{flex:1;min-width:0}details{background:white;border:1px solid #dfe5ef;border-left:5px solid var(--bar);border-radius:12px;margin-bottom:12px;padding:16px}summary{cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}summary .count{font-size:12px;color:#596b81}summary h2{display:inline}summary::after{content:'⌄';float:right;color:#70829b}details[open] summary::after{content:'⌃'}.group{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:#62748b;margin:22px 0 7px}.topic{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #edf0f5;cursor:pointer;font-weight:400}.topic input{width:20px;height:20px;accent-color:#176c61;flex-shrink:0}.topic:has(input:checked) span{color:#70829b;text-decoration:line-through}.user{border-top:1px solid #dfe5ef;padding:12px 0;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.user small{display:block;color:#62748b;overflow-wrap:anywhere}.user button{margin-left:5px}#message:not(:empty){background:#e1f0eb;border-radius:10px;padding:13px;margin-bottom:12px;overflow-wrap:anywhere}footer{text-align:center;color:#62748b;font-size:12px;padding:20px}hr{border:0;border-top:1px solid #dfe5ef}@media(max-width:540px){main{margin-top:18px}.panel{padding:16px}.intro{align-items:flex-start;flex-direction:column}.filters{flex-wrap:wrap}.filters select{width:100%}h1{font-size:24px}}

.app-tabs{display:flex;gap:8px;border-bottom:1px solid #dfe5ef;margin:0 0 25px;overflow-x:auto;align-items:stretch}.module-tab{background:#e4eaf3;color:#40546e;border:1px solid #d2dce9;border-bottom:0;border-radius:12px 12px 0 0;padding:14px 21px;white-space:nowrap;font-size:15px}.module-tab.active{background:#2463c5;color:white;border-color:#2463c5}.module-tab.admin-tab.active{background:#101b30;border-color:#101b30}.module-tab:focus-visible{outline:3px solid #82b2ff;outline-offset:-4px}@media(max-width:540px){.module-tab{font-size:13px;padding:12px 14px}.app-tabs{margin-bottom:18px}}

.topic-card{border:1px solid #e8d9dc;background:#fff7f8;border-radius:10px;margin:8px 0;overflow:hidden}.topic-card.finished{background:#effaf3;border-color:#c4e5d0}.topic-row{display:flex;align-items:center;gap:12px;padding:10px 12px}.topic-card .topic{flex:1;min-width:0;border:0;padding:0}.topic-title{display:grid;gap:3px;min-width:0}.topic-title strong{font-size:14px;font-weight:650;line-height:1.35}.topic-state{color:#a44959;font-size:11px;font-weight:600}.finished .topic-state{color:#247347}.note-toggle{font-size:12px;background:transparent;border:1px solid #cbd5e3;padding:8px 10px;white-space:nowrap;color:#334e74}.note-editor{padding:12px;border-top:1px solid #dbe2ec;background:#fff}.note-editor textarea{width:100%;min-height:92px;resize:vertical;font:inherit;font-size:14px;line-height:1.5;border:1px solid #cbd5e3;border-radius:8px;padding:10px;color:#18263d}.note-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.note-bottom small{font-size:11px;color:#62748b}.save-note{background:#2463c5;color:white;border:0;font-size:12px;padding:9px 13px}@media(max-width:540px){.topic-row{gap:6px;padding:9px 8px}.topic-title strong{font-size:13px}.note-toggle{font-size:11px;padding:7px 6px}.topic input{margin:0}.note-bottom{flex-wrap:wrap}}

.home-panel{padding:32px;min-height:180px}.home-panel p{max-width:560px}.app-tabs{border-bottom:1px solid #ccd7e6;gap:10px}.module-tab{background:#2463c5;color:#fff;border:1px solid #2463c5;border-radius:10px 10px 0 0;letter-spacing:.8px;min-width:155px}.module-tab.active{background:#154ba9;border-color:#154ba9;box-shadow:inset 0 -4px #8bb9ff}.module-tab.admin-tab{background:#e4eaf3;color:#40546e;border-color:#d2dce9}.module-tab.admin-tab.active{color:white}.back-home{font-size:13px;white-space:nowrap}@media(max-width:540px){.home-panel{padding:20px}.module-tab{min-width:130px}.intro .back-home{align-self:flex-start}}

.brand{display:flex;align-items:center;gap:12px}.brand img{width:64px;height:64px;object-fit:contain;border-radius:10px}.brand small{margin-left:0;font-size:12px;letter-spacing:1px;color:#e6c66e}.brand b{font-size:25px}header{background:#211332}

.exam-tab{background:#ad293c;border-color:#ad293c}.exam-tab.active{background:#891a2d;border-color:#891a2d;box-shadow:inset 0 -4px #f19ba9}.exam-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.exam-card{display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden;text-align:left;min-height:128px;padding:18px;background:linear-gradient(115deg,#151e31,var(--subject));border:1px solid var(--subject);color:white;border-radius:16px}.exam-info{position:relative;z-index:1;display:grid;gap:8px;flex:1}.exam-info strong{font-size:clamp(16px,2.4vw,25px)}.exam-info small{font-size:12px;color:#e6e9f3}.exam-card img{width:32%;height:104px;object-fit:cover;border-radius:12px;opacity:.95}.exam-card:hover{filter:brightness(1.13)}.exam-card:focus-visible{outline:3px solid #e6c66e}.exam-grid + .panel{margin-top:15px}@media(max-width:540px){.exam-grid{grid-template-columns:1fr}.exam-card{min-height:104px}.exam-card img{height:84px}}

.local-tools{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.local-tools p{width:100%;margin:0;font-size:13px}.local-tools p:empty{display:none}.local-tools button{font-size:14px}
