@import "https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css";:root{--bg:#fafaf9;--surface:#fff;--surface-2:#f7f7f5;--ink:#202020;--ink-soft:#686868;--ink-faint:#9a9a97;--line:#00000014;--line-strong:#00000024;--brand:#ea002c;--brand-dark:#c90026;--brand-soft:#fff1f2;--hl:#ffe4e6;--hl-edge:#fda4af;--ok:#15a34a;--ok-soft:#e6f7ec;--radius:16px;--radius-sm:11px;--shadow-sm:0 1px 2px #0000000a;--shadow:0 1px 2px #0000000a, 0 18px 40px #0000000f;font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,Apple SD Gothic Neo,Noto Sans KR,system-ui,sans-serif}*{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;font-feature-settings:"blwf" 1, "cv09" 1, "cv03" 1, "cv04" 1, "cv11" 1;font-optical-sizing:auto;line-height:1.6}button{cursor:pointer;font-family:inherit}.app-shell{min-height:100vh}.site-header{z-index:60;-webkit-backdrop-filter:blur(18px)saturate(160%);backdrop-filter:blur(18px)saturate(160%);background:#fafaf9db;height:68px;position:sticky;top:0}.site-nav{grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;width:min(1200px,100vw - 48px);height:68px;margin:0 auto;display:grid}.brand-mark{color:var(--ink);white-space:nowrap;justify-self:start;align-items:center;gap:6px;font-size:17px;font-weight:700;line-height:1;text-decoration:none;display:inline-flex}.brand-mark img{width:auto;height:20px}.site-tabs{white-space:nowrap;align-items:center;gap:34px;font-size:16px;font-weight:400;line-height:1.7;display:flex}.site-tabs a{color:var(--ink);text-decoration:none;transition:color .2s}.site-tabs a:hover,.site-tabs a.active{color:var(--brand)}.site-account{justify-self:end;align-items:center;font-size:14px;font-weight:600;display:flex}.account-menu{position:relative}.account-button{border:1px solid var(--line);background:var(--surface);min-height:34px;color:var(--ink);font:inherit;border-radius:10px;justify-content:center;align-items:center;padding:7px 13px;text-decoration:none;transition:background .2s;display:inline-flex}.account-button:hover{background:var(--bg)}.account-dropdown{z-index:70;visibility:hidden;opacity:0;min-width:144px;padding-top:8px;transition:all .15s;position:absolute;top:100%;right:0;transform:translateY(-4px)}.account-dropdown.open{visibility:visible;opacity:1;transform:translateY(0)}.account-dropdown-panel{background:var(--surface);border:1px solid #0000001a;border-radius:12px;padding:4px;box-shadow:0 14px 32px #00000024}.account-dropdown button,.account-dropdown a{width:100%;color:var(--ink-soft);font:inherit;text-align:left;background:0 0;border:0;border-radius:8px;padding:8px 12px;text-decoration:none;display:block}.account-dropdown button:hover{background:#0000000a}.account-dropdown a{color:var(--brand)}.account-dropdown a:hover{background:var(--brand-soft)}.tutor{gap:20px;width:min(880px,100vw - 48px);margin:0 auto;padding:40px 0 72px;display:grid}.intro h1{letter-spacing:-.02em;margin:0 0 6px;font-size:30px;font-weight:800}.intro p{color:var(--ink-soft);margin:0}.intro .usage{color:var(--ink-faint);margin-top:8px;font-size:14px}.card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);padding:24px}.card-head{margin-bottom:16px}.card-head h2{margin:0 0 4px;font-size:20px}.card-head p{color:var(--ink-soft);margin:0;font-size:14px}.login-card,.dropzone{text-align:center;justify-items:center;gap:8px;display:grid}.login-card p,.dropzone p{color:var(--ink-soft);margin:0}.dropzone{border:1.5px dashed var(--line-strong);box-shadow:none;padding:48px 24px}.dropzone strong{font-size:18px}.dropzone .hint{color:var(--ink-faint);font-size:13px}.dropzone.busy{border-style:solid}.actions{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.actions.end{justify-content:flex-end;margin-top:20px}.button{border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);min-height:42px;color:var(--ink);justify-content:center;align-items:center;padding:9px 18px;font-size:15px;font-weight:600;text-decoration:none;transition:background .15s;display:inline-flex}.button:hover{background:var(--surface-2)}.button.primary{border-color:var(--brand);background:var(--brand);color:#fff}.button.primary:hover{background:var(--brand-dark)}.button:disabled{opacity:.45;cursor:not-allowed}.error{border-radius:var(--radius-sm);background:var(--brand-soft);color:var(--brand-dark);padding:12px 16px;font-size:14px}.notice{border-radius:var(--radius-sm);background:var(--surface-2);padding:16px 18px}.notice p{color:var(--ink-soft);margin:4px 0 0}.notice.small{margin-bottom:12px;font-size:14px}.preview{border:1px solid var(--line);border-radius:var(--radius-sm);object-fit:contain;background:var(--surface-2);max-width:100%;max-height:360px}.status{align-items:center;gap:10px;font-weight:600;display:inline-flex}.spinner{border:2px solid var(--hl);border-top-color:var(--brand);border-radius:50%;width:16px;height:16px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.confirm.with-preview{grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:start;gap:20px;display:grid}.confirm .preview{width:100%;position:sticky;top:88px}.fields{gap:12px;display:grid}.field{gap:4px;font-size:14px;font-weight:600;display:grid}.field textarea{border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);width:100%;color:var(--ink);font:inherit;resize:vertical;padding:10px 12px;font-weight:400;line-height:1.55}.field textarea:focus{outline:2px solid var(--hl-edge);outline-offset:0}.progress{border-radius:var(--radius-sm);background:var(--surface-2);color:var(--ink-faint);flex-wrap:wrap;gap:8px 22px;margin:20px 0 0;padding:14px 16px;font-weight:600;list-style:none;display:flex}.progress li{align-items:center;gap:8px;display:inline-flex}.progress .dot{background:var(--line-strong);border-radius:50%;width:9px;height:9px}.progress .done{color:var(--ok)}.progress .done .dot{background:var(--ok)}.progress .current{color:var(--ink)}.progress .current .dot{background:var(--brand);animation:1.2s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.3}}.answer{gap:18px;display:grid}.markdown{overflow-wrap:anywhere}.markdown>:first-child{margin-top:0}.markdown>:last-child{margin-bottom:0}.markdown h1,.markdown h2,.markdown h3{margin:20px 0 8px;font-size:17px}.markdown p,.markdown ul,.markdown ol{margin:8px 0}.markdown .katex-display{margin:10px 0;overflow:auto hidden}.markdown table{border-collapse:collapse}.markdown th,.markdown td{border:1px solid var(--line-strong);padding:4px 10px}.evidence,.sources{border-radius:var(--radius-sm);background:var(--surface-2);padding:16px 18px}.evidence{border-left:3px solid var(--brand)}.evidence h3,.sources h3{color:var(--ink-soft);margin:0 0 8px;font-size:13px;font-weight:700}.sources ul{gap:6px;margin:0;padding:0;font-size:14px;list-style:none;display:grid}.sources li{gap:10px;display:flex}.sources .page{min-width:52px;color:var(--brand);font-weight:700}@media (width<=900px){.site-nav{grid-template-columns:1fr auto;width:calc(100vw - 32px)}.site-tabs{display:none}.tutor{width:calc(100vw - 32px);padding-top:24px}.confirm.with-preview{grid-template-columns:1fr}.confirm .preview{max-height:240px;position:static}.card{padding:18px}}.embed{background:var(--surface);min-height:100vh}.embed .tutor{gap:12px;width:auto;padding:12px}.embed .embed-intro{color:var(--ink-soft);margin:0;font-size:13px;line-height:1.5}.embed .card{border:1px solid var(--line);box-shadow:none;padding:14px}.embed .dropzone{border:1.5px dashed var(--line-strong);padding:24px 12px}.embed .dropzone strong{font-size:15px}.embed .dropzone p,.embed .card-head p{font-size:13px}.embed .card-head h2{font-size:16px}.embed .confirm.with-preview{grid-template-columns:1fr}.embed .confirm .preview{max-height:180px;position:static}.embed .button{min-height:38px;padding:7px 14px;font-size:14px}.embed .progress{gap:6px 14px;font-size:13px}.embed .evidence,.embed .sources{padding:12px 14px}.embed .sources li{flex-direction:column;gap:0}.view-tabs{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);gap:4px;width:fit-content;padding:4px;display:flex}.view-tabs button,.area-tabs button{color:var(--ink-soft);background:0 0;border:0;border-radius:8px;font-size:14px;font-weight:700}.view-tabs button{padding:8px 18px}.view-tabs button.active{background:var(--ink);color:#fff}.link-button{color:var(--brand);font:inherit;background:0 0;border:0;padding:0;font-weight:700}.link-button.muted{color:var(--ink-faint)}.link-button.danger{color:var(--brand-dark)}.saved-notice{border-radius:var(--radius-sm);background:var(--ok-soft);color:var(--ink);margin:0 0 14px;padding:10px 14px;font-size:14px}.saved-notice a{color:var(--brand);font-weight:700}.notebook{gap:16px;display:grid}.area-tabs{flex-wrap:wrap;gap:6px;display:flex}.area-tabs button{border:1px solid var(--line);background:var(--surface);align-items:center;gap:6px;padding:8px 14px;display:inline-flex}.area-tabs button.active{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-dark)}.area-tabs .count{background:var(--surface-2);min-width:20px;color:var(--ink-soft);text-align:center;border-radius:999px;padding:0 6px;font-size:12px}.notes{gap:14px;display:grid}.note{gap:12px;display:grid}.note-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.note-date{color:var(--ink-faint);font-size:13px}.note-actions{align-items:center;gap:12px;font-size:13px;display:flex}.note-actions select{border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);font:inherit;border-radius:8px;padding:5px 8px}.note-problem{gap:8px;display:grid}.note-problem p{margin:0}.note-instruction{font-weight:700}.note-block{white-space:pre-wrap;overflow-wrap:anywhere}.note-figure{background:var(--surface-2);border-radius:8px;margin:0;padding:10px 12px;font-family:inherit;font-size:14px;overflow-x:auto}.note-choices{gap:2px;margin:0;padding:0;list-style:none;display:grid}.note-answer{border-top:1px solid var(--line);padding-top:10px}.note-answer summary{color:var(--brand);cursor:pointer;font-weight:700}.note-answer[open] summary{margin-bottom:12px}.empty,.empty-area{text-align:center;color:var(--ink-soft)}.empty{justify-items:center;gap:8px;display:grid}.empty p{margin:0}.error.small{margin:0;padding:8px 12px;font-size:13px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.answer-stack{gap:22px;display:grid}.book-answer,.ai-answer{gap:12px;display:grid}.ai-answer{border:1px dashed var(--line-strong);border-radius:var(--radius-sm);background:var(--surface-2);padding:16px 18px}.answer-label{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.answer-label h3{margin:0;font-size:16px}.badge{background:var(--surface);border:1px solid var(--line-strong);color:var(--ink-soft);border-radius:999px;padding:2px 8px;font-size:12px;font-weight:700}.badge.book{border-color:var(--hl-edge);background:var(--brand-soft);color:var(--brand-dark)}.ai-note{color:var(--ink-soft);margin:0;font-size:13px}
