:root{background:#f4f6f8;font-family:'Malgun Gothic',Arial,sans-serif}.sidebar{width:258px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid #e5e9ed;padding:30px 18px;display:flex;flex-direction:column;overflow:auto}.brand{display:block;padding:0 12px 28px}.brand span{font-size:11px;letter-spacing:0;margin-top:9px}.menu-label{font-size:11px;color:#8e9993;padding:14px 12px 10px;letter-spacing:1px}nav.subjects{display:grid;gap:5px;border:0;margin:0}nav.subjects button,.side-button{border:0;background:none;text-align:left;padding:13px 12px;border-radius:8px;font-size:13px;font-weight:600;color:#68786e;width:100%}.subjects small{display:block;font-size:10px;font-weight:400;margin-top:7px;color:#9aa59d}.subjects button:disabled{cursor:default;color:#919b95}nav.subjects button.active{background:#eaf2eb;color:#285b39;border-left:3px solid #497b52;padding-left:9px}.subjects button.active small{color:#6b8c72}.side-button.active{background:#eaf2eb;color:#285b39}.side-button span{float:right;background:#edf1ee;border-radius:20px;padding:2px 7px;font-size:11px}.sidebar-bottom{margin-top:auto;padding:30px 12px 0}.sidebar-bottom>span{font-size:11px;color:#8a978e}.sidebar-bottom strong{display:block;font-size:30px;color:#315740;margin-top:8px}.sidebar-bottom p{font-size:11px}.content{margin-left:258px}header.topbar{height:72px;max-width:none;background:#fff;border-bottom:1px solid #e5e9ed;padding:0 38px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#748579}.edition{font-size:11px}main{max-width:1120px;padding:36px 38px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}h1{font-size:25px;letter-spacing:-1px;margin:10px 0}.page-heading p{margin:10px 0 0;font-size:13px}.page-heading .secondary{font-size:12px;white-space:nowrap}.session{margin-bottom:20px}.session p{font-size:11px;margin:0 0 9px}.card{border-radius:13px;padding:30px 34px;box-shadow:0 3px 15px #253d2d04}.actions{justify-content:flex-end}.feedback h3{font-size:13px;margin:19px 0 7px}.feedback .explanation{font-size:14px;white-space:pre-line;line-height:1.9;color:#42594b}.feedback .source{font-size:11px;display:block;margin-top:16px;color:#70836e}.feedback a{color:#54795b;text-underline-offset:3px}.review-note{font-size:12px;border-left:3px solid #d89955;padding:10px 12px;margin-top:14px;background:#fff6e7;color:#89643c}footer{text-align:left;font-size:10px;margin:23px 0;line-height:1.8}.empty{padding:45px 5px}.choice span:not(.num),.feedback .answer-text{white-space:normal}@media(max-width:900px){.sidebar{width:210px;padding:25px 12px}.brand{font-size:20px}.content{margin-left:210px}main{padding:25px 22px}header.topbar{padding:0 22px}.card{padding:25px}.page-heading{align-items:flex-start}h1{font-size:21px}.page-heading p{font-size:11px}}@media(max-width:640px){.sidebar{position:static;width:100%;padding:17px 15px;border-right:0;border-bottom:1px solid #e0e6df;display:block}.brand{padding:0 0 14px;font-size:20px}.brand span{display:none}.menu-label{display:none}nav.subjects{display:flex;overflow:auto;gap:7px}.subjects button{min-width:143px;width:auto;font-size:11px;padding:10px}.subjects small{font-size:9px}.side-button{margin-top:8px;width:auto;font-size:11px;display:inline-block}.side-button span{margin-left:15px}.sidebar-bottom{display:none}.content{margin:0}header.topbar{height:44px;font-size:10px;padding:0 16px}.edition{font-size:9px}main{padding:23px 15px}.page-heading{gap:10px}h1{font-size:19px}.page-heading .secondary{font-size:10px;padding:10px}.card{padding:20px 15px}.feedback{padding:17px}.feedback .explanation{font-size:13px}}

nav.wrong-subjects{display:grid;gap:3px;border:0;margin:3px 0 12px;padding-left:10px}.wrong-subjects .wrong-subject{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 10px;border:0;border-radius:6px;background:none;font-size:11px;color:#77857c;text-align:left;width:100%;font-weight:400}.wrong-subjects .wrong-subject.active{background:#eaf2eb;color:#285b39;border:0}.wrong-subject b{font-size:10px;min-width:20px;text-align:center;border-radius:12px;background:#eef2ee;padding:2px 5px;font-weight:500}.wrong-subject:hover{background:#f4f7f2}@media(max-width:640px){nav.wrong-subjects{display:flex;overflow:auto;padding:0;margin:4px 0}.wrong-subjects .wrong-subject{min-width:145px;width:auto;white-space:nowrap}.sidebar .sidebar-bottom{display:none}}

.topbar-right{display:flex;align-items:center;gap:20px;}
.visitor-stats{display:inline-flex;align-items:center;gap:8px;}
.visitor-chip{display:inline-flex;align-items:center;gap:6px;background:#f3f7f4;border:1px solid #dce8df;padding:4px 10px;border-radius:14px;font-size:11px;color:#5a7362;box-shadow:0 1px 2px rgba(0,0,0,0.02);}
.visitor-chip.total{background:#f8f9fa;border-color:#e2e6ea;color:#637167;}
.visitor-chip .lbl{font-size:10px;font-weight:600;color:#7e9384;letter-spacing:-0.2px;}
.visitor-chip .val{font-size:11px;color:#496150;}
.visitor-chip b{font-weight:700;color:#285b39;margin-right:1px;}
.visitor-chip.total b{color:#3f5446;}
@media(max-width:768px){.visitor-stats{gap:6px;}.visitor-chip{padding:3px 8px;font-size:10px;}.topbar-right{gap:12px;}}
@media(max-width:640px){.visitor-chip .lbl{display:none;}.visitor-chip::before{content:"오늘 ";font-size:9px;color:#7e9384;font-weight:600;}.visitor-chip.total::before{content:"누적 ";}}
.brand .brand-source{display:block;font-size:10px;color:#9aa79e;margin-top:4px;letter-spacing:0.5px;font-weight:500;}

.site-policy-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:12px;font-size:12px;color:#7a8a7e;}
.site-policy-links a{color:#4e6c55;text-decoration:none;font-weight:500;transition:color 0.15s;}
.site-policy-links a:hover{color:#285b39;text-decoration:underline;}
.site-policy-links .sep{color:#cbd5ce;font-size:11px;}

/* Start below the sticky platform bar and let the complete left panel scroll. */
.sidebar{top:68px;bottom:0;height:auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;}
.sidebar>.brand,.sidebar>.menu-label,.sidebar>#exam-stage-tabs,.sidebar>nav.subjects,.sidebar>.side-button,.sidebar>nav.wrong-subjects,.sidebar>.sidebar-bottom{flex-shrink:0;}
@media(max-width:640px){.sidebar{top:auto;bottom:auto;max-height:calc(100vh - 52px);max-height:calc(100dvh - 52px);overflow-y:auto;}}


/* Keep the learning menu in the page layout so it cannot sit behind the content. */
@media(min-width:641px){
 body[data-app-mode="platform"] #learning-app{display:grid;grid-template-columns:258px minmax(0,1fr);align-items:start}
 body[data-app-mode="platform"] #learning-app>.sidebar{position:sticky;inset:auto;top:68px;z-index:2;width:100%;height:calc(100vh - 68px);height:calc(100dvh - 68px);display:flex;visibility:visible;transform:none;overflow-y:auto}
 body[data-app-mode="platform"] #learning-app>.content{margin-left:0;min-width:0}
}
@media(min-width:641px) and (max-width:900px){body[data-app-mode="platform"] #learning-app{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:640px){
 body[data-app-mode="platform"] #learning-app>.sidebar{display:block;position:relative;inset:auto;width:100%;height:auto;max-height:none;visibility:visible;transform:none}
 body[data-app-mode="platform"] #learning-app>.sidebar>.menu-label{display:block}
}
