@charset "UTF-8";
:root{--bg:#f5f7f7;--paper:#fff;--ink:#233c48;--muted:#657982;--line:#dee7e8;--blue:#345e83;--teal:#28766f;--pale:#eaf3f1;--danger:#a4413c;--radius:20px;--shadow:0 10px 35px #23414a06;font-family:Inter,"Pretendard","Noto Sans KR",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;line-height:1.65}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #5b9dc0;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:clamp(1.7rem,3.4vw,2.65rem);letter-spacing:-.055em;line-height:1.35;word-break:keep-all}h2{font-size:1.2rem;line-height:1.5;letter-spacing:-.04em}h3{font-size:1.1rem;letter-spacing:-.03em}p{overflow-wrap:anywhere}input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{width:100%;min-width:0;border:1px solid #d6e0e2;border-radius:11px;background:#fbfcfc;padding:11px 12px;color:var(--ink);font-size:16px;line-height:1.5;min-height:46px}select{padding-right:26px}textarea{resize:vertical;max-width:100%}input::placeholder,textarea::placeholder{color:#84949a}input[type=checkbox],input[type=radio]{accent-color:var(--teal);width:20px;height:20px;flex:none}input[type=range]{accent-color:var(--teal);width:100%;min-height:36px;margin:8px 0 0;cursor:pointer}input[type=file]{font-size:14px!important}input[type=file]::file-selector-button{border:0;border-radius:7px;background:#e9f1f2;padding:8px 12px;margin-right:12px;color:var(--blue);font:inherit}fieldset{border:0;padding:0;margin:0;min-width:0}img{max-width:100%}[hidden]{display:none!important}.small,small{font-size:.82rem}.muted{color:var(--muted)}.danger{color:var(--danger)!important}.full{width:100%}.stack{display:grid;gap:18px}.eyebrow{color:var(--teal);font-size:.69rem;font-weight:750;letter-spacing:.15em;line-height:1.6;margin-bottom:10px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:11px;min-height:44px;padding:10px 17px;color:var(--ink);font-weight:650;font-size:.9rem;text-decoration:none;line-height:1.4}.button:hover:not(:disabled){background:#edf4f4;border-color:#bdd1d4}.button.primary{background:var(--teal);border-color:var(--teal);color:#fff}.button.primary:hover:not(:disabled){background:#1e625c}.button.secondary{background:#f5f8f9}.text-button{border:0;background:transparent;color:var(--blue);font-size:.84rem;font-weight:650;min-height:44px;padding:8px 4px;text-align:left;line-height:1.4}.text-button:hover{text-decoration:underline}.icon-button{width:40px;height:40px;border:1px solid var(--line);background:#fff;border-radius:10px;font-size:1.35rem;color:var(--ink);flex-shrink:0}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.field{display:grid;gap:6px;min-width:0}.field-label{font-size:.81rem;font-weight:650;color:#49606a}.field small{font-weight:400;line-height:1.6}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check-field{display:flex;align-items:center;gap:10px;min-height:44px;font-size:.9rem}.notice{background:#eef4f7;border:1px solid #dfe9ef;color:#47677d;border-radius:12px;padding:14px 17px;font-size:.86rem;line-height:1.8;margin-bottom:20px}.notice p{margin:7px 0 12px}.notice .button{margin:4px}.warning{background:#fff5e9;color:#805b2c;border-color:#ead8bc}.empty-state{text-align:center;padding:38px 20px;color:var(--muted)}.empty-state h3{color:var(--ink);margin:10px 0 6px}.empty-state p{font-size:.86rem;max-width:420px;margin:auto}.empty-symbol{font-size:2rem;color:#88a9a7}.loading{padding:100px 20px;text-align:center;color:var(--muted)}.skip-link{position:fixed;top:-100px;left:15px;z-index:100;background:white;padding:10px}.skip-link:focus{top:10px}.site-header{border-bottom:1px solid var(--line);background:#ffffffeb}.header-inner{max-width:1260px;margin:auto;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 36px}.brand{border:0;background:transparent;padding:5px 0;display:flex;gap:8px;align-items:center;font-size:1rem;font-weight:800;letter-spacing:-.045em;color:var(--ink);white-space:nowrap;min-height:44px}.brand-dot{width:7px;height:7px;border-radius:50%;background:#58a69a;display:inline-block}.header-nav{display:flex;align-items:center;gap:6px}.nav-link{background:transparent;border:0;padding:10px 12px;min-height:44px;color:var(--muted);font-size:.85rem;white-space:nowrap}.nav-link:hover{color:var(--teal);background:var(--pale);border-radius:9px}main{max-width:1260px;margin:0 auto;padding:32px 36px 70px;min-height:calc(100vh - 77px)}.hero{position:relative;padding:38px 0 42px;border-bottom:1px solid var(--line);margin-bottom:32px}.hero h1{max-width:650px}.intro-copy{color:var(--muted);font-size:1rem;line-height:1.9;margin-top:18px;white-space:pre-line}.exam-tag{display:inline-flex;border:1px solid #d6e4e3;background:#f0f6f4;padding:8px 13px;border-radius:7px;font-size:.8rem;color:#52766d;margin-top:24px}.section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.section-heading h2{font-size:1.05rem}.subject-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.subject-card{text-align:left;display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:24px;min-width:0;min-height:260px;box-shadow:var(--shadow);color:var(--ink);transition:transform .2s,border-color .2s}.subject-card:hover{transform:translateY(-3px);border-color:#a4c3c5}.card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.subject-symbol{width:44px;height:44px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:#eaf1f6;color:#557994;font-size:1.2rem;font-weight:650}.card-index{color:#91a4ac;font-size:.72rem;letter-spacing:.06em}.subject-card h3{font-size:1.15rem;margin-bottom:9px}.scope{white-space:pre-wrap;font-size:.88rem;line-height:1.9;color:var(--muted);overflow-wrap:anywhere}.subject-card .scope{flex:1}.card-footer{border-top:1px solid #edf1f2;display:flex;justify-content:space-between;padding-top:14px;margin-top:20px;color:var(--teal);font-size:.78rem}.subject-ethics .subject-symbol,.subject-hanja .subject-symbol{background:#f3eee4;color:#91805c}.subject-math .subject-symbol,.subject-social .subject-symbol{background:#e9f3ef;color:#4f8274}.subject-science .subject-symbol{background:#edf0f9;color:#727c9e}.subject-english .subject-symbol{background:#f8eeea;color:#ac7f68}.home-note{border-left:3px solid #b5ceca;padding:10px 20px;margin:34px 0;font-size:.88rem}.home-note p{margin-top:6px;color:var(--muted)}.site-footer{font-size:.7rem;letter-spacing:.04em;color:#8a9a9f;margin-top:42px}.panel{border:1px solid var(--line);background:var(--paper);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);min-width:0}.panel>h2{margin-bottom:18px}.panel>p:not(.eyebrow){margin-bottom:18px}.login-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:70px;align-items:center;max-width:1040px;margin:64px auto}.login-intro h1{font-size:clamp(2rem,4vw,3rem);max-width:560px}.login-grid>.panel{padding:34px}.login-grid .small{margin-top:20px;margin-bottom:0}.form-status{font-size:.85rem;color:var(--danger);white-space:pre-wrap;min-height:0}.form-status:empty{display:none}.subject-heading{margin-bottom:25px}.subject-heading>.text-button{margin-bottom:10px}.subject-heading .eyebrow{margin-bottom:5px}.subject-heading h1{font-size:2rem}.heading-row{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.subject-heading .scope{max-width:900px}.study-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,1fr);gap:24px;align-items:start}.reader-column,.study-sidebar,.admin-detail{min-width:0;display:grid;gap:20px}.page-navigation{border:1px solid var(--line);border-radius:16px;padding:16px 20px;background:#fff}.page-nav-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.page-current{text-align:center;display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}.jump-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.jump-form{display:flex;min-width:0;gap:6px}.jump-form input{min-width:0}.jump-form .button{flex-shrink:0;padding:10px 12px}.scan-viewer{border:1px solid var(--line);border-radius:16px;overflow:hidden;min-width:0;background:#e9eeee}.viewer-toolbar{display:flex;justify-content:space-between;gap:8px;align-items:center;background:#fff;padding:10px 14px;border-bottom:1px solid var(--line)}.viewer-label{font-size:.84rem;font-weight:650;min-width:0;overflow-wrap:anywhere}.zoom-tools{display:flex;gap:5px;align-items:center;flex-shrink:0}.zoom-value{font-size:.75rem;min-width:40px;text-align:center;color:var(--muted)}.scan-viewport{overflow:auto;max-height:85vh;min-height:160px;width:100%;overscroll-behavior:auto;-webkit-overflow-scrolling:touch;position:relative;background:repeating-linear-gradient(45deg,#e9eeee,#e9eeee 12px,#e6ecec 12px,#e6ecec 24px)}.scan-image{display:block;width:100%;max-width:none;height:auto;margin:0;background:white;user-select:none}.viewer-hint{font-size:.67rem;color:var(--muted);text-align:center;padding:9px 10px;background:#f7fafa}.save-status{font-size:.76rem;color:var(--teal);background:#eef6f2;border-radius:8px;padding:9px 11px;margin-bottom:15px}.save-status.warning{color:#805b2c;background:#fff5e9}.question-item{padding:17px 0;border-top:1px solid #edf1f2}.question-heading{display:flex;justify-content:space-between;gap:8px;margin-bottom:12px;font-size:.9rem}.answer-choices,.key-editor{display:flex;flex-wrap:wrap;gap:8px}.choice{position:relative;cursor:pointer;display:inline-flex}.choice input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.choice span{min-width:42px;min-height:44px;display:flex;align-items:center;justify-content:center;border:1px solid #dbe4e5;border-radius:10px;background:#f8fafb;color:#536b78;font-weight:600}.choice input:checked+span{background:var(--teal);border-color:var(--teal);color:#fff;box-shadow:0 0 0 2px #d8ece7}.choice input:focus-visible+span{outline:3px solid #5b9dc0;outline-offset:3px}.choice input:disabled+span{opacity:.5}.question-fields{margin-bottom:14px}.score{font-size:1.4rem;color:var(--teal);background:#eff7f3;padding:18px;border-radius:12px;margin-top:20px;font-weight:750}.result-row{display:flex;justify-content:space-between;gap:8px;align-items:center;border-bottom:1px solid var(--line);padding:10px 0;font-size:.84rem}.correct{color:var(--teal)}.incorrect{color:#a5673c}.chat-messages{display:flex;flex-direction:column;gap:14px;max-height:470px;overflow:auto;margin:15px 0;scroll-behavior:smooth}.chat-empty{text-align:center;font-size:.85rem;color:#82959b;padding:22px 0;white-space:pre-line}.chat-message{border-radius:13px;padding:13px 15px;background:#f2f6f7;max-width:95%;font-size:.88rem}.chat-message.user{background:#eaf3ef;align-self:flex-end}.chat-role{display:block;font-size:.69rem;color:var(--teal);margin-bottom:6px}.chat-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}.chat-form{display:grid;gap:10px;margin-top:14px}.chat-form button{justify-self:end}.tabs{display:flex;gap:5px;margin-bottom:20px;border-bottom:1px solid var(--line)}.tab{border:0;background:transparent;padding:14px 22px;color:var(--muted);font-weight:650;min-height:48px;border-bottom:3px solid transparent}.tab.active{color:var(--teal);border-bottom-color:var(--teal)}.upload-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,1fr) auto;gap:20px;align-items:end}.upload-form>.button{margin-bottom:1px}.upload-form .field small{font-size:.7rem}.upload-results{display:grid;gap:8px;margin-top:16px;max-height:320px;overflow:auto}.upload-row{display:flex;justify-content:space-between;gap:14px;padding:10px 12px;font-size:.8rem;background:#f6f8f8;border-radius:9px;overflow-wrap:anywhere}.upload-row>span{min-width:0}.upload-row.saved{background:#eef7f1;color:var(--teal)}.upload-row.failed{background:#fff0ea;color:#954b38}.admin-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start;margin:24px 0}.page-list{max-height:650px;overflow:auto}.page-list-item{width:100%;border:1px solid transparent;border-radius:10px;background:transparent;display:flex;text-align:left;align-items:center;gap:13px;padding:13px 10px;color:var(--ink)}.page-list-item.selected{background:#eaf4f0;border-color:#c3ddd5}.page-list-item:hover{background:#f0f5f5}.page-list-item>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.page-list-item strong{display:block;font-size:.9rem}.page-list-item small{display:block;font-size:.72rem;margin-top:2px}.page-position{color:#8da0a7;font-size:.75rem;min-width:20px}.batch-tools{background:#f5f8f8;padding:16px;border-radius:12px;display:grid;gap:12px;margin-bottom:20px}.question-editor-list{display:grid;gap:16px}.question-edit-card{border:1px solid var(--line);border-radius:13px;padding:18px;display:grid;gap:12px}.question-edit-heading{display:flex;align-items:center;justify-content:space-between;font-size:.9rem}.key-editor{margin-bottom:4px}.editor-fields{margin-bottom:20px}.job-row{display:flex;flex-wrap:wrap;gap:10px 20px;align-items:center;border-top:1px solid var(--line);padding:12px 0;font-size:.82rem}.job-row p{flex-basis:100%}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);width:max-content;max-width:min(90vw,620px);padding:14px 20px;color:white;background:#294c49;box-shadow:0 10px 40px #172d3430;border-radius:13px;z-index:1000;font-size:.87rem;white-space:pre-wrap;overflow-wrap:anywhere}.toast.error{background:#7d463c}.answer-dialog{border:1px solid var(--line);border-radius:20px;padding:20px;width:min(960px,94vw);max-height:92vh;overflow:auto;color:var(--ink);background:var(--bg)}.answer-dialog::backdrop{background:#153e4b88}.dialog-heading{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:16px}.answer-dialog .scan-viewport{max-height:72vh}.dialog-fallback{position:fixed;inset:4vh 3vw;z-index:50;margin:0;width:94vw}
.subject-title{border:0;background:transparent;color:var(--ink);font:inherit;font-weight:750;padding:0;min-height:36px;text-align:left}.subject-title:hover{color:var(--teal)}.scope-disclosure{min-width:0;flex:1}.scope-disclosure summary{font-size:.8rem;color:var(--muted);cursor:pointer;min-height:40px;padding:8px 0}.scope-disclosure .scope{margin-top:8px;font-size:.8rem}.subject-card .card-footer{align-items:center;padding-top:9px}.subject-card .card-footer .text-button{font-size:.78rem}.scope-notice{margin-top:10px;padding:9px 11px;background:#fbf2e5;color:#88693c;border-radius:9px;font-size:.76rem;line-height:1.7}.subject-heading>.scope-notice{margin-top:14px}.subject-card .scope-notice{grid-column:1/-1}.subject-card .scope-disclosure{grid-column:2}.subject-grid{align-items:start}
@media(max-width:1000px){.header-inner{padding:12px 26px}main{padding:28px 26px 60px}.subject-grid{grid-template-columns:repeat(2,1fr)}.study-layout{grid-template-columns:1fr}.study-sidebar{grid-template-columns:1fr 1fr;align-items:start}.study-sidebar>.panel:only-child{grid-column:1/-1}.scan-viewport{max-height:75vh}.admin-layout{grid-template-columns:220px minmax(0,1fr);gap:18px}.admin-layout>.panel{padding:18px}.upload-form{grid-template-columns:1fr 1fr}.upload-form>.button{grid-column:1/-1;justify-self:start}.login-grid{gap:30px;margin:40px auto}.login-grid>.panel{padding:25px}.login-intro h1{font-size:2.2rem}}
@media(max-width:650px){.header-inner{padding:10px 16px;min-height:66px;gap:8px}.brand{font-size:.87rem;gap:6px}.header-nav{gap:0}.nav-link{font-size:.73rem;padding:8px 7px}.header-nav .nav-link:first-child{display:none}main{padding:20px 16px 48px}.hero{padding:22px 0 28px;margin-bottom:26px}.hero h1{font-size:1.7rem;max-width:330px;line-height:1.45}.hero .intro-copy{font-size:.88rem;margin-top:14px}.eyebrow{font-size:.64rem}.exam-tag{font-size:.73rem;margin-top:19px}.section-heading{gap:8px;margin-bottom:14px}.section-heading h2{font-size:.94rem}.section-heading>.small{font-size:.61rem;white-space:nowrap}.subject-grid{grid-template-columns:1fr;gap:13px}.subject-card{padding:20px;min-height:0;display:grid;grid-template-columns:42px 1fr;column-gap:16px;row-gap:8px}.card-top{grid-column:1;grid-row:1/3;display:block;margin:0}.subject-symbol{width:42px;height:42px;border-radius:12px}.card-index{display:none}.subject-card h3{margin:0;font-size:1.12rem;align-self:center}.subject-card .scope{grid-column:2;font-size:.81rem;line-height:1.85}.card-footer{grid-column:2;margin-top:8px;padding-top:10px;font-size:.74rem}.home-note{margin:26px 0;padding:6px 15px;font-size:.82rem}.site-footer{font-size:.63rem;overflow-wrap:anywhere}.login-grid{grid-template-columns:1fr;gap:30px;margin:22px auto;max-width:440px}.login-intro h1{font-size:1.85rem;max-width:340px}.login-intro .intro-copy{font-size:.92rem;margin-top:14px}.login-grid>.panel{padding:24px 20px}.panel{padding:20px 17px;border-radius:16px}.panel>h2{font-size:1.1rem;margin-bottom:16px}.subject-heading{margin-bottom:20px}.subject-heading h1{font-size:1.8rem}.heading-row{margin-bottom:12px}.subject-heading .scope{font-size:.82rem}.study-layout{gap:20px}.study-sidebar{grid-template-columns:1fr;gap:20px}.page-navigation{padding:14px 12px;border-radius:14px}.page-nav-row .button{padding:10px 12px;font-size:.82rem}.page-current strong{font-size:.9rem}.jump-row{grid-template-columns:1fr;gap:9px;margin-top:10px}.jump-row select,.jump-row input{font-size:14px!important}.viewer-toolbar{padding:8px 10px}.zoom-tools{gap:3px}.zoom-tools .icon-button{width:35px;height:38px}.zoom-tools .text-button{font-size:.74rem}.viewer-label{font-size:.78rem}.zoom-value{font-size:.68rem;min-width:36px}.scan-viewport{max-height:75vh;min-height:120px}.viewer-hint{font-size:.62rem;line-height:1.7;padding:8px}.admin-layout{grid-template-columns:1fr;gap:20px;margin-top:20px}.page-list{max-height:245px}.upload-form{grid-template-columns:1fr;gap:16px}.upload-form>.button{width:100%}.upload-row{flex-direction:column;gap:3px}.tabs{margin-bottom:16px}.tab{padding:12px 20px;font-size:.87rem}.notice{font-size:.79rem;padding:13px 14px}.form-grid{gap:10px}.form-grid input,.form-grid select{font-size:14px!important;padding:10px!important}.question-edit-card{padding:14px}.batch-tools{padding:13px}.field-label{font-size:.77rem}.answer-dialog{padding:12px;border-radius:14px;width:96vw;max-height:94vh}.dialog-heading h2{font-size:1rem}.dialog-heading .button{font-size:.8rem;padding:10px 12px}.toast{bottom:16px;max-width:calc(100vw - 24px);font-size:.8rem}.chat-messages{max-height:430px}.question-heading{font-size:.87rem}.scope-notice{font-size:.78rem}}
.study-modes{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.study-modes .button{font-size:.8rem;flex:1 1 auto}.reader-column,.practice-panel,.chat-panel{scroll-margin-top:82px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
