@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&family=Noto+Serif+KR:wght@600;700;800&display=swap');

:root{font-family:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif;color:#20241b;background:#f9faf6;--accent:#bbe309;--soft:#f4facf;--bg:#f9faf6;--panel:#fff;--text:#20241b;--muted:#74786b;--border:#e5e8dc;--line:#eef0e8;--green:#4d6311;--warm:#f7ede6;--blue:#eaf0f7;--lav:#eeedf8;color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;--soft:#353d1e;--bg:#191c15;--panel:#22271c;--text:#f1f3e7;--muted:#b2b7a6;--border:#414737;--line:#353a2d;--green:#d5ed83;--warm:#47332a;--blue:#273747;--lav:#373047;background:var(--bg);color:var(--text)}
*{box-sizing:border-box}
body{margin:0;min-width:300px;font-size:14px;line-height:1.65}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.3;letter-spacing:-.045em}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{outline-offset:3px}
button{cursor:pointer}
button:disabled{opacity:.45;cursor:not-allowed}
input,select,textarea{color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:9px;min-height:40px;padding:8px 11px;min-width:0}
input[type=checkbox],input[type=radio]{accent-color:#819e02;min-height:auto}
textarea{min-height:90px;resize:vertical;width:100%}
input[type=number]{width:100%}
label{display:grid;gap:6px}
label.inline{display:flex;align-items:center;gap:8px}
fieldset{border:1px solid var(--border);border-radius:12px}
[hidden]{display:none!important}
small{font-size:12px}
.shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:226px;background:var(--panel);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:24px 17px 18px;z-index:5;overflow:auto}
.brand{display:flex;align-items:center;gap:11px;padding:1px 9px 35px}
.brand img{flex-shrink:0}
.brand b{font-size:25px;line-height:1;letter-spacing:-.09em;font-weight:800;display:block}
.brand-dot,.heading-dot{color:#849f0d}
.brand small{font-size:10px;letter-spacing:.11em;color:var(--muted);display:block;margin-top:3px}
.nav-caption{padding:0 11px 7px;font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.03em}
.secondary-caption{margin-top:21px}
.nav-link{display:flex;align-items:center;gap:11px;padding:10px 11px;margin:2px 0;border-radius:9px;min-height:42px;color:var(--muted);font-weight:600;font-size:13px}
.nav-link:hover,.icon-btn:hover,.profile:hover{background:var(--bg);color:var(--text)}
.nav-link.active{background:var(--soft);color:var(--text);font-weight:800}
.nav-link.active svg{color:var(--green)}
.side-bottom{display:flex;gap:10px;align-items:flex-start;border-top:1px solid var(--border);padding:15px 8px 1px;margin-top:auto;color:var(--muted);font-size:12px}
.side-bottom strong,.side-bottom small{display:block}
.side-bottom strong{color:var(--text);font-size:12px}
.side-bottom small{font-size:10px;margin-top:1px}
.status-led{width:8px;height:8px;border-radius:50%;background:#93b306;margin-top:6px;flex-shrink:0}
.workspace{margin-left:226px}
.topbar{height:65px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid var(--border);background:var(--panel)}
.crumb,.top-actions,.profile{display:flex;align-items:center;gap:12px}
.crumb{font-size:13px;color:var(--muted)}
.crumb b{color:var(--text);font-weight:700}
.profile{gap:8px;border:1px solid var(--border);padding:4px 9px 4px 5px;border-radius:24px;font-size:12px;font-weight:700}
.avatar{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--soft);color:var(--green);font-size:11px;font-weight:800}
.icon-btn{border:0;background:transparent;color:var(--muted);display:grid;place-items:center;width:36px;height:36px;border-radius:10px;padding:0}
.icon-btn.favorite{color:#829f0d;background:var(--soft)}
.icon-btn.favorite svg{fill:currentColor}
.mobile-toggle,.shade{display:none}
.main{max-width:1420px;margin:auto;padding:29px 36px 44px}
.home-heading,.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-heading h1,.page-intro h1{font-size:32px;font-weight:800;line-height:1.25}
.home-heading p,.page-intro p{margin-top:6px;color:var(--muted);font-size:13px}
.home-heading{margin-bottom:22px}
.page-intro{margin-bottom:23px}
.date{display:flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:9px;background:var(--panel);padding:7px 11px;color:var(--muted);white-space:nowrap;font-size:12px;font-weight:600}
.hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1.12fr 1fr;align-items:center;gap:35px;min-height:275px;padding:30px 42px;background:var(--accent);border-radius:19px;color:#252e09}
.hero:before,.hero:after{content:"";position:absolute;z-index:-1;pointer-events:none;border:1px solid rgba(48,71,0,.14);border-radius:50%;width:440px;height:440px;right:-68px;top:-165px}
.hero:after{width:315px;height:315px;right:-5px;top:-103px}
.hero-content{min-width:0}
.hero-kicker{display:inline-flex;align-items:center;gap:6px;background:#d8f25a;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.035em}
.hero h2{font-family:"Noto Serif KR","Noto Sans KR",serif;font-size:clamp(28px,3.04vw,47px);font-weight:800;margin:9px 0 7px;letter-spacing:-.085em;line-height:1.29}
.hero p{font-size:12px;color:#465509;font-weight:600}
.hero .btn{margin-top:19px}
.hero-side{position:relative;display:flex;justify-content:center}
.hero-side:after{content:"";position:absolute;z-index:-1;pointer-events:none;width:158px;height:98px;right:-13px;bottom:-17px;background-image:radial-gradient(#536900 1px,transparent 1px);background-size:11px 11px;opacity:.21}
.daily-card{position:relative;width:100%;max-width:369px;padding:21px 24px 23px;min-height:182px;border:1px solid #f6fbd2;border-radius:15px;background:#f9fcd9;box-shadow:6px 7px 0 #a9cf00;color:#252e09}
.daily-top{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:8px}
.daily-top>span:first-child{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:800;color:#53611e}
.daily-word{font-family:"Noto Serif KR","Noto Sans KR",serif;display:inline-block;font-size:clamp(30px,3.4vw,43px);font-weight:800;letter-spacing:-.09em;line-height:1.18}
.daily-word:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.hanja{font-family:"Noto Serif KR","Noto Sans KR",serif;color:var(--muted);font-size:14px;margin-top:4px}
.daily-card .hanja{color:#627038}
.hanja span{font-family:"Noto Sans KR",sans-serif;font-size:11px;font-weight:600}
.daily-card p{font-weight:600;font-size:12px;border-top:1px solid #e2e8a8;padding-top:9px;margin-top:10px}
.badge,.neutral-tag{display:inline-flex;align-items:center;align-self:center;white-space:nowrap;padding:3px 8px;border-radius:7px;background:var(--soft);color:var(--green);font-size:11px;font-weight:800}
.daily-card .badge{background:#e4f395;color:#465604}
.neutral-tag{background:var(--bg);color:var(--muted);border:1px solid var(--border);font-weight:600}
.section-head{margin:22px 0 12px}
.section-head h2,.section h2{font-size:20px;font-weight:800}
.section-head a{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;color:var(--muted)}
.section-head a:hover{color:var(--text)}
.panel{background:var(--panel);border:1px solid var(--border);border-radius:13px;min-width:0}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.metric{padding:16px 16px 14px;display:grid;gap:4px;align-content:start}
.metric .tile{margin-bottom:5px}
.tile{display:inline-grid;place-items:center;width:35px;height:35px;border-radius:9px;color:var(--green);background:var(--soft);flex-shrink:0}
.tile.blue{background:var(--blue);color:#4a6d95}
.tile.peach{background:var(--warm);color:#b06238}
.tile.lavender{background:var(--lav);color:#72629a}
[data-theme=dark] .tile.blue{color:#bdd5f7}
[data-theme=dark] .tile.peach{color:#efb395}
[data-theme=dark] .tile.lavender{color:#dac6f9}
.metric-label{font-size:12px;font-weight:700;color:var(--muted)}
.metric-value{font-size:25px;line-height:1.25;letter-spacing:-.035em;font-weight:800}
.metric-value small{font-weight:600;color:var(--muted);font-size:12px;letter-spacing:0}
.metric-foot{font-size:11px;color:var(--muted);min-height:21px;padding-top:3px}
.metric-foot:has(.progress){display:flex;align-items:center;gap:7px}
.progress{height:6px;background:var(--line);border-radius:8px;overflow:hidden;min-width:45px;flex:1}
.progress span{display:block;height:100%;background:var(--accent);border-radius:8px}
.home-bottom,.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:17px}
.quick{padding:16px}
.quick>div:first-child{display:flex;gap:10px;align-items:center}
.quick h2{font-size:16px;font-weight:800}
.quick p{color:var(--muted);font-size:11px;margin-top:2px}
.quick-links{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}
.quick-links .btn{min-height:33px;padding:4px 9px;font-size:11px}
.btn{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;gap:7px;border:1px solid var(--border);border-radius:8px;min-height:36px;padding:6px 11px;background:var(--panel);color:var(--text);font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.btn:hover:not(:disabled){border-color:#9fac7a;background:var(--bg)}
.btn.primary{background:var(--accent);color:#20241b;border-color:var(--accent)}
.btn.primary:hover:not(:disabled){background:#aace02;border-color:#aace02}
.btn.dark-button{background:#252e0e;border-color:#252e0e;color:#fff;flex-direction:row-reverse;padding:8px 13px}
.btn.dark-button:hover{background:#3e4a1b;color:#fff}
.btn.danger{color:#a13d33}
.section{padding:19px 22px;margin-bottom:14px}
.section h2{margin-bottom:13px}
.section h3{font-size:14px;margin-bottom:8px}
.section p+p{margin-top:7px}
.section a:not(.btn),.detail a{color:var(--green);text-decoration:underline}
.section .toolbar:first-child{margin-top:0}
.section details{margin-top:13px}
.toolbar,.row,.chips{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.toolbar{margin:8px 0}
.toolbar label:not(.file-button){display:flex;align-items:center}
.form-stack{display:grid;gap:16px}
.form-grid,.filter-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:9px}
.filter-row{margin:8px 0}
.filters{padding:12px 15px}
.filters .toolbar{margin-top:0}
.level-line{margin-top:7px}
.choice-chip{display:inline-grid;position:relative;cursor:pointer}
.choice-chip input{opacity:0;position:absolute;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.choice-chip span{display:block;padding:5px 10px;border-radius:8px;border:1px solid var(--border);font-size:12px;background:var(--panel);color:var(--muted)}
.choice-chip input:checked+span{background:var(--soft);border-color:#9ba765;color:var(--text);font-weight:700}
.choice-chip input:focus-visible+span{outline:2px solid var(--green);outline-offset:2px}
.search{display:flex;align-items:center;gap:7px;border:1px solid var(--border);background:var(--panel);border-radius:8px;padding:0 10px;color:var(--muted);min-width:0}
.search input{border:0;padding:6px 0;flex:1;min-width:0;width:100%}
.subtle,.muted{color:var(--muted);font-size:12px;font-weight:500}
.subtle{margin-left:3px}
.learn-grid{display:grid;grid-template-columns:minmax(210px,29%) minmax(0,1fr);gap:13px;align-items:start}
.word-list{padding:8px;min-width:0}
.list-word{display:flex;justify-content:space-between;align-items:center;width:100%;padding:8px 10px;gap:9px;border:1px solid transparent;border-radius:8px;text-align:left;background:transparent;color:var(--text)}
.list-word:hover{background:var(--bg)}
.list-word.selected{border-color:var(--border);background:var(--soft)}
.list-word small{display:block;color:var(--muted);font-size:10px}
.word-card{padding:20px 24px}
.word-top{display:flex;justify-content:space-between;gap:10px}
.word-card h2{font-family:"Noto Serif KR","Noto Sans KR",serif;margin:9px 0 2px;font-size:39px}
.word-meaning{font-size:17px;font-weight:700;margin:14px 0 13px}
.detail{margin-top:15px}
.detail h3{font-size:13px;color:var(--muted);margin-bottom:3px}
.detail p,.answer-detail p{white-space:pre-wrap;overflow-wrap:anywhere}
blockquote{margin:6px 0;padding:7px 10px;border-left:2px solid #9fbc26;background:var(--bg);border-radius:0 6px 6px 0}
.source-note{display:block;color:var(--muted);margin-top:15px}
.word-tools{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.record-tools{margin-top:14px;border-top:1px solid var(--line);padding-top:9px}
.record-tools form{display:grid;gap:9px;margin-top:7px}
.record-tools form .btn{justify-self:start}
details summary{cursor:pointer;font-weight:700}
.flash-cover{display:grid;justify-items:center;gap:9px;border:1px dashed var(--border);background:var(--bg);border-radius:10px;padding:23px;margin-top:15px;color:var(--muted)}
.pagination{display:flex;align-items:center;justify-content:center;gap:9px;margin:11px 0;color:var(--muted);font-size:12px}
.pagination .btn{min-height:30px;padding:3px 9px}
.quiz-card{max-width:800px;padding:17px 23px 22px;margin:auto}
.quiz-card .section-head{margin:0 0 9px}
.quiz-card h2{font-size:22px;margin:16px 0;white-space:normal}
.answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.answer-grid label{display:block;position:relative;cursor:pointer}
.answer-grid input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.answer-grid span{display:flex;align-items:center;gap:8px;padding:8px 10px;min-height:44px;border:1px solid var(--border);border-radius:8px;overflow-wrap:anywhere}
.answer-grid span b{flex-shrink:0;background:var(--bg);padding:0 6px;border-radius:4px}
.answer-grid input:checked+span{background:var(--soft);border-color:#8eaa16}
.answer-grid input:focus-visible+span{outline:2px solid var(--green)}
.answer-detail{margin:10px 0;padding:11px;background:var(--bg);border-radius:8px}
.answer-state{font-weight:800}
.result-top .tile{margin-bottom:7px}
.result-item{padding:10px 13px;margin:7px 0}
.wrong-text{color:#b44e42}
.right-text{color:var(--green)}
.notice{border:1px solid var(--border);border-radius:9px;padding:9px 11px;margin:0 0 10px;background:var(--soft)}
.notice.error{border-color:#d48b83;background:var(--warm)}
.dropzone{position:relative;justify-items:center;align-content:center;gap:5px;min-height:145px;margin-bottom:10px;border:1px dashed #a6b080;border-radius:12px;background:var(--bg);cursor:pointer;text-align:center;padding:10px}
.dropzone>span:last-of-type{color:var(--muted);font-size:12px}
.dropzone.dragging,.dropzone:hover{background:var(--soft)}
.dropzone input,.file-button input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}
.dropzone:focus-within,.file-button:focus-within{outline:2px solid var(--green);outline-offset:2px}
.file-button{position:relative}
.table-wrap{max-width:100%;overflow:auto}
table{border-collapse:collapse;width:100%;font-size:13px}
td,th{text-align:left;border-bottom:1px solid var(--line);padding:7px 8px}
td .btn{min-height:28px;font-size:11px;padding:3px 6px;margin-right:2px}
th{color:var(--muted);white-space:nowrap}
.meaning-cell{min-width:170px}
.nowrap{white-space:nowrap}
.import-preview{border:1px solid var(--border);border-radius:9px;padding:10px;margin-bottom:10px}
.import-preview .section-head{margin:0 0 5px}
.count-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:4px 11px;margin-top:7px;color:var(--muted);font-size:12px}
.count-grid b{color:var(--text)}
.plain-list{list-style:none;padding:0;margin:0}
.plain-list li{border-bottom:1px solid var(--line);padding:7px 0}
.plain-list .section-head{margin:0 0 4px}
.empty{padding:23px 13px;text-align:center;display:grid;justify-items:center;gap:5px}
.empty p{color:var(--muted);font-size:12px}
.compact .metric{margin-bottom:0}
.two-col .section{margin-bottom:0}
.chart{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:3px;align-items:end;min-height:130px;padding-top:5px;margin-bottom:8px}
.chart div{display:grid;gap:3px;justify-items:center;color:var(--muted);font-size:10px}
.chart i{display:block;width:70%;border-radius:4px 4px 0 0;background:var(--accent)}
.chart small{font-size:9px;white-space:nowrap}
.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center;margin-top:10px}
.calendar span{padding:3px;background:var(--bg);border-radius:6px}
.calendar .has-activity{background:var(--soft);font-weight:800;color:var(--green)}
.stat-list>div{display:flex;justify-content:space-between;gap:7px;border-bottom:1px solid var(--line);padding:4px 0;font-size:12px}
.stat-list b{white-space:nowrap}
dialog{width:min(610px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--border);border-radius:15px;padding:18px 21px;color:var(--text);background:var(--panel)}
dialog::backdrop{background:#161d13a0}
.modal-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.modal-title h2{font-size:20px}
#toast{position:fixed;right:18px;bottom:17px;max-width:min(520px,calc(100vw - 36px));z-index:10;background:#252e0e;color:#fff;border-radius:9px;padding:10px 14px;box-shadow:0 4px 18px #0002}
#toast:empty{display:none}
dialog+#toast{z-index:10}
.form-error{color:#b44e42;font-size:12px;margin-bottom:7px}

@media(max-width:1050px){.sidebar{width:197px}.workspace{margin-left:197px}.main,.topbar{padding-left:23px;padding-right:23px}.hero{gap:21px;padding-left:26px;padding-right:27px}}
@media(max-width:800px){.sidebar{transform:translateX(-100%);width:224px}.sidebar.open{transform:translateX(0)}.workspace{margin-left:0}.mobile-toggle{display:grid}.shade{display:block;position:fixed;inset:0;z-index:4;border:0;background:#20241b68}.topbar{height:56px;padding:0 15px}.main{padding:19px 15px 32px}.home-heading h1,.page-intro h1{font-size:26px}.hero{min-height:230px}.hero h2{font-size:32px}}
@media(max-width:560px){.home-heading{align-items:flex-start;gap:4px;margin-bottom:14px}.home-heading h1{font-size:24px}.home-heading p{font-size:11px}.date{font-size:10px;padding:5px 6px;gap:4px}.date svg{width:13px}.hero{grid-template-columns:1fr;gap:13px;padding:17px 16px 19px;border-radius:14px}.hero h2{font-size:31px}.hero .btn{margin-top:10px}.daily-card{max-width:none;min-height:0;padding:10px 12px;box-shadow:3px 4px 0 #a9cf00}.daily-top{margin-bottom:2px}.daily-word{font-size:30px}.daily-card p{margin-top:5px;padding-top:4px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.metric{padding:10px}.home-bottom,.two-col{grid-template-columns:1fr;gap:8px}.learn-grid{grid-template-columns:1fr}.word-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.word-list .pagination{grid-column:1/-1}.word-card,.section,.quiz-card{padding:13px}.section-head h2,.section h2{font-size:17px}.answer-grid{grid-template-columns:1fr}.crumb{gap:5px}.top-actions{gap:4px}.profile-label{display:none}.hero:before{top:-80px;right:-240px}.hero:after{top:-18px;right:-177px}}
