@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Noto+Sans+KR:wght@400;450;500;550;600;650;700&display=swap');
:root{font-family:'DM Sans','Noto Sans KR',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#263d34;background:#f6f8f7;font-synthesis:none;font-size:16px;--green:#235c49;--muted:#859089;--line:#e6ebe7;--mint:#e9f3eb;--orange:#cc8b40;--red:#ce766a}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{border:0;background:none}button:disabled{opacity:.38;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #82b59b;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid #82b59b;outline-offset:2px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}a{color:inherit}button{touch-action:manipulation}.app-shell{min-height:100dvh;display:grid;grid-template-columns:222px minmax(0,1fr)}
.sidebar{background:#fff;border-right:1px solid var(--line);padding:39px 23px 24px;position:fixed;inset:0 auto 0 0;width:222px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:10px;padding-left:8px;text-decoration:none}.brand img{height:35px;width:35px;border-radius:10px}.brand-name{font-size:30px;letter-spacing:-1.8px;font-weight:700;color:var(--green)}.brand-name span{color:#98bea3}.brand-tag{font-size:12px;color:#929c96;margin:10px 0 42px 9px;letter-spacing:.1px}.nav-label{font-size:11px;letter-spacing:1.6px;color:#a0aaa3;padding-left:15px;margin-bottom:13px}.side-nav{display:flex;flex-direction:column;gap:7px}.nav-button{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:500;text-align:left;padding:14px 15px;border-radius:10px;color:#7c8880;transition:background .2s}.nav-button:hover{background:#f6f8f6}.nav-button.active{background:#eaf3ed;color:var(--green);font-weight:650}.nav-button .count{margin-left:auto;font-size:11px;background:#d8e9dd;border-radius:5px;padding:2px 6px}.sidebar-bottom{margin-top:auto}.habit-note{position:relative;margin:35px 0 20px;background:#f4f7ed;border-radius:14px;padding:20px 16px;overflow:hidden}.habit-note svg{color:#8eaa6d;width:40px;height:40px;margin-bottom:10px}.habit-note h3{font-size:13px;line-height:1.8;margin-bottom:5px}.habit-note p{font-size:11px;line-height:1.8;color:#929b85}.side-help{font-size:12px;color:#8e9992;display:flex;gap:9px;align-items:center;padding:10px 12px}.side-help svg{width:17px;height:17px}.workspace{grid-column:2;min-width:0}.topbar{height:92px;display:flex;align-items:center;justify-content:space-between;padding:0 44px;border-bottom:1px solid var(--line);background:#f9faf9}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:13px;color:#9aa39d}.breadcrumb span:last-child{color:#53665a}.breadcrumb svg{width:14px;height:14px}.top-actions{display:flex;align-items:center;gap:21px}.save-state{font-size:12px;color:#8e9991;display:flex;gap:7px;align-items:center}.save-state svg{width:16px;height:16px;color:#71a282}.profile-button{width:36px;height:36px;border-radius:50%;background:#eee7d8;color:#9a8560;font-size:13px;font-weight:700}.page{max-width:1320px;margin:auto;padding:36px 44px 32px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:31px}.eyebrow{font-size:11px;font-weight:650;letter-spacing:1.7px;color:#96a59a;margin-bottom:10px}.page-heading h1{font-size:28px;font-weight:600;letter-spacing:-1.15px;line-height:1.5}.page-heading p{font-size:13px;color:#8c978f;margin-top:7px;line-height:1.7}.date-pill{align-self:flex-start;display:flex;gap:7px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:8px;padding:9px 11px;white-space:nowrap;color:#839087;font-size:12px;margin-top:20px}.date-pill svg{width:15px;height:15px}.learn-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:32px;align-items:start}.study-column{min-width:0}.session-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.pack-selector{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:550}.pack-selector svg{width:17px;height:17px;color:#72917c}select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23869489' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center;border:1px solid var(--line);border-radius:7px;padding:8px 31px 8px 11px;font-size:12px;color:#63766a;cursor:pointer}.session-counter{font-size:12px;color:#99a39c;display:flex;align-items:baseline;gap:4px}.session-counter strong{font-size:16px;color:#496c56;font-weight:650}.progress-track{height:4px;border-radius:4px;background:#e6ece6;overflow:hidden;margin-bottom:24px}.progress-fill{height:100%;background:#86af8e;border-radius:4px;transition:width .4s}.deck{position:relative;margin:0 8px 0;perspective:1000px}.deck:before,.deck:after{content:'';position:absolute;inset:12px 12px -12px;background:#f1f4ed;border:1px solid #e4e9df;border-radius:20px;z-index:0}.deck:before{inset:20px 23px -21px;background:#edf1e8}.word-card{position:relative;z-index:1;min-height:388px;border:1px solid #e0e6dd;background:#fff;border-radius:19px;padding:25px 29px 22px;box-shadow:0 7px 27px #3f5a3c05;touch-action:none;user-select:none;cursor:grab;transition:transform .22s ease,opacity .22s ease;overflow:hidden;display:flex;flex-direction:column}.word-card:active{cursor:grabbing}.card-meta{display:flex;justify-content:space-between;align-items:center}.word-topic{font-size:11px;font-weight:500;display:flex;gap:7px;align-items:center;color:#8b9b8d}.word-topic:before{content:'';width:6px;height:6px;border-radius:50%;background:#9bb791}.card-tools{display:flex;gap:7px}.icon-button{height:32px;width:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;color:#a9b1a5}.icon-button:hover{background:#f2f6ef;color:var(--green)}.icon-button svg{width:18px;height:18px}.icon-button.bookmarked{color:#bd9852}.word-center{display:flex;flex-direction:column;align-items:center;text-align:center;flex:1;justify-content:center;padding:25px 0 20px}.tiny-flower{width:38px;height:38px;color:#b0c3a0;margin-bottom:17px}.word{font-family:Georgia,'Times New Roman',serif;font-size:clamp(36px,4.8vw,57px);font-weight:400;letter-spacing:-1.7px;line-height:1.15;color:#2e4c3a;overflow-wrap:anywhere}.pronunciation{font-size:12px;color:#98a093;margin-top:15px;display:flex;gap:10px;align-items:center}.part{font-family:Georgia,serif;font-style:italic;color:#a5ae9e}.meaning-wrap{min-height:65px;margin-top:18px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px}.reveal-button{font-size:12px;color:#9ba994;display:flex;align-items:center;gap:7px;background:#f6f8f2;border-radius:20px;padding:9px 14px}.reveal-button svg{width:14px;height:14px}.meaning{font-size:21px;font-weight:550;letter-spacing:-.5px;color:#42634a}.translation{font-size:12px;color:#99a190;line-height:1.6}.example{border-top:1px solid #eef0e9;padding-top:17px;font-family:Georgia,serif;font-size:15px;line-height:1.7;color:#83907b;text-align:center}.example em{font-style:normal;color:#6e8d63}.card-hint{font-size:10px;color:#b1b8a9;text-align:center;margin-top:10px;letter-spacing:.15px}.swipe-indicator{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .1s;font-size:24px;font-weight:650;border:3px solid transparent;border-radius:19px;z-index:5}.swipe-indicator.mastered{color:var(--green);background:#e4f3e9ec;border-color:#8cba9b}.swipe-indicator.unsure{color:#ae7b36;background:#fff2dfee;border-color:#ddbd85}.swipe-indicator.unknown{color:#bb6d62;background:#ffede8ee;border-color:#dba194}.card-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:43px}.rating-button{display:flex;align-items:center;flex-direction:column;gap:9px;padding:0 5px;border-radius:13px;transition:transform .2s}.rating-button:hover{transform:translateY(-3px)}.action-circle{height:55px;width:55px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e7f1e8;border:1px solid #d8e7da;color:#60896a;transition:box-shadow .2s}.action-circle svg{width:23px;height:23px;stroke-width:1.6}.rating-button.unsure .action-circle{background:#faf0e0;border-color:#efe1c8;color:#c19a5c}.rating-button.unknown .action-circle{background:#faeae5;border-color:#f0d9d0;color:#cc9282}.action-label{font-size:12px;font-weight:550;color:#64806a}.rating-button.unsure .action-label{color:#b1976b}.rating-button.unknown .action-label{color:#bd8b7e}.action-direction{font-size:10px;color:#a1aaa1;margin-top:-3px}.study-footer{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:25px}.undo-button{display:flex;align-items:center;gap:6px;color:#8c998e;font-size:11px}.undo-button svg{width:14px;height:14px}.keyboard-tip{font-size:10px;color:#b0b8af}.study-aside{padding-top:0}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;padding:21px;margin-bottom:17px}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.panel-title h2{font-size:13px;font-weight:600}.panel-title span{font-size:10px;color:#a3ada3}.target-button{font-size:11px;color:#9ba99b}.goal-row{display:flex;gap:15px;align-items:center}.goal-ring{--percent:0;flex-shrink:0;width:71px;height:71px;border-radius:50%;background:conic-gradient(#83ae8b calc(var(--percent)*1%),#edf2eb 0);display:grid;place-items:center;position:relative}.goal-ring:before{content:'';position:absolute;inset:6px;border-radius:50%;background:white}.goal-ring span{position:relative;font-size:17px;font-weight:600;color:#67856b}.goal-text strong{font-size:23px;font-weight:650;color:#416849}.goal-text strong small{font-size:12px;font-weight:400;color:#9aa597}.goal-text p{font-size:11px;color:#9aa597;margin-top:6px;line-height:1.6}.status-list{display:flex;flex-direction:column;gap:17px}.status-item{display:flex;align-items:center;gap:9px;font-size:12px;color:#8a978b}.status-item strong{margin-left:auto;font-size:14px;font-weight:550;color:#4b6551}.status-dot{width:7px;height:7px;border-radius:50%;background:#8db293}.status-dot.unsure{background:#dcbe87}.status-dot.unknown{background:#dca99a}.summary-line{height:5px;background:#eff3ed;border-radius:8px;display:flex;overflow:hidden;margin-top:21px}.summary-line span{height:100%}.insight{border:0;background:#edf2e7;padding:21px;position:relative}.insight .sparkle{width:22px;height:22px;color:#98ad80;margin-bottom:12px}.insight h3{font-size:13px;line-height:1.8;font-weight:550;letter-spacing:-.25px}.insight p{font-size:11px;line-height:1.9;color:#929e85;margin-top:8px}.insight .small-label{font-size:9px;letter-spacing:1.2px;color:#8e9f79;display:block;margin-top:17px}.bottom-nav{display:none}.empty-card{min-height:388px;background:white;border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px}.empty-illustration{font-size:40px;margin-bottom:20px}.empty-card h2{font-size:23px;margin-bottom:10px;font-weight:550}.empty-card p{font-size:13px;line-height:1.9;color:#8b978e}.primary{background:var(--green);border-radius:9px;padding:12px 18px;color:white;font-size:13px;font-weight:500}.empty-card .primary{margin-top:23px}.secondary{background:#eef3ed;border-radius:9px;padding:12px 18px;color:#52725b;font-size:13px}.toast{position:fixed;left:calc(50% + 110px);bottom:29px;transform:translate(-50%,16px);border-radius:12px;padding:13px 21px;background:#294b38;color:#fff;font-size:13px;z-index:70;box-shadow:0 5px 30px #294b3820;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;max-width:90%;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}
.section-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:22px}.search{position:relative;flex:1;min-width:180px}.search svg{position:absolute;left:13px;top:12px;width:18px;height:18px;color:#9ca69c}.search input{width:100%;border:1px solid var(--line);border-radius:9px;padding:12px 12px 12px 40px;background:#fff;font-size:13px;color:#536d5a}.filter-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:21px}.filter-tab{padding:8px 13px;border-radius:7px;font-size:12px;color:#8b978e;background:#edf1ed}.filter-tab.active{background:#dcebdd;color:#416d4d}.word-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.word-row{background:#fff;border:1px solid var(--line);border-radius:12px;padding:19px 20px;display:flex;align-items:center;gap:15px}.word-row-main{flex:1;min-width:0}.word-row h3{font-family:Georgia,serif;font-weight:400;font-size:23px;overflow-wrap:anywhere}.word-row p{font-size:12px;color:#96a08f;margin-top:7px;line-height:1.7}.word-row-tag{font-size:10px;color:#8ca184;display:inline-block;margin-top:12px}.status-badge{font-size:10px;padding:5px 8px;background:#eef4ec;border-radius:5px;color:#7f9975;white-space:nowrap}.status-badge.unsure{background:#faf2e4;color:#baa06f}.status-badge.unknown{background:#faede8;color:#c29484}.status-badge.new{background:#f3f4f1;color:#a1aa9b}.word-row-buttons{display:flex;flex-direction:column;align-items:center;gap:10px}.restore-button{font-size:10px;color:#8a9c82;text-decoration:underline;text-underline-offset:3px}.list-empty{padding:65px 20px;text-align:center;color:#98a191;font-size:14px;grid-column:1/-1}.stats-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.stat-card{background:white;border:1px solid var(--line);border-radius:13px;padding:23px}.stat-card p{font-size:12px;color:#8a9989}.stat-card strong{font-size:33px;display:block;font-weight:550;margin-top:15px;letter-spacing:-1px}.stat-card strong small{font-size:13px;font-weight:400;letter-spacing:0;margin-left:4px;color:#97a28f}.stat-card span{font-size:11px;color:#a5aea0;display:block;margin-top:7px}.chart-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px}.chart-panel h2{font-size:15px;font-weight:550}.chart-panel>p{font-size:12px;color:#9aa391;margin-top:8px}.week-chart{height:220px;display:flex;justify-content:space-around;gap:16px;margin-top:25px;align-items:flex-end;border-bottom:1px solid var(--line);padding:0 10px}.chart-column{height:100%;display:flex;flex:1;align-items:center;justify-content:flex-end;flex-direction:column;position:relative;gap:8px}.chart-bar{width:min(48px,90%);background:#d3e4cd;border-radius:6px 6px 0 0;min-height:3px;transition:height .4s}.chart-column:last-child .chart-bar{background:#87ac7e}.chart-number{font-size:11px;color:#9aab91}.chart-labels{display:flex;justify-content:space-around;gap:16px;padding:13px 10px 0;font-size:11px;color:#9ca791}.chart-labels span{flex:1;text-align:center}.stats-note{font-size:12px;color:#8c998a;line-height:1.9;background:#ecf2e8;padding:19px 22px;border-radius:10px;margin-top:20px}.mobile-brand{display:none}dialog{width:min(440px,calc(100% - 32px));padding:0;border:1px solid #e1e9df;border-radius:20px;box-shadow:0 20px 90px #263d3430;color:#354f3d;background:#fff}dialog::backdrop{background:#263d345c;backdrop-filter:blur(3px)}.modal-content{padding:28px}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.modal-header h2{font-size:21px;font-weight:550;letter-spacing:-.5px}.modal-content>p{font-size:13px;color:#91a08d;line-height:1.8;margin-bottom:23px}.form-field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;font-size:12px;color:#7c9279}.form-field input,.form-field select,.form-field textarea{border:1px solid #dfe7dc;border-radius:8px;padding:12px;font-size:14px;color:#45653f;background-color:white;max-width:100%;width:100%}.form-field select{padding-right:30px}.form-field textarea{resize:vertical;min-height:75px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.privacy-note{font-size:11px;color:#a0ab99;line-height:1.9;margin-top:22px}.guide-item{display:flex;gap:15px;margin-bottom:22px;align-items:center}.guide-item .action-circle{width:44px;height:44px;flex-shrink:0}.guide-item h3{font-size:13px;font-weight:550;margin-bottom:5px}.guide-item p{font-size:12px;color:#96a18e;line-height:1.7}.guide-item.unsure .action-circle{background:#faf0e0;color:#b9985d}.guide-item.unknown .action-circle{background:#faeae5;color:#c48b7a}.page-fade{animation:appear .3s ease}@keyframes appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(min-width:1500px){.page{padding-top:45px}.learn-layout{gap:42px;grid-template-columns:minmax(0,1fr) 285px}.word-card{min-height:435px}.word{font-size:64px}.card-actions{margin-top:49px}.page-heading{margin-bottom:38px}}
@media(max-width:1170px){.sidebar{width:190px;padding-left:17px;padding-right:17px}.app-shell{grid-template-columns:190px minmax(0,1fr)}.topbar{padding:0 30px}.page{padding:30px}.learn-layout{grid-template-columns:minmax(0,1fr) 225px;gap:23px}.panel{padding:17px}.word-card{padding:22px}.toast{left:calc(50% + 95px)}.keyboard-tip{display:none}}
@media(max-width:1000px){.study-aside{display:none}.learn-layout{grid-template-columns:minmax(0,1fr);max-width:590px;margin:auto}.page-heading h1{font-size:26px}.word-card{min-height:400px}.word{font-size:58px}.stats-cards{gap:10px}.stat-card{padding:18px}.word-list{grid-template-columns:1fr}}
@media(max-width:700px){.app-shell{display:block}.sidebar{display:none}.workspace{width:100%}.topbar{height:71px;padding:0 23px;border-bottom:none;background:transparent}.breadcrumb,.save-state{display:none}.top-actions{gap:15px}.mobile-brand{display:flex}.mobile-brand .brand-name{font-size:28px}.mobile-brand img{width:30px;height:30px}.profile-button{width:32px;height:32px;font-size:12px}.page{padding:15px 23px 100px}.page-heading{margin-bottom:26px}.page-heading h1{font-size:25px;letter-spacing:-1px}.page-heading p{font-size:12px;margin-top:6px}.page-heading .eyebrow{font-size:10px;letter-spacing:1.5px;margin-bottom:7px}.date-pill{display:none}.learn-layout{display:block}.session-toolbar{margin-bottom:13px}.pack-selector{font-size:12px;gap:7px}.session-counter{font-size:11px}.session-counter strong{font-size:15px}select{font-size:11px;padding-top:7px;padding-bottom:7px}.progress-track{margin-bottom:23px;height:4px}.deck{margin:0 4px}.word-card{min-height:340px;padding:20px 21px 19px;border-radius:17px}.word-center{padding:21px 0 13px}.tiny-flower{height:31px;width:31px;margin-bottom:15px}.word{font-size:45px;letter-spacing:-1.2px}.pronunciation{font-size:11px;margin-top:13px}.meaning-wrap{margin-top:14px;min-height:55px}.meaning{font-size:20px}.translation{font-size:11px}.example{font-size:14px;line-height:1.65;padding-top:15px}.card-hint{font-size:9px;margin-top:9px}.card-actions{margin-top:38px;gap:10px}.action-circle{height:53px;width:53px}.action-label{font-size:12px}.action-direction{font-size:10px}.study-footer{margin-top:23px}.undo-button{font-size:11px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:calc(68px + env(safe-area-inset-bottom));padding:9px 18px calc(8px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-around;background:#fffefa;border-top:1px solid #e9ede4;z-index:30}.bottom-nav .nav-button{padding:0;display:flex;flex-direction:column;gap:5px;background:none;color:#a1aa9a;font-size:10px;min-width:62px}.bottom-nav .nav-button svg{width:21px;height:21px}.bottom-nav .nav-button.active{color:#4e7653;font-weight:600}.toast{bottom:calc(83px + env(safe-area-inset-bottom));left:50%;font-size:12px;padding:12px 17px;width:max-content;max-width:90%}.section-toolbar{gap:8px;margin-bottom:17px}.section-toolbar .primary{font-size:12px;padding:12px}.filter-tabs{gap:5px}.filter-tab{font-size:11px;padding:8px 10px}.word-row{padding:17px}.stats-cards{gap:8px;margin-bottom:17px}.stat-card{padding:17px 12px}.stat-card p{font-size:10px}.stat-card strong{font-size:28px;margin-top:12px}.stat-card span{font-size:10px;line-height:1.6}.chart-panel{padding:21px 17px}.week-chart{height:185px;gap:9px;padding:0}.chart-labels{gap:9px;padding-left:0;padding-right:0}.empty-card{min-height:340px}.page-heading .primary{padding:11px 13px}.modal-content{padding:25px}.word-topic{font-size:10px}.profile-button{background:#e9e6d9}.privacy-note{font-size:11px}}
@media(max-width:360px){.topbar{padding:0 17px}.page{padding-left:17px;padding-right:17px}.page-heading h1{font-size:23px}.word{font-size:39px}.word-card{min-height:325px}.pack-selector svg{display:none}.pack-selector{gap:5px}}
/* Keep touch controls and learning content legible on a phone. */
.reveal-button{font-size:14px}.example{font-size:16px}.card-hint{font-size:12px}.word-topic,.pronunciation{font-size:13px}.action-label{font-size:14px}.action-direction{font-size:12px}.panel-title h2,.pack-selector,.goal-text p,.status-item{font-size:14px}.panel-title span,.target-button,.goal-text strong small{font-size:12px}.status-item strong small{font-size:12px;font-weight:400;margin-left:2px}.insight h3{font-size:14px}.insight p{font-size:13px}.insight .small-label{font-size:11px}.translation{font-size:13px}.page-heading p{font-size:14px}.undo-button{font-size:12px}.word-row p,.search input,.form-field,.primary,.secondary,.filter-tab{font-size:14px}.status-badge,.word-row-tag,.restore-button{font-size:12px}.privacy-note{font-size:12px}.guide-item h3{font-size:14px}.guide-item p{font-size:13px}.stats-note svg{width:18px;height:18px;vertical-align:middle;margin-right:5px}.chart-labels,.chart-number,.chart-panel>p{font-size:12px}.stat-card p{font-size:13px}.stat-card span{font-size:12px}.side-help{font-size:13px}.habit-note p{font-size:12px}.habit-note h3{font-size:14px}.side-nav .nav-button{white-space:nowrap}.side-nav .nav-button .count{font-size:10px}
@media(min-width:701px) and (max-width:900px){.app-shell{grid-template-columns:155px minmax(0,1fr)}.sidebar{width:155px;padding-left:12px;padding-right:12px}.brand{padding-left:0;gap:7px}.brand img{width:29px;height:29px}.brand-name{font-size:26px}.brand-tag{font-size:10px;margin-left:0}.nav-button{padding:13px 10px;gap:8px;font-size:12px}.nav-button .count{display:none}.habit-note{padding:17px 12px}.habit-note h3{font-size:12px}.habit-note p{font-size:11px}.side-help{font-size:11px;padding-left:4px;padding-right:4px;gap:6px}.page{padding-left:25px;padding-right:25px}.topbar{padding-left:25px;padding-right:25px}.word{font-size:49px}}
@media(max-width:700px){.word-card{min-height:350px}.word-topic{font-size:12px}.pronunciation{font-size:13px}.reveal-button{font-size:13px;padding:9px 12px}.example{font-size:15px}.card-hint{font-size:11px}.translation{font-size:12px}.pack-selector{font-size:13px}.page-heading p{font-size:13px}.action-label{font-size:13px}.action-direction{font-size:11px}.bottom-nav .nav-button{font-size:12px}.filter-tab{font-size:12px}.section-toolbar .primary{font-size:13px}.word-row p{font-size:14px}.stat-card p{font-size:11px}.stat-card span{font-size:11px}.word-row-tag,.status-badge,.restore-button{font-size:11px}}
.refill-notice{font-size:14px;line-height:1.5;color:var(--green);margin:-6px 4px 14px}
.study-modes{display:flex;gap:4px;padding:3px;margin:0 0 15px;width:fit-content;background:#eaf0ea;border:1px solid #dce5dc;border-radius:10px}
.study-modes button{padding:8px 14px;border-radius:7px;font-size:14px;line-height:1.4;color:#56685b}
.study-modes button[aria-pressed="true"]{background:#fff;color:var(--green);font-weight:650;box-shadow:0 1px 3px #23442c16}
.session-toolbar [hidden]{display:none}
.library-more{grid-column:1 / -1;justify-self:center;margin:10px}
.search-count{grid-column:1 / -1;font-size:14px;color:#526b58}
.modal-content [hidden]{display:none}
.card-match{padding:12px 15px;background:#eef5ee;border-radius:8px;margin:0 0 18px;font-size:14px;color:#365b43}
.card-match p,.card-backup p{margin:6px 0;line-height:1.5;overflow-wrap:anywhere}
.card-backup{margin:16px 0;border-top:1px solid var(--line);padding-top:12px;font-size:14px}
.card-backup summary{cursor:pointer;color:var(--green)}
.card-backup button{margin:8px 0 14px}
.status-badge.unassigned{background:#f1f3f1;color:#53675a}
#import-feedback{font-size:14px;color:var(--green)}
.account-gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
}
.account-card {
  width: min(100%, 380px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 6vw, 34px);
}
.account-card h1 { font-size: 25px; line-height: 1.4; letter-spacing: -.7px; }
.account-card p { color: #55695c; font-size: 14px; line-height: 1.65; margin: 10px 0 18px; }
.account-card .primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.account-status { color: #52685b; font-size: 13px; overflow-wrap: anywhere; }
.account-error { color: #963d32; }

@media (min-width: 701px) {
  .topbar { height: 54px; }
  .page { padding-top: 18px; }
  .page-heading { margin-bottom: 16px; }
  .page-heading .eyebrow, .page-heading:has(+ .learn-layout) p { display: none; }
  .page-heading h1 { font-size: 24px; line-height: 1.4; }
  .page-heading .date-pill { margin: 0; align-self: center; }
}

@media (max-width: 700px) {
  .topbar {
    height: calc(48px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  }
  .mobile-brand { padding: 0; gap: 7px; min-height: 44px; }
  .mobile-brand img { height: 25px; width: 25px; border-radius: 7px; }
  .mobile-brand .brand-name { font-size: 24px; letter-spacing: -1.4px; }
  .profile-button { width: 40px; height: 40px; }
  .page {
    padding: 4px max(16px, env(safe-area-inset-right)) calc(68px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .page-heading { margin: 4px 0 10px; }
  .page-heading h1 { font-size: 21px; line-height: 1.35; }
  .page-heading .eyebrow, .page-heading p { display: none; }
  .page-heading:has(+ .learn-layout) {
    position: absolute;
    height: 1px;
    width: 1px;
    white-space: nowrap;
    overflow: hidden;
    clip-path: inset(50%);
    margin: 0;
  }
  .study-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .study-column > * { grid-column: 1 / -1; min-width: 0; }
  .study-modes { grid-column: 1; grid-row: 1; margin: 0; max-width: 100%; }
  .study-modes button { min-height: 38px; padding: 5px 9px; font-size: 13px; }
  .session-toolbar { display: contents; }
  .session-counter { grid-row: 1; grid-column: 2; padding-left: 6px; white-space: nowrap; }
  .pack-selector { grid-column: 1 / -1; grid-row: 2; margin: 5px 0 0; }
  .pack-selector:has(select[hidden]) { display: none; }
  .pack-selector select { min-height: 38px; }
  .progress-track { margin: 8px 0 10px; height: 3px; }
  .word-card, .empty-card { min-height: clamp(240px, 45svh, 355px); }
  .word-card { padding: 10px 16px 14px; }
  .card-tools { gap: 0; }
  .card-tools .icon-button { height: 40px; width: 40px; }
  .word-center { padding: 14px 0 10px; }
  .word-center .tiny-flower { display: none; }
  .word { font-size: clamp(36px, 11vw, 48px); }
  .pronunciation { margin-top: 8px; }
  .pronunciation:not(:has(span:not(:empty))) { display: none; }
  .meaning-wrap { min-height: 43px; margin-top: 8px; }
  .example { padding-top: 9px; }
  .card-hint { margin-top: 5px; }
  .card-hint:not(:has(a)) { display: none; }
  .card-actions { margin-top: 29px; }
  .rating-button { gap: 4px; }
  .action-circle { width: 46px; height: 46px; }
  .study-footer { margin-top: 3px; gap: 6px; }
  .undo-button { min-height: 42px; min-width: 42px; justify-content: center; }
  .bottom-nav {
    height: calc(56px + env(safe-area-inset-bottom));
    padding: 4px 12px calc(4px + env(safe-area-inset-bottom));
  }
  .bottom-nav .nav-button { min-height: 44px; justify-content: center; gap: 1px; }
  .toast { bottom: calc(66px + env(safe-area-inset-bottom)); }
  .section-toolbar { gap: 6px; margin-bottom: 8px; }
  .section-toolbar .search { min-width: 116px; }
  .section-toolbar .primary, .section-toolbar .secondary {
    min-height: 42px;
    padding: 7px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  .filter-tabs {
    margin-bottom: 8px;
    padding: 3px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }
  .filter-tab { flex: 0 0 auto; min-height: 36px; }
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
