@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');
:root{--bg:#f7f8f5;--paper:#fff;--ink:#202e2a;--muted:#66756e;--green:#17483f;--line:#dfe5df;--soft:#edf2ed;--red:#a13c36;--gold:#b77b34;font-family:'Noto Sans KR',-apple-system,BlinkMacSystemFont,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;line-height:1.65;font-size:15px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:var(--green);text-decoration:none}button{background:white;border:1px solid var(--line);border-radius:8px;padding:10px 16px;font-weight:500}button:hover:not(:disabled){border-color:#8da49a;background:#f4f7f3}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover:not(:disabled){background:#246254}button.danger{color:var(--red)}button.text{background:transparent;border-color:transparent;padding:6px 0}button.small{padding:6px 11px;font-size:13px}input,select,textarea{border:1px solid #cbd5cd;border-radius:7px;padding:10px;background:white;max-width:100%}input:focus,textarea:focus,select:focus{outline:2px solid #86aa98;outline-offset:2px}button:focus-visible,a:focus-visible{outline:3px solid #789d8a;outline-offset:3px}textarea{resize:vertical;width:100%;min-height:110px}label{font-weight:500;display:block}label>input,label>select{display:block;margin-top:7px;width:100%}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(29px,4vw,42px);line-height:1.4;letter-spacing:-1.7px;font-weight:700}h2{font-size:22px;letter-spacing:-.7px}h3{font-size:17px}p{margin-bottom:15px}.muted{color:var(--muted)}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:600;color:var(--green);margin-bottom:16px}.header{height:86px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.85);display:flex;align-items:center;gap:48px;padding:0 max(28px,calc((100vw - 1180px)/2))}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-weight:700;font-size:19px;white-space:nowrap}.brand-icon{font-family:Georgia,serif;font-size:30px;font-style:italic;letter-spacing:-3px;background:var(--green);color:white;border-radius:11px;width:36px;height:38px;text-align:center;line-height:35px;padding-right:4px}.header nav{display:flex;gap:24px}.header nav button{border:0;background:none;border-radius:0;padding:29px 0;font-size:14px;color:var(--muted)}.header nav button.active{color:var(--green);box-shadow:0 2px var(--green)}.header nav span{font-size:11px;margin-left:4px;background:var(--soft);border-radius:4px;padding:2px 5px}.header-label{margin-left:auto;color:#87928b;font-size:10px;letter-spacing:1.6px;white-space:nowrap}main{max-width:1180px;margin:auto;min-height:calc(100vh - 180px);padding:60px 28px 75px}.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:45px}.hero h1{margin-bottom:16px}.hero p{color:var(--muted);margin:0;max-width:600px}.date-mark{color:#829087;font-family:Georgia,serif;text-align:right;font-size:40px;font-style:italic;line-height:1.3}.date-mark small{font-size:11px;letter-spacing:2px;font-family:inherit;font-style:normal}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:30px 0 16px}.section-heading h2{font-size:15px;margin:0}.section-heading span{font-size:12px;color:var(--muted)}.courses{display:grid;grid-template-columns:1fr 1fr;gap:24px}.course-card{border:1px solid var(--line);border-radius:14px;background:white;padding:30px;position:relative}.course-card:before{content:'';position:absolute;top:-1px;left:29px;width:42px;height:3px;background:var(--green)}.course-card:nth-child(2):before{background:var(--gold)}.course-number{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;font-size:12px;color:var(--muted)}.tag{display:inline-block;padding:4px 9px;background:var(--soft);color:var(--green);border-radius:5px;font-size:11px}.course-card h2{font-size:25px;margin-bottom:9px}.course-card p{font-size:13px;color:var(--muted)}.stats{display:flex;gap:28px;margin:26px 0;padding:21px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.stats strong{font-size:23px;font-weight:600;display:block}.stats span{font-size:11px;color:var(--muted)}.actions{display:flex;gap:9px;flex-wrap:wrap}.actions button{flex:1;white-space:nowrap}.card-foot{font-size:11px;color:#7b8980;margin-top:14px}.notice{border-top:1px solid var(--line);padding:20px 0;font-size:12px;color:var(--muted);margin-top:30px}.tip-row{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:32px}.tip-row article{border-top:1px solid var(--line);padding-top:19px}.tip-row b{font-weight:500;font-size:13px}.tip-row p{font-size:12px;margin:9px 0 0;color:var(--muted)}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px}.pagehead h1{font-size:29px;margin-bottom:6px}.pagehead p{margin:0}.back{margin-bottom:22px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:28px}.study-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:30px;align-items:start}.chapter-list{background:white;border:1px solid var(--line);border-radius:10px;padding:8px;position:sticky;top:22px;max-height:80vh;overflow:auto}.chapter-list button{display:block;width:100%;text-align:left;border:0;background:transparent;font-size:13px;font-weight:400;padding:11px 10px}.chapter-list button.active{background:var(--soft);font-weight:600;color:var(--green)}.chapter-list small{display:block;color:#839087;font-size:10px}.prose{font-size:14px;line-height:1.95;overflow-wrap:anywhere}.prose h2{font-size:22px;margin-bottom:22px}.prose h3{margin-top:27px;border-top:1px solid var(--line);padding-top:20px}.prose ul{padding-left:21px}.prose li{margin-bottom:12px}.prose p{margin:13px 0}.prose strong{font-weight:700;color:#173f35}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{padding:11px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{background:var(--soft)}.filters{display:flex;gap:13px;align-items:end;flex-wrap:wrap;margin-bottom:24px}.filters label{flex:1;min-width:145px;font-size:12px}.filters>input{flex:2;min-width:200px}.summary-strip{display:flex;gap:20px;padding:15px 20px;border:1px solid var(--line);border-radius:8px;margin:15px 0 24px;background:white;font-size:13px}.quiz-shell{max-width:820px;margin:auto}.quiz-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);gap:15px;margin-bottom:15px}.progress{height:3px;background:#dfe6df;margin-bottom:30px;overflow:hidden;border-radius:2px}.progress i{display:block;height:100%;background:var(--green)}.question-label{display:flex;justify-content:space-between;gap:12px;margin-bottom:20px}.question-label .bookmark{padding:0;border:0;color:var(--muted);font-size:13px;background:none}.question-label .bookmark.saved{color:var(--gold)}.prompt{font-size:20px;line-height:1.7;letter-spacing:-.4px;white-space:pre-wrap;margin-bottom:27px}.choices{display:grid;gap:10px}.choice{display:flex;align-items:flex-start;gap:13px;padding:15px 18px;border:1px solid var(--line);border-radius:8px;font-size:14px;font-weight:400;cursor:pointer}.choice:hover{background:#f6f8f4}.choice input{position:absolute;opacity:0;width:1px;height:1px}.choice:focus-within{outline:3px solid #8caf9b;outline-offset:2px}.choice.selected{border-color:var(--green);background:#f0f6ef}.choice.correct{border-color:#488765;background:#f0f7ef}.choice.incorrect{border-color:#c87b74;background:#fff5f2}.choice-index{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;border:1px solid #ced9cf;border-radius:50%;font-size:11px}.feedback{border-top:1px solid var(--line);padding-top:24px;margin-top:27px;font-size:14px}.feedback h3{color:var(--green);margin-bottom:12px}.feedback .incorrect-title{color:var(--red)}.answer-line{white-space:pre-wrap}.sources{font-size:11px;color:var(--muted);margin-top:15px}.quiz-bottom{display:flex;justify-content:space-between;gap:10px;margin-top:22px;flex-wrap:wrap}.quiz-grid{display:flex;flex-wrap:wrap;gap:7px;margin-top:25px}.quiz-grid button{width:34px;height:32px;padding:0;font-size:11px;background:transparent}.quiz-grid button.done{background:#e9efe8}.quiz-grid button.current{border:2px solid var(--green)}.rubric{background:var(--soft);padding:15px;border-radius:8px;font-size:13px}.rubric label{display:flex;gap:9px;align-items:center;margin:7px 0;font-weight:400}.rubric input{display:inline;width:auto;margin:0}.self-buttons{display:flex;gap:10px;margin-top:15px}.result-score{font-size:55px;font-weight:700;letter-spacing:-2px;color:var(--green);line-height:1.2;margin:12px 0}.result-head{text-align:center;padding:30px 0}.result-head p{margin-bottom:20px}.result-row{border-top:1px solid var(--line);padding:20px 0}.result-row h3{font-size:15px;margin-bottom:10px}.result-row p{font-size:13px;white-space:pre-wrap}.result-row details{margin-top:10px;font-size:13px}.result-row summary{cursor:pointer;color:var(--green)}.bad{color:var(--red)}.good{color:var(--green)}.manager-list{display:grid;gap:10px}.manager-row{border:1px solid var(--line);background:white;padding:18px 20px;border-radius:9px;display:flex;justify-content:space-between;gap:20px;align-items:center}.manager-row p{margin:6px 0 0;font-size:14px}.manager-row small{font-size:11px;color:var(--muted)}.manager-row button{flex-shrink:0}.empty{text-align:center;padding:55px 20px;background:white;border:1px dashed #cad5cb;border-radius:12px}.empty h2{font-size:19px}.empty p{color:var(--muted);font-size:13px}.field{margin:16px 0}.field label{font-size:13px;margin-bottom:6px}.field input,.field select{width:100%}.field small{color:var(--muted);font-size:11px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:24px}.error{color:var(--red);font-size:13px;white-space:pre-wrap}.info{font-size:12px;padding:13px 16px;background:var(--soft);border-radius:7px;margin-bottom:20px}.loading{padding:60px;text-align:center;color:var(--muted)}footer{max-width:1124px;margin:auto;border-top:1px solid var(--line);padding:22px 0 30px;display:flex;justify-content:space-between;color:#7b8880;font-size:11px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 20px;background:var(--ink);color:white;border-radius:9px;font-size:13px;z-index:100;display:none;max-width:90vw}#toast.show{display:block}dialog{border:1px solid var(--line);border-radius:14px;width:min(760px,calc(100vw - 30px));max-height:90vh;padding:28px;color:var(--ink)}dialog::backdrop{background:#14281e66;backdrop-filter:blur(3px)}dialog h2{font-size:23px}.skip{position:fixed;left:10px;top:-100px;z-index:1000;background:white;padding:10px}.skip:focus{top:10px}
@media(max-width:800px){.header{padding:0 20px;gap:28px;height:75px}.header-label{display:none}.header nav{gap:18px}.header nav button{padding:24px 0;font-size:12px}main{padding:35px 20px 60px}.courses{gap:16px}.course-card{padding:23px}.date-mark{display:none}.study-layout{grid-template-columns:1fr}.chapter-list{position:static;max-height:225px}.tip-row{gap:20px}footer{margin:0 20px}.prompt{font-size:18px}.pagehead{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.courses{grid-template-columns:1fr}.hero{margin-bottom:29px}.hero h1{font-size:31px}.hero p{font-size:13px}.tip-row{grid-template-columns:1fr;gap:5px}.header{gap:20px;padding:0 16px}.brand{font-size:16px;gap:8px}.brand-icon{width:30px;height:33px;line-height:29px;font-size:27px}.header nav{gap:14px}.header nav button{font-size:11px}.stats{gap:35px}.course-number{margin-bottom:24px}.panel{padding:20px}.form-grid{grid-template-columns:1fr}.manager-row{padding:15px;gap:10px}.manager-row p{font-size:13px}.summary-strip{flex-wrap:wrap;gap:10px}.quiz-bottom button{font-size:12px;padding:10px 12px}footer{gap:12px;flex-direction:column}.choice{padding:13px}.prompt{font-size:17px}.filters label{min-width:120px}.filters{gap:10px}}
main:focus{outline:none}
.chapter-details>summary{cursor:pointer;font-size:12px;color:var(--green);padding:10px 0;user-select:none}.chapter-details[open]>summary{margin-bottom:7px}
.profile-bar{margin-left:auto;display:flex;align-items:center;gap:10px;flex-shrink:0}.sync-status{font-size:10px;color:#7b8d81}.sync-status.sync-error{color:#a26432}.profile-switch{display:flex;gap:8px;align-items:center;padding:6px 9px;background:transparent;font-size:12px;border-color:transparent}.profile-chevron{font-size:16px;color:var(--muted)}.profile-avatar{position:relative;width:128px;height:128px;border-radius:22px;display:block;overflow:hidden;background:linear-gradient(145deg,#427e69,#17483f);box-shadow:inset 0 1px 0 #ffffff33,0 8px 30px #00000015}.profile-avatar .eye{position:absolute;background:#fff;width:11px;height:11px;border-radius:50%;top:42%;}.profile-avatar .eye-left{left:25%}.profile-avatar .eye-right{right:25%}.profile-avatar .smile{position:absolute;border:5px solid white;border-top:0;border-left-color:transparent;border-right-color:transparent;border-radius:0 0 70% 70%;width:57%;height:26%;top:46%;left:21.5%;transform:rotate(-6deg)}.avatar-blue{background:linear-gradient(140deg,#5f9bd0,#316591)}.avatar-coral{background:linear-gradient(140deg,#ec9885,#bd5d54)}.avatar-violet{background:linear-gradient(140deg,#ae97d1,#775b9d)}.avatar-amber{background:linear-gradient(140deg,#ddb774,#a27b3d)}.avatar-teal{background:linear-gradient(140deg,#70b3b6,#397984)}.avatar-rose{background:linear-gradient(140deg,#cf98af,#9c5979)}.avatar-slate{background:linear-gradient(140deg,#9da7b4,#586473)}.profile-avatar.mini{width:28px;height:28px;border-radius:7px;box-shadow:none}.profile-avatar.mini .eye{width:3px;height:3px}.profile-avatar.mini .smile{border-width:2px}.choosing-profile{background:#111c19;color:#f2f4ef;min-height:100vh;background-image:radial-gradient(ellipse at 50% 0%,#2e4d3e55,transparent 65%)}.choosing-profile .header{border-color:#ffffff12;background:transparent}.choosing-profile .brand{color:#f2f4ef}.choosing-profile .brand-icon{background:#e1e9db;color:#1e4031}.choosing-profile .header nav,.choosing-profile .profile-bar,.choosing-profile footer{display:none}.choosing-profile main{max-width:1280px;padding-top:65px;min-height:calc(100vh - 86px)}.choosing-profile dialog{color:var(--ink)}.choosing-profile .empty{color:var(--ink)}.profile-picker{text-align:center;padding:40px 0 80px}.profile-picker .eyebrow{color:#9ab49d;font-size:10px;letter-spacing:3px}.profile-picker h1{font-size:clamp(28px,4vw,43px);letter-spacing:-1.6px;font-weight:500;margin:20px 0 15px}.profile-intro{color:#9aa9a0;font-size:13px}.profile-grid{display:flex;flex-wrap:wrap;gap:32px;justify-content:center;margin:52px auto 40px;max-width:900px}.profile-tile{background:transparent!important;border:0!important;display:flex;flex-direction:column;align-items:center;padding:0;gap:16px;width:140px;color:#b2c0b6;font-weight:400;transition:transform .15s}.profile-tile:hover{transform:translateY(-4px);color:white}.profile-tile:hover .profile-avatar,.profile-tile:focus-visible .profile-avatar{outline:3px solid #e2ecd9;outline-offset:4px}.profile-name{font-size:16px;max-width:140px;overflow-wrap:anywhere}.profile-portrait{position:relative;display:block}.edit-overlay{position:absolute;inset:0;background:#0005;display:grid;place-items:center;color:white;font-size:16px;border-radius:22px}.profile-add-icon{width:128px;height:128px;border:1px dashed #ffffff40;border-radius:22px;background:#ffffff06;display:grid;place-items:center;font-size:65px;font-weight:200;color:#c1d0be;line-height:1}.profile-manage{background:transparent;color:#bacabd;border:1px solid #718375;padding:10px 28px;font-size:13px;border-radius:5px}.profile-manage:hover:not(:disabled){background:#ffffff0a;color:white;border-color:white}.profile-caption{color:#6f8577;font-size:11px;max-width:470px;margin:38px auto 0;line-height:1.8}.avatar-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:25px 0}.avatar-choice{padding:6px;border:2px solid transparent;background:transparent}.avatar-choice .profile-avatar{width:76px;height:76px;border-radius:15px;margin:auto}.avatar-choice.selected{border-color:var(--green);background:var(--soft)}.avatar-choice .profile-avatar .eye{width:7px;height:7px}.avatar-choice .profile-avatar .smile{border-width:4px}.home-greeting{display:flex;justify-content:space-between;align-items:center;margin-top:-10px;margin-bottom:18px;font-size:12px;color:var(--muted)}.course-create-card{border:1px dashed #c9d6c9;border-radius:14px;background:#f0f3ed;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:180px;padding:30px}.new-course-plus{font-size:35px;font-weight:300;color:#78907b;line-height:1}.course-create-card strong{font-size:17px;font-weight:500}.course-create-card>span:last-child{font-size:12px;color:var(--muted)}.library-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin:0 0 24px}.library-tabs button{background:transparent;border:0;border-radius:0;padding:10px 0;color:var(--muted)}.library-tabs button.active{box-shadow:0 2px var(--green);color:var(--green);font-weight:600}.library-courses{display:grid;gap:22px;margin:26px 0}.library-course .section-heading{margin:0 0 10px;align-items:flex-start}.library-course .eyebrow{display:block;font-size:10px;letter-spacing:1px;margin-bottom:6px}.library-course .section-heading h2{font-size:23px}.library-course p.muted{font-size:12px}.library-course-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}.summary-rows{border-top:1px solid var(--line)}.summary-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid #edf0eb}.summary-row strong{display:block;font-size:13px;font-weight:500}.summary-row small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.row-actions{display:flex;gap:12px;align-items:center;flex-shrink:0}.upload-zone{background:#f4f7f1;border:1px dashed #b9cbb9;border-radius:9px;padding:18px;margin:20px 0}.upload-zone label{font-size:13px}.upload-zone input{background:white;margin-top:10px}.upload-zone small{display:block;font-size:11px;color:var(--muted);margin-top:9px}.markdown-editor,.json-editor{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.8;font-size:13px;min-height:260px}.markdown-preview{border:1px solid var(--line);border-radius:8px;padding:20px;margin-top:18px;max-height:360px;overflow:auto;background:#fbfcf9}.info p:last-child{margin-bottom:0}.info strong{font-size:15px}.info{margin-top:16px}.library-course .row-actions .small{font-size:11px}.prose pre{overflow:auto;padding:14px;background:var(--soft);border-radius:7px;font-size:12px}.prose blockquote{margin-left:0;padding-left:16px;border-left:3px solid #b5cbb6;color:var(--muted)}
@media(max-width:900px){.header{gap:25px}.header nav{gap:18px}.sync-status{display:none}.profile-switch{max-width:130px}.profile-switch>span:nth-child(2){max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:600px){.header{padding:0 15px;gap:15px;flex-wrap:wrap;height:auto;min-height:74px;row-gap:0}.header .brand{font-size:16px}.header nav{order:3;width:100%;justify-content:center;gap:34px;border-top:1px solid #edf0eb}.header nav button{padding:9px 0;font-size:12px}.profile-bar{margin-left:auto}.profile-switch{padding:5px}.choosing-profile .header{min-height:74px}.choosing-profile main{padding:28px 18px}.profile-picker{padding-top:30px}.profile-grid{gap:28px 18px;margin-top:38px}.profile-tile{width:118px;gap:12px}.profile-avatar,.profile-add-icon{width:108px;height:108px;border-radius:18px}.profile-name{font-size:14px}.profile-picker h1{font-size:28px}.profile-intro{font-size:12px}.avatar-choices{gap:6px}.avatar-choice .profile-avatar{width:57px;height:57px}.home-greeting{align-items:flex-start;gap:14px}.home-greeting span{padding-top:5px}.summary-row{align-items:flex-start;flex-direction:column;gap:8px}.summary-row .row-actions{align-self:flex-end}.library-course-actions{gap:7px}.library-course-actions button{flex:1;white-space:nowrap}.library-course .section-heading h2{font-size:21px}.profile-caption{padding:0 12px}.form-actions{justify-content:flex-start}.profile-switch .profile-avatar.mini{width:27px;height:27px}.profile-avatar.mini{width:28px;height:28px}}
@media print{.header,footer,.back,.chapter-list,.pagehead button,.quiz-bottom,#toast{display:none}main{padding:0;max-width:none}.study-layout{display:block}.panel{border:0;padding:0}.prose{font-size:11pt}body{background:white}}
