:root{color-scheme:light;--paper:#f5f3ec;--ink:#22382f;--muted:#59685f;--green:#254d43;--line:#d8dfd6;--white:#fffefa;--accent:#e7b45a;--bad:#8a302a;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);line-height:1.65}.shell{max-width:1040px;margin:auto;padding:0 28px}a{color:var(--green);text-underline-offset:4px}button,input,select{font:inherit}button,.button{cursor:pointer;min-height:48px;border:1px solid var(--line);border-radius:12px;padding:10px 18px;background:var(--white);color:var(--ink);font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}button:hover,.button:hover{border-color:var(--green);background:#edf2e9}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #ad700b;outline-offset:4px}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#193c33;color:#fff}.quiet{background:transparent}.site-header{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.brand{font-weight:750;text-decoration:none}.edition,.eyebrow{font-size:.73rem;letter-spacing:.16em;font-weight:750;color:var(--muted)}.site-header button{font-size:.85rem;min-height:40px;padding:6px 12px}.storage{font-size:.78rem;color:var(--muted);margin:12px 0 28px}.storage.error{color:var(--bad);font-weight:750}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,5vw,3.6rem);letter-spacing:-.055em;line-height:1.18;margin-bottom:22px}h2{font-size:1.4rem;letter-spacing:-.03em;line-height:1.45}h3{font-size:1.1rem;margin-bottom:8px}.hero{display:grid;grid-template-columns:1.25fr 1fr;gap:44px;padding:10px 0 32px}.hero .intro{color:var(--muted);max-width:35em}.eyebrow{margin-bottom:14px}.stats{display:grid;grid-template-columns:repeat(3,1fr);align-self:end;padding:22px 0;border-block:1px solid var(--line);gap:10px}.stats strong{font-size:2rem;display:block;line-height:1.4;letter-spacing:-.05em}.stats span{font-size:.78rem;color:var(--muted)}.actions{display:flex;gap:10px;flex-wrap:wrap}.actions>*{flex:1}.lead-actions{margin:6px 0 28px}.lead-actions button{flex:1 1 180px}.section-label{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:26px 0 14px}.section-label h2{margin:0}.small,.muted{font-size:.85rem;color:var(--muted)}.subjects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.subject{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:24px}.subject:last-child{grid-column:1/-1}.subject-head{display:flex;justify-content:space-between;gap:16px}.subject-num{font-size:.75rem;letter-spacing:.08em;color:var(--muted)}.subject .actions{margin-top:18px}.subject button{font-size:.88rem;padding:8px 12px}.mini-track{height:5px;background:#e8ece4;border-radius:10px;overflow:hidden;margin:16px 0 8px}.mini-track span{display:block;height:100%;background:var(--green)}.resume,.panel{padding:22px;border:1px solid var(--line);background:#eaf0e5;border-radius:16px;margin:20px 0}.resume .actions{max-width:420px}.utility{border-top:1px solid var(--line);margin-top:32px;padding-top:24px}.utility summary{cursor:pointer;min-height:44px;font-weight:650}.utility .actions{margin:14px 0}.utility p{font-size:.85rem}.study{max-width:740px;margin:0 auto}.study-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.study-top button{font-size:.8rem;min-height:40px}.progress{width:100%;height:5px;appearance:none;border:0;border-radius:8px;margin:0 0 25px;background:var(--line)}.progress::-webkit-progress-bar{background:var(--line);border-radius:8px}.progress::-webkit-progress-value{background:var(--green);border-radius:8px}.study-card{min-height:340px;background:var(--white);border:1px solid var(--line);border-top:5px solid var(--green);border-radius:20px;padding:32px;margin-bottom:18px;box-shadow:0 12px 38px #1e352b08}.tag{display:inline-block;font-size:.75rem;background:#e9eee3;border-radius:6px;padding:3px 9px;margin-bottom:16px}.study-question{font-size:1.5rem;line-height:1.55;letter-spacing:-.03em;margin:0 0 24px;font-weight:720}.hint{font-size:.88rem;color:var(--muted);margin-top:26px}.answer{border-top:1px solid var(--line);padding-top:20px}.answer p{font-size:1.16rem;line-height:1.8}.answer .tip{font-size:.88rem;background:#f5f1e3;padding:12px;border-radius:10px}.source{margin-top:20px;font-size:.78rem;color:var(--muted)}.source summary{cursor:pointer;min-height:40px}.source blockquote{margin:8px 0 16px;padding-left:12px;border-left:2px solid var(--line);overflow-wrap:anywhere}.source p{font-size:.78rem;margin-bottom:6px}.ox-buttons button{font-size:1.5rem;min-height:70px}.correct{color:var(--green)}.incorrect{color:var(--bad)}.feedback{font-weight:750}.result{padding:32px;background:var(--white);border:1px solid var(--line);border-radius:20px;margin-bottom:22px}.result .score{font-size:2.8rem;font-weight:750;margin-bottom:8px}.summary-top{display:flex;gap:14px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin:20px 0}.search{width:100%;padding:14px 16px;min-height:48px;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);margin:0 0 18px}.summary-item{padding:22px 0;border-bottom:1px solid var(--line);break-inside:avoid}.summary-item h3{font-size:1.15rem}.summary-item .q{font-size:.85rem;color:var(--muted);margin-bottom:8px}.summary-item .tip{font-size:.85rem;color:var(--muted)}.summary-item button{font-size:.82rem;min-height:40px}.badge{font-size:.7rem;background:#f4e4c7;color:#64471a;border-radius:5px;padding:3px 7px}footer{font-size:.76rem;color:var(--muted);border-top:1px solid var(--line);margin-top:44px;padding:24px 0 30px}footer p{margin-bottom:6px}.skip{position:absolute;left:12px;top:-100px;background:#fff;padding:12px;z-index:10}.skip:focus{top:12px}body.large{font-size:19px}body.large .study-question{font-size:1.8rem}body.large .answer p{font-size:1.35rem}[hidden]{display:none!important}main:focus{outline:none}@media(max-width:650px){.shell{padding:0 18px}.site-header{min-height:72px;gap:8px}.edition{display:none}.storage{margin-bottom:18px}.hero{display:block;padding:8px 0 16px}.hero h1{max-width:9em}.stats{margin-top:22px;padding:14px 0}.stats strong{font-size:1.7rem}.subjects{grid-template-columns:1fr}.subject:last-child{grid-column:auto}.subject{padding:20px}.study-card{padding:24px 20px;min-height:320px}.study-question{font-size:1.32rem}.study .actions{position:relative}.actions button{padding:10px 12px}.section-label{align-items:flex-start}.result{padding:24px}.lead-actions{gap:8px}.lead-actions button{flex-basis:140px}}@media(prefers-reduced-motion:no-preference){button,.button{transition:background .15s,border-color .15s}}@media print{.site-header,.storage,footer,button,.actions,.search,.source{display:none!important}.shell{max-width:none;padding:0}body{background:#fff;color:#000}.summary-item{padding:10px 0}.summary-item p{margin-bottom:6px}}

.section-label{flex-wrap:wrap}.section-label h2,.section-label .small{word-break:keep-all}.section-label .small{overflow-wrap:normal}

/* Backup comparisons and recovery controls must fit a 360px phone. */
.backup-preview{max-width:800px;margin:24px auto;overflow-wrap:anywhere}.backup-preview h1{font-size:1.8rem;line-height:1.4}.backup-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.backup-compare .panel{margin:8px 0 20px}.backup-compare p{margin-bottom:10px}.restore-options{border:1px solid var(--line);border-radius:14px;padding:12px 16px;margin:14px 0 24px;min-width:0}.restore-options legend{font-weight:750;padding:0 6px}.restore-options label{display:flex;align-items:flex-start;gap:12px;min-height:52px;padding:10px 0;cursor:pointer}.restore-options input{width:24px;height:24px;flex:0 0 24px;margin:3px 0;accent-color:var(--green)}.restore-options small{display:block;font-size:.85rem;color:var(--muted)}.conflict-choice{display:flex;flex-direction:column;gap:8px;margin-top:18px}.conflict-choice select{width:100%;min-width:0;max-width:100%;min-height:52px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink)}.import-error{color:var(--bad);font-weight:700}.filename{overflow-wrap:anywhere}.backup-apply{margin:20px 0}.backup-apply button{flex-basis:220px}.storage-actions:empty{display:none}.storage-actions{margin:0 0 22px}.storage-actions button{flex-basis:140px}.site-header{flex-wrap:wrap;padding:12px 0}.site-header button{min-height:48px}.recovery .actions button{flex-basis:180px}.backup-preview .actions button{min-width:0;overflow-wrap:anywhere}.backup-preview .panel{min-width:0}@media(max-width:650px){.backup-compare{grid-template-columns:1fr;gap:0}.backup-preview h1{font-size:1.6rem}.backup-preview .panel{padding:18px}.backup-preview .actions button{flex-basis:100%}.site-header .brand{flex:1 1 130px}.site-header button{flex-shrink:0}}
