:root{--bg:#f5f7f5;--surface:#fff;--ink:#253c35;--muted:#7b8982;--line:#e3e9e4;--green:#287759;--deep:#205e49;--mint:#e8f2eb;--red:#b4534a;--soft-red:#faeeeb;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #79b298;outline-offset:4px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button svg{width:18px;height:18px}.hidden{display:none!important}.sidebar{position:fixed;inset:0 auto 0 0;width:246px;padding:36px 23px 24px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;font-weight:700;font-size:21px;letter-spacing:-.7px;padding:0 7px}.brand-caption{display:block;font-size:10px;letter-spacing:1px;font-weight:400;color:var(--muted);margin-top:1px}.nav-label{font-size:10px;letter-spacing:2px;color:#a1aaa5;margin:49px 14px 14px;font-weight:600}.desktop-nav{display:grid;gap:7px}.desktop-nav a{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:11px;color:#76847d;font-size:13px}.desktop-nav a.active{color:var(--green);background:var(--mint);font-weight:650}.nav-count{margin-left:auto;font-size:10px;background:#d8e8dd;padding:0 7px;border-radius:5px}.sidebar-note{margin-top:auto;padding:22px 14px 18px;font-size:12px;color:#5e7569}.sidebar-note p{font-size:11px;line-height:1.9;color:#9aa69f;margin:9px 0}.small-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#71a88a;margin-right:7px}.local-status{display:flex;gap:11px;align-items:center;border-top:1px solid var(--line);padding:22px 12px 0;color:#6b8073;font-size:11px}.local-status>span>span{display:block;font-size:10px;color:#a1aba5}.local-status svg{width:17px}.workspace{margin-left:246px;min-height:100dvh;display:flex;flex-direction:column}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 46px;border-bottom:1px solid var(--line);background:#f9faf8}.breadcrumb{font-size:11px;color:#89978f}.topbar-right{display:flex;gap:18px;align-items:center}.avatar{height:30px;width:30px;border:1px solid #d8e2d8;border-radius:50%;display:grid;place-items:center;font-size:11px;background:#eaf0e7;font-weight:650}.connection{font-size:10px;color:#83958a;display:flex;align-items:center;gap:6px}.connection i{width:5px;height:5px;background:#75aa87;border-radius:50%}.mobile-brand,.mobile-nav{display:none}#main{width:100%;max-width:1150px;margin:0 auto;padding:46px;flex:1}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1.7px;font-weight:680;margin-bottom:10px;line-height:1.4}h2{font-size:18px;letter-spacing:-.5px}h3{font-size:16px;letter-spacing:-.3px}.eyebrow{font-size:10px;font-weight:650;color:#83978a;letter-spacing:2px;margin-bottom:12px}.subtitle{color:#859188;font-size:12px;margin-bottom:0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:31px}.page-heading .button{flex-shrink:0}.button{border:0;background:var(--green);color:white;min-height:43px;border-radius:10px;padding:10px 19px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.5;transition:background .15s,transform .15s}.button:hover:not(:disabled){background:var(--deep)}.button:active:not(:disabled){transform:translateY(1px)}.button.secondary{background:#fff;color:#576d5f;border:1px solid var(--line)}.button.secondary:hover:not(:disabled){background:#f0f5f0}.button.tonal{background:#e7f1e8;color:var(--green)}.button.tonal:hover:not(:disabled){background:#d8e9db}.button.danger{background:var(--red)}.button.text{background:transparent;color:var(--muted);padding:6px}.button.small{min-height:32px;font-size:11px;padding:6px 12px}.icon-button{border:1px solid var(--line);border-radius:9px;background:transparent;display:inline-flex;align-items:center;justify-content:center;min-width:35px;min-height:35px;color:#819086}.icon-button:hover{background:var(--mint)}.dashboard-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:34px}.stat-box{background:#fff;border:1px solid var(--line);border-radius:14px;padding:21px 22px;display:flex;align-items:center;gap:16px}.stat-icon{color:var(--green);background:#edf4ec;width:44px;height:44px;border-radius:13px;display:grid;place-items:center}.stat-number{font-size:25px;line-height:1.25;font-weight:650;letter-spacing:-1px}.stat-number small{font-size:11px;font-weight:400;color:var(--muted);margin-left:4px}.stat-label{font-size:10px;color:#98a099;margin-top:5px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.section-heading h2{margin:0}.section-heading span{color:var(--muted);font-size:11px}.deck-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.deck-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden;transition:transform .2s,box-shadow .2s}.deck-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #2747350a}.deck-top{padding:25px 24px 20px;cursor:pointer;display:block;width:100%;text-align:left;border:0;background:transparent;color:var(--ink)}.deck-visual{width:43px;height:43px;background:#f0f4e9;color:#6e8562;border-radius:12px;display:grid;place-items:center;margin-bottom:19px}.deck-card:nth-child(3n+2) .deck-visual{background:#edf1f6;color:#71859e}.deck-card:nth-child(3n) .deck-visual{background:#f8f0e9;color:#b19068}.deck-name-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}.deck-name-row h3{margin:0;overflow-wrap:anywhere}.deck-meta{font-size:11px;color:#97a199}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:3px 9px;font-size:10px;font-weight:550;background:#edf5ed;color:#6d947b;white-space:nowrap}.pill.amber{background:#f8f3e7;color:#a68c52}.deck-progress{margin:20px 0 7px;height:4px;background:#eef2ec;border-radius:3px;overflow:hidden}.deck-progress span{height:100%;display:block;background:#9bbd9c;border-radius:3px}.deck-progress-label{display:flex;justify-content:space-between;font-size:9px;color:#9aaa9d}.deck-bottom{border-top:1px solid #eef1ed;display:flex;align-items:center;justify-content:space-between;padding:14px 24px;background:#fcfdfb}.deck-bottom>span{font-size:10px;color:#859589}.deck-bottom .button{min-height:32px}.new-deck-tile{min-height:290px;border:1px dashed #cbd8ca;background:#f2f6ee;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#81977d;gap:10px;border-radius:var(--radius);font-size:12px;cursor:pointer}.new-deck-tile:hover{background:#eaf1e5}.add-symbol{height:38px;width:38px;border-radius:50%;border:1px solid #d2dfcc;font-size:24px;line-height:33px;text-align:center;font-weight:300}.tip{display:flex;gap:13px;background:#eef3e9;border:1px solid #e6edde;padding:20px 23px;border-radius:12px;color:#8a9b7c;margin-top:28px}.tip svg{width:19px;color:#819773;margin-top:2px}.tip strong{display:block;font-weight:600;font-size:11px;color:#768c66;margin-bottom:3px}.tip p{font-size:10px;margin:0;line-height:1.8}.app-footer{padding:27px 46px;color:#a4aea7;font-size:9px;display:flex;justify-content:space-between;border-top:1px solid #e9eee7;max-width:1150px;width:100%;margin:auto}.back-link{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#809181;margin-bottom:22px}.detail-actions{display:flex;gap:9px;flex-wrap:wrap}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:25px;margin-bottom:22px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.panel-heading h2{margin:0}.direction-toggle{display:flex;gap:8px;flex-wrap:wrap}.direction-toggle button.active{background:var(--green);border-color:var(--green);color:white}.card-list{display:grid;gap:10px;margin-top:18px}.list-card{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 20px;background:white;border:1px solid var(--line);border-radius:12px}.list-front{font-size:20px;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere}.list-back{font-size:12px;color:#718479;white-space:pre-wrap;margin-top:4px;overflow-wrap:anywhere}.list-meta{font-size:9px;color:#a0aba3;margin-top:7px}.list-actions{display:flex;gap:6px;flex-shrink:0}.search{position:relative;flex:1;max-width:310px}.search input{min-height:38px}.input,input:not([type=checkbox]),textarea,select{display:block;width:100%;background:#fafcf9;color:var(--ink);border:1px solid #dce5dc;border-radius:10px;padding:11px 13px;outline:none;font-size:13px}.input:focus,input:focus,textarea:focus,select:focus{border-color:#7ba78d;box-shadow:0 0 0 3px #e7f0e7}label{display:block;font-size:11px;color:#718075;margin:17px 0 7px}textarea{resize:vertical;min-height:105px;line-height:1.7}.empty{padding:45px 20px;text-align:center;background:#fff;border:1px dashed #d9e3d6;border-radius:15px;color:#8a9a89}.empty h2{color:#5f7c68;margin:12px 0 7px}.empty p{font-size:12px}.empty svg{width:34px;height:34px}.import-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.import-grid .panel{margin:0}.file-picker{padding:30px 18px;background:#f6f9f3;border:1px dashed #cedac8;border-radius:12px;text-align:center}.file-picker svg{width:27px;height:27px;color:#91a786}.file-picker p{font-size:11px;color:#8c9b87;margin:10px 0 14px}.checkbox{display:flex;gap:8px;align-items:center;font-size:11px;margin:13px 0}.checkbox input{accent-color:var(--green);width:14px;height:14px}.preview-table{width:100%;border-collapse:collapse;font-size:12px;margin-top:18px;table-layout:fixed}.preview-table th{text-align:left;font-size:10px;color:#8d9d90;font-weight:400;padding:9px;background:#f5f8f1}.preview-table td{padding:12px 9px;border-bottom:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top}.preview-table th:first-child{width:45px}.error-row{color:var(--red);font-size:11px}.preview-summary{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.loading{text-align:center;padding:80px 20px;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid .panel{margin:0}.settings-grid .panel p{font-size:12px;color:#839080}.settings-grid .panel h2{font-size:16px;display:flex;align-items:center;gap:9px}.settings-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.settings-notice{font-size:11px!important;margin:17px 0 0}.setting-line{display:flex;gap:10px;align-items:start;padding:14px 0;font-size:12px}.setting-line svg{color:#7fa385}.setting-line span{font-size:10px;color:#9ba69a;display:block;margin-top:3px}.study-wrap{max-width:700px;margin:auto}.study-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.study-title h1{font-size:21px;margin:0;letter-spacing:-.7px}.study-counter{font-size:11px;color:#8b9c8e}.session-progress{height:4px;background:#e2ebe1;border-radius:3px;overflow:hidden;margin-bottom:12px}.session-progress span{display:block;background:#76a486;height:100%;transition:width .25s}.study-hint{display:flex;justify-content:space-between;font-size:10px;color:#9cac9c;margin-bottom:18px}.study-stage{position:relative;height:clamp(355px,55dvh,555px);overflow:hidden;border-radius:20px;margin-bottom:19px;padding-bottom:12px}.next-card{position:absolute;inset:12px 9px 0;background:#e1ede1;border:1px solid #d6e4d5;border-radius:20px;display:flex;align-items:center;justify-content:center;color:#91ab90;flex-direction:column;gap:10px;font-size:11px}.next-card svg{width:30px;height:30px}.flashcard{position:relative;z-index:1;height:100%;background:#fff;border:1px solid #dee7dd;border-radius:20px;box-shadow:0 5px 18px #395c3210;display:flex;flex-direction:column;touch-action:none;user-select:none;will-change:transform;cursor:grab}.flashcard:active{cursor:grabbing}.flashcard:focus-visible{outline:3px solid #89b596;outline-offset:-4px}.card-content{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:safe center;padding:34px 26px;touch-action:none;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cad8c7 transparent}.card-side-label{font-size:9px;color:#b0bba9;letter-spacing:2px;margin-bottom:24px}.card-question{font-size:58px;font-weight:600;line-height:1.4;letter-spacing:2px;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;width:100%;margin:0}.card-question.reverse{font-size:28px;letter-spacing:-.4px}.card-answer{margin:26px 0 0;font-size:22px;color:#607d66;text-align:center;white-space:pre-wrap;line-height:1.6;overflow-wrap:anywhere;width:100%}.reveal-prompt{font-size:11px;color:#a5b19e;margin-top:34px;display:flex;gap:7px;align-items:center}.reveal-prompt svg{width:15px;height:15px}.card-status{border-top:1px solid #ecf0e8;background:#fafcf7;padding:14px 21px 15px;border-radius:0 0 20px 20px;flex-shrink:0;font-size:10px;color:#8b9a85}.card-status-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.card-status-head strong{font-weight:600;color:#6e9070;font-size:10px}.card-status-head strong.retry{color:var(--red)}.box-bars{display:flex;gap:4px;margin-bottom:9px}.box-bars i{height:4px;border-radius:3px;background:#e2eadd;flex:1}.box-bars i.filled{background:#8bac86}.card-metrics{display:flex;justify-content:space-between;gap:10px;font-size:9px}.card-due{margin-top:5px;font-size:9px;color:#a3aea0}.swipe-label{position:absolute;top:23px;right:22px;border:2px solid var(--green);color:var(--green);padding:6px 15px;border-radius:8px;font-size:19px;font-weight:700;opacity:0;pointer-events:none;transform:rotate(7deg);background:#ffffffed}.swipe-label.wrong{color:var(--red);border-color:var(--red)}.review-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.review-controls button{height:48px}.review-controls button.wrong{background:#f1ebe3;color:#a08869}.undo-row{text-align:center;margin-top:10px}.undo-row .button{font-size:10px;color:#9cac9b}.study-caption{text-align:center;font-size:9px;color:#a3afa0;margin-top:16px}.complete{text-align:center;padding:55px 15px}.complete-symbol{width:85px;height:85px;background:#e6f0e1;color:#7ca36e;border-radius:50%;display:grid;place-items:center;margin:0 auto 24px}.complete-symbol svg{width:35px;height:35px}.complete h1{font-size:28px}.complete p{font-size:12px;color:#8b9d86}.complete .button{margin:9px 4px}.completed-total{font-size:42px;font-weight:600;color:#65905f;margin:25px 0}.completed-total small{font-size:14px;font-weight:400}dialog{border:1px solid #dce5d9;border-radius:20px;width:min(470px,calc(100% - 32px));padding:28px;color:var(--ink);box-shadow:0 30px 80px #18392922;max-height:85dvh;overflow:auto;background:#fff}dialog::backdrop{background:#263c3050;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.dialog-head h2{margin:0}.dialog-description{font-size:12px;color:#8a9685;white-space:pre-line;margin-top:13px;overflow-wrap:anywhere}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:25px}.dialog-error{font-size:11px;color:var(--red);margin-top:12px;min-height:17px}#toast{position:fixed;bottom:30px;left:calc(50% + 123px);transform:translate(-50%,20px);background:#294f3c;color:white;padding:11px 20px;border-radius:11px;font-size:12px;z-index:25;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:90vw;text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}.update-banner{background:#e4f0e4;padding:10px 46px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#648560}
@media(min-width:1500px){#main{padding-top:58px}.topbar{padding-left:max(46px,calc((100vw - 246px - 1058px)/2))}.deck-grid{gap:23px}}
@media(max-width:1050px){.sidebar{width:205px;padding-left:15px;padding-right:15px}.brand{font-size:18px}.workspace{margin-left:205px}.topbar{padding:0 28px}#main{padding:32px 28px}.stat-box{padding:18px 16px;gap:11px}.stat-icon{width:36px;height:36px}.stat-number{font-size:23px}.deck-top{padding:22px 20px}.deck-bottom{padding:13px 20px}.app-footer{padding:23px 28px}#toast{left:calc(50% + 102px)}}
@media(max-width:760px){.sidebar{display:none}.workspace{margin:0;padding-bottom:78px}.topbar{height:68px;padding:0 21px}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:9px;font-size:18px;letter-spacing:-.6px;font-weight:650}.topbar-right{gap:10px}.connection{font-size:9px}.connection i{display:none}.avatar{display:none}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:9;background:#fffffff2;border-top:1px solid var(--line);padding:10px 14px calc(10px + env(safe-area-inset-bottom));justify-content:space-around;backdrop-filter:blur(15px)}.mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:9px;color:#a0aca0;width:80px}.mobile-nav a.active{color:var(--green);font-weight:650}.mobile-nav svg{width:21px;height:21px}#main{padding:27px 20px 24px}h1{font-size:26px;letter-spacing:-1.2px}.page-heading{gap:12px;margin-bottom:25px}.page-heading .button{font-size:10px;padding:9px 12px;min-height:36px}.page-heading .button svg{width:15px}.eyebrow{font-size:9px;margin-bottom:9px}.subtitle{font-size:11px;line-height:1.9}.dashboard-stats{gap:8px;margin-bottom:27px}.stat-box{padding:14px 10px;display:block}.stat-icon{width:27px;height:27px;border-radius:8px;margin-bottom:10px}.stat-icon svg{width:16px;height:16px}.stat-number{font-size:23px}.stat-label{font-size:9px}.stat-number small{font-size:9px}.section-heading h2{font-size:16px}.section-heading span{font-size:10px}.deck-grid{grid-template-columns:1fr;gap:14px}.deck-top{padding:21px 21px 16px}.deck-visual{width:35px;height:35px;margin-bottom:14px}.deck-name-row h3{font-size:16px}.deck-progress{margin-top:16px}.new-deck-tile{min-height:125px;gap:6px}.add-symbol{width:30px;height:30px;line-height:26px;font-size:21px}.tip{padding:16px;margin-top:20px}.tip p{font-size:10px}.app-footer{padding:18px 21px;font-size:8px}.detail-actions .button{font-size:11px;min-height:38px}.panel{padding:20px;margin-bottom:17px}.panel h2{font-size:15px}.list-card{padding:16px;gap:10px}.list-front{font-size:19px}.list-back{font-size:11px}.list-actions{flex-direction:column}.list-actions .icon-button{min-width:30px;min-height:30px}.list-actions svg{width:15px;height:15px}.import-grid,.settings-grid{grid-template-columns:1fr;gap:15px}.search{max-width:180px}.search input{font-size:11px}.study-title h1{font-size:18px}.study-counter{font-size:10px}.study-hint{font-size:9px}.study-stage{height:clamp(335px,52dvh,560px);margin-bottom:14px}.card-content{padding:26px 20px}.card-question{font-size:50px}.card-answer{font-size:20px}.card-question.reverse{font-size:24px}.card-side-label{margin-bottom:20px}.card-status{padding:12px 15px}.card-metrics{font-size:9px;gap:7px}.review-controls{gap:9px}.review-controls button{height:43px;font-size:12px}.study-caption{margin-top:12px}.back-link{margin-bottom:18px}.undo-row{margin-top:6px}.complete{padding:35px 0}.complete h1{font-size:25px}dialog{padding:23px}#toast{left:50%;bottom:94px}.update-banner{padding:10px 20px}.topbar .button{padding:5px 8px;font-size:9px}.topbar .connection{max-width:110px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
[hidden]{display:none!important}.card-status{font-size:12px}.card-status-head strong{font-size:12px}.card-metrics,.card-due{font-size:11px}.box-bars i{height:5px}
.selected-file{overflow-wrap:anywhere}
.cloud-status {font-size:12px;color:var(--green,#397d60);text-decoration:none;white-space:nowrap;border-radius:20px;padding:6px 10px;background:#edf4ef;}
.cloud-status[hidden] {display:none;}
.cloud-status[data-status="conflict"],.cloud-status[data-status="error"] {background:#fff1dc;color:#8b560c;}
.cloud-panel {margin-bottom:24px;}
.cloud-panel h2 {display:flex;align-items:center;gap:8px;}
.cloud-panel h2 svg {width:20px;height:20px;}
.cloud-panel p {line-height:1.65;overflow-wrap:anywhere;}
.cloud-state {font-weight:600;}
.cloud-email {color:#68756d;font-size:13px;}
.compact-stats {grid-template-columns:repeat(2,minmax(0,1fr));}
.card-list-toolbar {display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px;flex-wrap:wrap;}
.card-list-toolbar .search {min-width:180px;max-width:420px;}
.card-result-count {margin-bottom:14px;}
.card-pagination {display:flex;justify-content:center;align-items:center;gap:18px;margin-top:24px;}
.card-pagination span {font-size:12px;color:var(--muted);}
.review-settings-panel h2 {display:flex;gap:9px;align-items:center;}
.review-settings-fields {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.deck-summary .stat-number {overflow-wrap:anywhere;}
.deck-summary {grid-template-columns:repeat(3,minmax(0,1fr));}
.deck-summary .stat-box {min-width:0;}
.learning-overview-grid {display:grid;grid-template-columns:190px minmax(0,1fr);gap:32px;align-items:center;}
.goal-summary .eyebrow {display:block;margin-bottom:5px;}
.goal-summary strong {font-size:46px;line-height:1.2;color:var(--green);letter-spacing:-2px;display:block;}
.goal-summary strong small {font-size:23px;margin-left:4px;}
.goal-summary p {font-size:12px;color:var(--muted);margin:10px 0 0;}
.interval-distribution {margin:0;min-width:0;}
.interval-distribution figcaption {font-size:12px;color:var(--muted);margin-bottom:15px;}
.interval-chart {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;}
.interval-column {min-width:0;text-align:center;--bar-color:#a5b5b0;}
.interval-count {display:block;font-size:11px;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.interval-track {height:145px;display:flex;align-items:flex-end;border-bottom:1px solid var(--line);margin:5px 0 8px;}
.interval-track span {display:block;width:100%;background:var(--bar-color);border-radius:5px 5px 0 0;}
.interval-label {display:block;font-size:10px;color:var(--muted);line-height:1.6;}
.interval-color-1 {--bar-color:#e66c62;}.interval-color-2 {--bar-color:#e9a34a;}.interval-color-3 {--bar-color:#d4bc4f;}.interval-color-4 {--bar-color:#88b873;}.interval-color-5 {--bar-color:#4ba98d;}.interval-color-6 {--bar-color:#658cdb;}
.learning-overview>.settings-notice {margin-bottom:0;}
.study-hint {flex-wrap:wrap;gap:5px 14px;}
.study-feedback {position:absolute;top:24px;left:50%;transform:translateX(-50%);z-index:4;opacity:0;pointer-events:none;padding:12px 26px;border-radius:14px;background:#e1f1e7;color:#175f40;border:2px solid #398663;font-size:30px;font-weight:750;white-space:nowrap;box-shadow:0 8px 28px #18382d25;}
.study-feedback.visible {opacity:1;}
.study-feedback.wrong {background:#fff0ed;color:#ab3a32;border-color:#da6b5e;}
.study-feedback.previous {background:#edf1ff;color:#4c629e;border-color:#778cc8;font-size:21px;}
.swipe-label.previous {color:#4c629e;border-color:#778cc8;}
@media(max-width:760px) {.learning-overview-grid {grid-template-columns:1fr;gap:22px;}.goal-summary strong {font-size:40px;}.goal-summary .deck-progress {max-width:260px;}.interval-chart {gap:5px;}.interval-count {font-size:10px;}.interval-label {font-size:9px;}.interval-track {height:115px;}.deck-summary .stat-box {padding:14px 8px;}.deck-summary .stat-label {font-size:10px;line-height:1.5;}.deck-summary .stat-number {font-size:23px;}.study-feedback {top:20px;font-size:27px;padding:10px 24px;}}
@media(max-width:760px) {.review-settings-fields {grid-template-columns:1fr;gap:2px;}.card-list-toolbar .search {max-width:none;flex-basis:100%;}}
.learning-stats {grid-template-columns:repeat(4,minmax(0,1fr));}
.learning-stats .stat-box {min-width:0;padding:18px 14px;gap:10px;}
.study-options {border:0;padding:0;margin:18px 0;min-width:0;}
.study-options legend {font-size:11px;color:#718075;margin-bottom:9px;}
.study-choice {display:flex;align-items:center;gap:12px;margin:8px 0;padding:14px;border:1px solid var(--line);border-radius:12px;cursor:pointer;}
.study-choice:has(input:checked) {border-color:var(--green);background:var(--mint);}
.study-choice input[type=radio] {width:17px;min-width:17px;height:17px;display:inline-block;margin:0;padding:0;accent-color:var(--green);box-shadow:none;}
.study-choice strong {font-size:13px;font-weight:600;color:var(--ink);}
.study-choice small {display:block;margin-top:4px;font-size:11px;color:var(--muted);}
.session-mode {font-size:11px;color:var(--green);margin:0 0 12px;}
.sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
body.studying {height:100dvh;overflow:hidden;overscroll-behavior:none;}
.studying .sidebar,.studying .topbar,.studying .app-footer,.studying .mobile-nav,.studying #update-banner {display:none;}
.studying .workspace {margin:0;padding:0;height:100dvh;min-height:0;}
.studying #main {height:100%;min-height:0;max-width:none;display:flex;padding:calc(6px + env(safe-area-inset-top)) calc(6px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(6px + env(safe-area-inset-left));}
.studying .study-wrap {display:flex;flex-direction:column;gap:4px;width:100%;height:100%;min-height:0;max-width:none;margin:0;}
.studying .study-stage {height:auto;min-height:0;flex:1;padding:0;margin:0;border-radius:14px;}
.studying .flashcard,.studying .next-card {border-radius:14px;}
.study-toolbar {position:absolute;top:6px;left:8px;right:8px;height:32px;z-index:2;display:flex;align-items:center;justify-content:space-between;pointer-events:none;}
.study-toolbar .icon-button {pointer-events:auto;min-width:32px;min-height:32px;background:#ffffffed;color:#799084;}
.study-toolbar .icon-button svg {width:17px;height:17px;}
.study-toolbar .study-counter {font-size:11px;}
.studying .card-content {margin-top:40px;padding:16px clamp(16px,4vw,60px);}
.studying .card-question {font-size:clamp(48px,6vw,76px);}
.studying .card-question.reverse,.studying .card-question.sentence {font-size:clamp(22px,2.5vw,32px);line-height:1.65;letter-spacing:0;}
.studying .card-question.paragraph {font-size:clamp(20px,2vw,26px);line-height:1.7;letter-spacing:0;}
.studying .card-answer {font-size:clamp(20px,2vw,26px);padding-top:18px;border-top:1px solid var(--line);}
.studying .review-controls {grid-template-columns:minmax(64px,.7fr) 1fr 1fr;gap:6px;flex-shrink:0;}
.studying .review-controls .button {height:40px;min-height:40px;padding:6px 10px;font-size:12px;}
.studying .study-feedback {top:48px;}
.studying .swipe-label {top:48px;}
.studying #toast {left:50%;bottom:calc(62px + env(safe-area-inset-bottom));}
:root {--card-font-scale:1;--card-bg:#ffffff;--card-ink:#253c35;}
.personal-settings-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;}
.personal-settings-panel>p {color:var(--muted);font-size:12px;}
.range-row {display:flex;align-items:center;gap:12px;}
.range-row input[type=range] {flex:1;min-width:0;padding:0;accent-color:var(--green);height:32px;}
.range-row output {min-width:48px;text-align:right;font-size:12px;}
.color-settings {display:flex;gap:24px;align-items:flex-start;}
.color-settings input[type=color] {width:72px;height:42px;padding:4px;cursor:pointer;}
.appearance-preview {background:var(--card-bg);color:var(--card-ink);border:1px solid var(--line);border-radius:12px;padding:24px;text-align:center;margin-top:18px;overflow-wrap:anywhere;}
.appearance-preview strong {display:block;font-size:calc(32px * var(--card-font-scale));line-height:1.5;}
.appearance-preview span {display:block;font-size:calc(20px * var(--card-font-scale));}
.pronunciation-button {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;border:1px solid currentColor;border-radius:9px;background:transparent;color:inherit;opacity:.75;padding:6px;cursor:pointer;touch-action:manipulation;}
.pronunciation-button svg {width:18px;height:18px;}
.pronunciation-button:hover,.pronunciation-button[aria-pressed=true] {opacity:1;}
.pronunciation-button[aria-pressed=true] {box-shadow:0 0 0 2px currentColor;}
.card-text-row {display:flex;align-items:flex-start;gap:8px;width:100%;flex-shrink:0;}
.card-text-row .card-question,.card-text-row .card-answer {flex:1;min-width:0;width:auto;}
.card-text-row .pronunciation-button {margin-top:5px;}
.card-text-row.answer-row {margin-top:26px;padding-top:18px;border-top:1px solid currentColor;}
.studying .answer-row .card-answer {margin:0;padding:0;border:0;}
.studying .flashcard,.list-card {background:var(--card-bg);color:var(--card-ink);}
body.studying {background:var(--card-bg);}
.studying .study-counter,.studying .card-question,.studying .card-answer,.studying .reveal-prompt {color:var(--card-ink);}
.studying .reveal-prompt {opacity:.7;}
.studying .card-question {font-size:calc(clamp(48px,6vw,76px) * var(--card-font-scale));}
.studying .card-question.reverse,.studying .card-question.sentence {font-size:calc(clamp(22px,2.5vw,32px) * var(--card-font-scale));}
.studying .card-question.paragraph {font-size:calc(clamp(20px,2vw,26px) * var(--card-font-scale));}
.studying .card-answer {font-size:calc(clamp(20px,2vw,26px) * var(--card-font-scale));}
.list-card-content {min-width:0;flex:1;}
.list-text-row {display:flex;align-items:flex-start;gap:8px;}
.list-text-row+.list-text-row {margin-top:8px;}
.list-text-row .list-front,.list-text-row .list-back {min-width:0;flex:1;}
.list-front {font-size:calc(20px * var(--card-font-scale));}
.list-back {font-size:calc(12px * var(--card-font-scale));color:inherit;margin-top:0;}
.list-card .list-meta {color:inherit;opacity:.7;}
@media(max-width:700px){.personal-settings-grid {grid-template-columns:1fr;gap:14px;}.list-front {font-size:calc(19px * var(--card-font-scale));}.list-back {font-size:calc(12px * var(--card-font-scale));}}
.studying .next-card {inset:0;display:flex;flex-direction:column;gap:0;background:var(--card-bg);color:var(--card-ink);border:1px solid #dee7dd;opacity:0;transform:translateY(10px) scale(.98);pointer-events:none;overflow:hidden;}
.incoming-content {flex:1;width:100%;min-height:0;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:safe center;margin-top:40px;padding:16px clamp(16px,4vw,60px);}
.incoming-row {display:flex;align-items:flex-start;gap:8px;width:100%;flex-shrink:0;}
.incoming-question {min-width:0;flex:1;margin:0;font-weight:600;line-height:1.4;letter-spacing:2px;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;font-size:calc(clamp(48px,6vw,76px) * var(--card-font-scale));}
.incoming-question.reverse,.incoming-question.sentence {font-size:calc(clamp(22px,2.5vw,32px) * var(--card-font-scale));line-height:1.65;letter-spacing:0;}
.incoming-question.paragraph {font-size:calc(clamp(20px,2vw,26px) * var(--card-font-scale));line-height:1.7;letter-spacing:0;}
.incoming-answer-row {margin-top:26px;padding-top:18px;border-top:1px solid currentColor;}
.incoming-answer {min-width:0;flex:1;line-height:1.6;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;font-size:calc(clamp(20px,2vw,26px) * var(--card-font-scale));}
.incoming-speaker {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;margin-top:5px;border:1px solid currentColor;border-radius:9px;opacity:.75;padding:6px;}
.incoming-speaker svg {width:18px;height:18px;}
.incoming-prompt {font-size:11px;opacity:.7;margin-top:34px;display:flex;gap:7px;align-items:center;}
.incoming-prompt svg {width:15px;height:15px;}
.incoming-complete {display:flex;flex-direction:column;align-items:center;gap:14px;color:var(--card-ink);font-size:24px;font-weight:600;margin:auto;}
.incoming-complete svg {width:44px;height:44px;}
.study-interval-footer {flex-shrink:0;padding:12px clamp(12px,4vw,40px);color:var(--card-ink);border-top:1px solid color-mix(in srgb,currentColor 16%,transparent);}
.study-intervals {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;text-align:center;}
.study-intervals dt {font-size:11px;opacity:.75;line-height:1.5;}
.study-intervals dd {margin:4px 0 0;font-size:14px;font-weight:650;line-height:1.5;overflow-wrap:anywhere;}
.retry-interval-note {margin:6px 0 0;text-align:center;font-size:10px;opacity:.75;}
.complete-actions {display:flex;justify-content:center;gap:10px;flex-wrap:wrap;}
.complete .next-set-availability {margin:16px 0 0;}
@media(max-width:360px){.study-intervals dt {font-size:10px;}.study-intervals dd {font-size:12px;}.study-interval-footer {padding:9px 10px;}}
.auto-pronunciation-settings {grid-column:1/-1;border-top:1px solid var(--line);padding-top:16px;}
.auto-pronunciation-settings .checkbox {font-size:13px;align-items:center;margin-top:0;}
.auto-pronunciation-settings select:disabled {opacity:.55;cursor:not-allowed;}
.study-feedback {transition:opacity .14s ease,transform .18s ease;transform:translateX(-50%) translateY(4px) scale(.95);}
.study-feedback.visible {transform:translateX(-50%) translateY(0) scale(1);}
.study-toolbar-actions {display:flex;align-items:center;gap:6px;pointer-events:auto;}
.flashcard.editing {cursor:default;user-select:text;touch-action:auto;}
.flashcard.editing:active {cursor:default;}
.study-edit-form {flex:1;min-height:0;display:flex;flex-direction:column;padding:48px clamp(18px,4vw,60px) 18px;}
.study-edit-fields {flex:1;min-height:0;display:grid;grid-template-rows:auto minmax(96px,1fr) auto minmax(96px,1fr);gap:6px;}
.study-edit-fields label {margin:0;color:currentColor;opacity:.75;font-size:12px;}
.study-edit-fields textarea {min-height:0;resize:none;background:color-mix(in srgb,var(--card-bg) 90%,white);color:var(--card-ink);border-color:color-mix(in srgb,currentColor 18%,transparent);font-size:18px;line-height:1.6;}
.studying .study-edit-controls {grid-template-columns:1fr 1fr;}
@media(prefers-reduced-motion:reduce){.study-feedback {transition:none;}}
@media(max-width:1050px) {.learning-stats {grid-template-columns:repeat(2,minmax(0,1fr));}.learning-stats .stat-box {display:flex;}.learning-stats .stat-icon {margin-bottom:0;}}
@media(max-width:600px) {.topbar-right {gap:6px;}.cloud-status {font-size:10px;padding:5px 6px;} .topbar-right:has(.cloud-status:not([hidden])) .connection {display:none;} .topbar-right:has(.cloud-status:not([hidden])) .avatar {display:none;}}
