:root{color-scheme:light;--bg:#f1f0ed;--surface:#fbfaf7;--surface-2:#e9ebee;--ink:#273549;--muted:#69717d;--accent:#4d657e;--line:#dedfdc;--soft:#e8edf2;--warn:#8f6046;--warn-bg:#f2e9e2;--radius:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;font-synthesis:none;line-height:1.65}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:15px}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.45}a{color:var(--accent);text-decoration:none}p{margin:0 0 12px}h1,h2,h3{margin:0;font-weight:620;line-height:1.35;letter-spacing:-.025em}h1{font-size:34px}h2{font-size:19px}h3{font-size:16px}small,.small-text{font-size:12px}strong{font-weight:620}svg{flex:none;vertical-align:middle}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #9aadc1;outline-offset:3px}[hidden]{display:none!important}.skip{position:absolute;top:-80px;left:12px;background:var(--ink);color:white;padding:12px;z-index:100}.skip:focus{top:12px}.app-shell{min-height:100vh}.sidebar{width:220px;position:fixed;left:0;top:0;bottom:0;padding:32px 22px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-size:23px;font-weight:650;letter-spacing:-.6px}.brand-mark{background:var(--ink);color:#faf8f4;display:grid;place-items:center;width:42px;height:45px;border-radius:14px;font-family:Georgia,serif;font-size:35px;font-weight:400;line-height:1;padding-bottom:7px}.brand small{font-size:10px;display:block;color:var(--muted);font-weight:450;letter-spacing:1px;margin-top:2px}.nav-label{margin:48px 14px 12px;color:#888c93;font-size:11px;letter-spacing:2px}.sidebar nav{display:grid;gap:8px}.nav-item{width:100%;display:flex;align-items:center;gap:14px;padding:13px 15px;border:0;border-radius:12px;background:transparent;font-size:15px;color:var(--muted);text-align:left}.nav-item.active{background:var(--soft);color:var(--ink);font-weight:600}.nav-item:hover{background:#eef0f2}.nav-item b{margin-left:auto;font-size:11px;background:#d3dce5;padding:1px 7px;border-radius:6px}.sidebar-bottom{margin-top:auto;padding:28px 10px 0}.sidebar-bottom p{font-size:11px;line-height:1.9;color:var(--muted);margin:10px 0}.local-label{font-size:12px;font-weight:550;display:flex;gap:8px;align-items:center}.local-label i{width:6px;height:6px;border-radius:50%;background:#7d8fa1}.version{font-size:10px;letter-spacing:2px;color:#9398a0;margin-top:32px}.main-wrap{margin-left:220px}.topbar{height:86px;padding:0 48px;border-bottom:1px solid #e1e2de;display:flex;align-items:center;justify-content:space-between;gap:12px}.date{font-size:12px;color:var(--muted);letter-spacing:.5px}.top-actions{display:flex;align-items:center;gap:18px}.avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#dedfdc;color:#5d6771;font-size:12px}.save-state{font-size:11px;color:var(--muted)}.mobile-brand,.mobile-nav{display:none}main{max-width:1180px;margin:0 auto;padding:39px 48px 16px;outline:none}.page-head{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:28px}.eyebrow{font-size:10px;font-weight:600;color:var(--muted);letter-spacing:2.7px;margin:0 0 12px;text-transform:uppercase}.sub{color:var(--muted);font-size:13px;line-height:1.85;margin:10px 0 0}.btn{display:inline-flex;gap:9px;align-items:center;justify-content:center;border:1px solid transparent;border-radius:11px;padding:11px 17px;min-height:44px;background:transparent;font-size:13px;font-weight:550;white-space:nowrap;transition:background .15s,color .15s,transform .15s}.btn:hover:not(:disabled){filter:brightness(.97)}.btn.primary{background:var(--accent);color:#fff}.btn.outline{border-color:#cbd0d4;background:var(--surface);color:var(--ink)}.btn.quiet{color:var(--muted)}.btn.small{font-size:12px;padding:7px 10px;min-height:38px}.btn.full{width:100%}.btn.text-btn,.text-btn{background:none;border:0;padding:6px 0;color:var(--accent);display:inline-flex;align-items:center;gap:7px;font-size:12px;min-height:36px;font-weight:550}.icon-btn{border:1px solid var(--line);border-radius:10px;background:transparent;min-height:42px;width:42px;padding:8px}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.actions.center{justify-content:center}.hero{display:flex;justify-content:space-between;background:#31465b;color:#f8f6f2;border-radius:var(--radius);padding:34px 36px;position:relative;overflow:hidden;min-height:248px;margin-bottom:20px}.hero-copy{position:relative;z-index:1;max-width:70%}.hero-label{color:#c7d1dc;font-size:11px;letter-spacing:2px;margin-bottom:17px}.hero h2{font-size:27px;color:#faf8f3;margin-bottom:12px;font-weight:550}.hero p{font-size:12px;line-height:1.95;color:#d0d7df;max-width:430px;margin-bottom:23px}.hero-btn{background:#ecefea;color:#34485b;padding:11px 18px}.hero-link{color:#dce1e6;font-size:12px}.hero-number{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:160px}.hero-number>span{font-size:88px;line-height:1;letter-spacing:-5px;font-weight:300;color:#e1e6eb;z-index:1}.hero-number small{letter-spacing:2px;color:#c1cbd6;margin-top:14px;z-index:1}.orbit{position:absolute;border:1px solid #ffffff15;width:230px;height:230px;transform:rotate(-15deg);border-radius:50%}.orbit-two{width:310px;height:310px}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 22px}.metric{background:var(--surface);border:1px solid var(--line);padding:20px 23px;border-radius:16px}.metric>span{font-size:12px;color:var(--muted)}.metric strong{display:block;font-size:37px;line-height:1.3;font-weight:450;margin:8px 0 5px;letter-spacing:-1.5px}.metric strong small{font-size:13px;font-weight:400;letter-spacing:0;color:var(--muted);margin-left:10px}.metric p{font-size:11px;color:#868a91;margin:0}.two-col{display:grid;grid-template-columns:1.12fr 1fr;gap:20px}.panel{padding:24px 26px;background:var(--surface);border:1px solid var(--line);border-radius:17px;margin-bottom:20px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:19px}.section-head h2{font-size:16px}.section-head .text-btn{font-size:11px;min-height:24px}.pace-choice{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pace{background:transparent;border:1px solid var(--line);border-radius:10px;padding:12px 10px;text-align:left;min-height:77px}.pace.selected{border-color:#8a9db0;background:#e9eef3}.pace>span{display:block;font-size:12px;margin-bottom:7px;white-space:nowrap}.pace i{font-style:normal;font-size:8px;margin-left:4px;color:var(--accent);background:#dbe3eb;padding:1px 4px;border-radius:3px}.pace b{font-size:22px;font-weight:500;line-height:1}.pace small{font-size:9px;font-weight:400;color:var(--muted)}.hint{font-size:11px;line-height:1.9;color:var(--muted);margin:13px 0 0}.muted{color:var(--muted)}.tiny{font-size:11px;color:var(--muted);margin:7px 0 0;line-height:1.8}.notice{background:var(--warn-bg);color:#795b48;font-size:12px;line-height:1.85;border-radius:9px;padding:11px 13px;margin:16px 0 0}.week-bars{display:flex;gap:14px;justify-content:space-between;align-items:flex-end;padding-top:2px}.bar-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.bar-item b{font-weight:500;color:#66788a;font-size:11px}.bar-track{height:54px;width:100%;max-width:28px;display:flex;align-items:flex-end}.bar-track i{width:100%;background:#bac7d4;border-radius:4px;min-height:3px;display:block}.bar-item:first-child .bar-track i{background:#6a839b}.memory-overview{display:flex;gap:40px;align-items:center;padding:3px 0 5px}.memory-overview>div{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--muted)}.memory-overview b{font-size:22px;line-height:1;margin-left:8px;color:var(--ink);font-weight:500}.dot{width:8px;height:8px;border-radius:3px;background:#c8cbd0}.dot.weak{background:#b89077}.dot.learning{background:#b6c5d4}.dot.stable{background:#5f7992}.main-footer{font-size:11px;color:#8a8f94;display:flex;justify-content:space-between;max-width:1180px;margin:auto;padding:20px 48px 32px}.main-footer span{font-size:10px}.resume-strip{display:flex;align-items:center;justify-content:space-between;background:#e5eaf0;border:1px solid #c6d0db;padding:14px 18px;border-radius:12px;margin-bottom:18px;gap:14px}.resume-strip strong{font-size:13px}.resume-strip span{display:block;font-size:11px;color:var(--muted)}.demo-banner{padding:10px 48px;background:#e2e7ed;color:#55677c;font-size:12px;border-bottom:1px solid #d2dae3}.empty{text-align:center;padding:54px 20px;background:var(--surface);border:1px dashed #c8ced3;border-radius:18px}.empty-icon{background:var(--soft);border-radius:14px;width:56px;height:56px;margin:0 auto 18px;display:grid;place-items:center;color:var(--accent)}.empty h2{margin-bottom:12px}.empty p{color:var(--muted);font-size:13px;max-width:460px;margin:0 auto 22px}.library-tools{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.search{display:flex;gap:8px;max-width:570px;flex:1;align-items:center}.search input{margin:0;background:var(--surface)}input,textarea,select{padding:12px 13px;color:var(--ink);background:#fdfcf9;border:1px solid #cdd1d3;border-radius:9px;width:100%;min-width:0;font-size:14px}input[type=checkbox],input[type=radio]{width:17px;height:17px;accent-color:var(--accent);margin:0;vertical-align:middle;flex:none}textarea{resize:vertical;line-height:1.8}input::placeholder,textarea::placeholder{color:#9a9da2;font-size:12px}.check-line{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}.word-list{display:grid;gap:16px}.word-card{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:21px 25px}.word-head{display:flex;align-items:center;gap:14px}.word-head h2{font-size:25px;font-weight:500;letter-spacing:0}.word-head .text-btn{margin-left:auto}.sense-row{display:flex;gap:15px;align-items:flex-start;border-top:1px solid #e5e5e1;padding-top:16px;margin-top:13px}.sense-index{color:#a0a5aa;font-size:11px;padding-top:5px}.sense-info{flex:1;min-width:0}.sense-title{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.sense-title h3{font-size:15px;letter-spacing:0;overflow-wrap:anywhere}.badge{border-radius:5px;font-size:10px;font-weight:500;white-space:nowrap;display:inline-block;padding:3px 7px;line-height:1.6;background:#eee;color:#6c747c}.badge.weak{background:#efe6de;color:#8d644a}.badge.learning{background:#e7edf3;color:#5b7288}.badge.stable{background:#dce5ee;color:#3e5b76}.badge.new{background:#e9e9e5;color:#7e858b}.context-label{display:inline-block;background:#eeefec;color:#78818a;padding:2px 7px;border-radius:4px;font-size:11px;margin-top:7px}.example-preview{font-size:13px;color:#687887;margin:9px 0 0;overflow-wrap:anywhere}.word-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.word-actions .quiet{font-size:11px}.mode-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:20px 0}.mode-option{border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;gap:13px;padding:16px;cursor:pointer}.mode-option:has(input:checked){background:var(--soft);border-color:#abbac8}.mode-option strong{display:block;font-size:13px}.mode-option small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.square-icon{display:grid;place-items:center;width:43px;height:43px;background:var(--soft);border-radius:11px;margin-bottom:16px}.action-panel p{font-size:13px;color:var(--muted);margin:11px 0 23px;line-height:1.85}.muted-panel{background:#ebece8;border-color:#dddeda}.muted-panel p{font-size:12px;line-height:1.9;margin:10px 0 0;color:var(--muted)}.profile-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.profile-radio{border:1px solid var(--line);border-radius:11px;padding:15px;cursor:pointer;position:relative}.profile-radio:has(input:checked){background:var(--soft);border-color:#8fa3b6}.profile-radio strong{font-size:14px;display:block;margin:12px 0 4px}.profile-radio>span{font-size:11px;display:block;color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;margin:22px 0 8px}.form-grid label{font-size:12px;color:var(--muted)}.form-grid input,.form-grid select{display:block;margin-top:8px}.form-end{margin-top:24px;border-top:1px solid var(--line);padding-top:20px}.backup-date{padding:17px 0;color:var(--muted);font-size:12px}.status-line{display:flex;justify-content:space-between;margin:13px 0;font-size:13px}.status-line strong{font-weight:500}.history-row{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid var(--line)}.history-row:last-child{border-bottom:none}.history-row>div:first-child{display:flex;align-items:center;gap:14px}.history-row strong{font-size:16px;font-weight:550}.history-row span:not(.badge){font-size:12px;color:var(--muted)}.history-row>div:last-child{text-align:right}.history-row small{display:block;font-size:10px;margin-top:3px;color:var(--muted)}.studying .sidebar{display:none}.studying .main-wrap{margin-left:0}.studying .topbar{max-width:1100px;margin:auto;border:none}.studying main{padding-top:10px}.studying .main-footer{max-width:800px}.studying .mobile-nav{display:none}.study-wrap{max-width:740px;margin:0 auto 25px}.study-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;font-size:11px;color:var(--muted)}.study-top .btn{padding-left:0}.progress-line{height:3px;background:#dce0e2;border-radius:4px;overflow:hidden;margin-bottom:21px}.progress-line i{height:100%;display:block;background:#8197ad;transition:width .2s}.study-card{padding:36px 40px;border:1px solid var(--line);background:var(--surface);border-radius:22px;min-height:450px}.study-card .eyebrow{margin-bottom:18px}.italian-word{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:50px;letter-spacing:-1px;overflow-wrap:anywhere;line-height:1.18}.question-prompt{font-size:38px;margin-bottom:15px;overflow-wrap:anywhere}.question-prompt.italian-word{font-size:48px}.intro-card .italian-word{font-size:56px;margin-bottom:15px}.meaning{font-size:21px;font-weight:450;margin:8px 0}.audio-area{margin-top:25px}.translation{font-size:12px;color:var(--muted);margin:10px 0}.study-bottom{display:flex;justify-content:flex-end;margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}.study-bottom .primary{min-width:172px}.study-note{text-align:center;color:#8b9297;font-size:10px;margin-top:15px}.question-example{margin:15px 0;font-size:14px;color:#627386;overflow-wrap:anywhere}.question-audio{margin:15px 0 6px;max-width:100%}.confidence{border:0;margin:24px 0 21px;padding:0;display:flex;gap:9px 15px;flex-wrap:wrap}.confidence legend{font-size:11px;color:var(--muted);margin-bottom:10px}.confidence label{font-size:12px;display:flex;align-items:center;gap:6px;cursor:pointer}.confidence input{width:14px;height:14px}.answer-label{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.answer-input{font-size:22px;min-height:62px;background:#fffefb}.accent-keys{display:flex;gap:7px;margin:11px 0}.accent-keys button{border:1px solid #d5d8dc;background:#f1f2ef;border-radius:7px;font-size:16px;min-width:39px;min-height:38px}.answer-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:26px}.options{display:grid;gap:10px;margin:16px 0}.option{display:flex;gap:15px;align-items:center;text-align:left;border:1px solid #d6dbe0;background:#f8f9f6;border-radius:11px;min-height:59px;padding:12px 16px;font-size:18px}.option:hover{background:#e7edf3;border-color:#9badbf}.option-key{font-size:11px;background:#e9edf0;color:#788895;width:23px;height:25px;display:grid;place-items:center;border-radius:5px}.feedback{background:#e8eef3;border:1px solid #c8d5e0;border-radius:14px;padding:22px;margin-top:24px}.feedback.needs-work{background:#f4ece5;border-color:#decabc}.feedback>strong{font-size:15px}.feedback p{font-size:12px;color:var(--muted);margin:8px 0}.answer-revealed{display:flex;align-items:baseline;gap:17px;flex-wrap:wrap;margin:18px 0 12px}.answer-revealed b{font-size:29px;font-family:Georgia,serif;font-weight:400}.answer-revealed span{font-size:16px}.question-instruction{font-size:28px;margin-bottom:11px}.match-board{display:flex;position:relative;gap:0;margin-top:24px}.match-column{width:43%;display:grid;gap:13px;z-index:1}.match-gap{width:14%}.match-item{background:#f8f9f6;border:1px solid #cfd5da;border-radius:11px;min-height:62px;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;font-size:17px;overflow-wrap:anywhere;text-align:left}.match-item.selected{outline:2px solid #7890a7;background:#e3ebf3}.match-item.matched{opacity:1;background:#e2eaf0;color:#4b6580;border-color:#becddb}.match-item[lang=it]{font-size:20px;font-family:Georgia,serif}.connection-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}.connection-lines path{stroke:#91a8bc;stroke-width:2;fill:none}.pair-status{min-height:32px;color:var(--muted);font-size:12px;margin:16px 0}.complete-card{text-align:center;background:var(--surface);border:1px solid var(--line);padding:48px 34px;border-radius:22px}.complete-mark{width:64px;height:64px;border-radius:50%;background:#dde7f0;color:#496984;display:grid;place-items:center;margin:0 auto 24px}.complete-mark svg{width:31px;height:31px}.complete-card h1{font-size:28px;margin-bottom:15px}.complete-card>p:not(.eyebrow){font-size:13px;color:var(--muted)}.complete-stats{display:flex;justify-content:center;gap:45px;margin:30px 0}.complete-stats strong{font-size:36px;font-weight:450;display:block}.complete-stats span{font-size:11px;color:var(--muted)}.complete-card .actions{margin-top:27px}.form-error{color:#9b4b38;font-size:12px;margin:12px 0}.app-dialog{width:min(620px,calc(100% - 28px));max-height:calc(100dvh - 48px);padding:29px 31px;border:1px solid #d8dce0;border-radius:20px;background:var(--surface);color:var(--ink);box-shadow:0 20px 70px #22304433}.app-dialog::backdrop{background:#27344469;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.dialog-head .eyebrow{margin-bottom:7px}.app-dialog label:not(.check-line){display:block;font-size:12px;color:var(--muted);margin:14px 0}.app-dialog label>span{color:var(--warn)}.app-dialog label input,.app-dialog label textarea{display:block;margin-top:7px}.dialog-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);background:#2f4356;color:#f7f7f2;box-shadow:0 5px 24px #14233122;border-radius:11px;padding:13px 22px;z-index:1000;max-width:min(600px,90vw);font-size:13px;line-height:1.8}.fatal{max-width:650px;margin:12vh auto;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:18px}.fatal h1{font-size:25px;margin-bottom:14px}.fatal p{color:var(--muted);font-size:14px}.fatal pre{font-size:12px;white-space:pre-wrap}.import-comparison{margin:19px 0;background:var(--soft);padding:18px;border-radius:10px}.import-comparison p{font-size:13px}.bottom-error{padding:10px 15px;background:var(--warn-bg);font-size:12px}.loading-screen{height:100vh;display:grid;place-items:center;color:var(--muted);font-size:14px}
@media(min-width:1450px){main{padding-top:48px}.topbar{padding-left:60px;padding-right:60px}.hero{min-height:270px;padding:39px 40px}.hero h2{font-size:30px}.hero p{font-size:13px}.metric{padding:23px 25px}}
@media(max-width:1160px){.sidebar{width:190px;padding:28px 17px}.main-wrap{margin-left:190px}main{padding:30px 28px 16px}.topbar{padding:0 28px;height:75px}.hero{padding:28px}.hero-number{min-width:130px}.hero-number>span{font-size:74px}.hero-copy{max-width:72%}h1{font-size:29px}.hero h2{font-size:24px}.panel{padding:21px}.pace small{font-size:8px}.two-col{gap:16px}.word-actions{max-width:100px;justify-content:flex-end}.main-footer{padding-left:28px;padding-right:28px}.memory-overview{gap:25px}.save-state{display:none}}
@media(max-width:860px){.sidebar{width:165px;padding:25px 13px}.brand{font-size:20px;gap:8px}.brand small{font-size:8px}.brand-mark{width:35px;height:39px;font-size:30px}.main-wrap{margin-left:165px}.nav-item{gap:11px;padding:13px;font-size:14px}.sidebar-bottom{padding-left:8px}.top-actions{gap:10px}.date{font-size:11px}main{padding:26px 22px 12px}.hero-number{min-width:100px}.hero-number>span{font-size:63px}.hero h2{font-size:21px}.hero-copy{max-width:70%}.hero{padding:26px 24px}.summary-grid{gap:10px}.metric{padding:16px}.metric p{font-size:9px}.metric strong{font-size:31px}.two-col{grid-template-columns:1fr}.profile-grid{grid-template-columns:repeat(2,1fr)}.page-head h1{font-size:27px}.word-actions{max-width:none}.word-card{padding:19px}.sense-row{gap:10px}.word-actions .quiet{padding:4px 5px}.section-head{margin-bottom:16px}.hero .hero-link{display:none}.week-bars{gap:20px}}
@media(max-width:640px){body{font-size:14px}.sidebar{display:none}.main-wrap{margin-left:0}.topbar{height:67px;padding:0 20px;background:var(--surface);border-bottom:1px solid var(--line)}.mobile-brand{display:block;font-family:Georgia,serif;font-size:25px;line-height:1}.mobile-brand b{font-size:20px;margin-left:5px;font-weight:500}.date{display:none}.top-actions{gap:7px}.top-actions .quiet{font-size:10px;padding:7px 8px;min-height:36px}.avatar{width:26px;height:26px;font-size:10px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:20;border-top:1px solid #d9dde0;background:#f9f9f4ed;backdrop-filter:blur(18px);padding:7px 9px max(8px,env(safe-area-inset-bottom));justify-content:space-around}.mobile-nav button{border:0;background:none;display:flex;align-items:center;flex-direction:column;gap:4px;padding:5px 15px;font-size:10px;color:#8b939c;min-height:48px}.mobile-nav button.active{color:var(--accent)}.mobile-nav button.active:before{content:'';position:absolute;top:0;width:25px;height:2px;background:var(--accent);border-radius:3px}main{padding:25px 18px 12px}.page-head{margin-bottom:21px;gap:10px;align-items:flex-start}.page-head h1{font-size:25px}.page-head .eyebrow{font-size:9px;margin-bottom:9px;letter-spacing:2px}.page-head .sub{font-size:11px;max-width:95%}.page-head>.btn{min-height:36px;padding:7px 9px;font-size:10px;margin-top:26px}.page-head>.btn svg{width:14px;height:14px}.hero{padding:26px 23px;min-height:228px;border-radius:17px;margin-bottom:13px}.hero-copy{max-width:77%}.hero h2{font-size:22px;max-width:100%}.hero p{font-size:11px;line-height:1.95;margin-bottom:20px;max-width:95%}.hero-label{font-size:9px;letter-spacing:1.6px;margin-bottom:13px}.hero-btn{font-size:11px;padding:9px 12px;min-height:40px}.hero-number{min-width:68px;align-items:flex-end}.hero-number>span{font-size:53px;letter-spacing:-3px}.hero-number small{font-size:8px;letter-spacing:.4px;text-align:right;max-width:64px}.orbit{width:145px;height:145px;right:-28px}.orbit-two{width:209px;height:209px;right:-60px}.summary-grid{gap:8px;margin-bottom:14px}.metric{padding:14px 12px;border-radius:12px}.metric>span{font-size:10px;white-space:nowrap}.metric strong{font-size:29px;margin-top:7px;line-height:1.25}.metric strong small{font-size:10px;margin-left:4px}.metric p{font-size:9px;line-height:1.6}.panel{padding:21px 19px;border-radius:15px;margin-bottom:14px}.section-head h2{font-size:15px}.two-col{gap:0}.pace{padding:12px 11px;min-height:79px}.pace>span{font-size:12px}.pace b{font-size:22px}.pace small{font-size:9px}.hint{font-size:10px}.main-footer{padding:16px 22px calc(94px + env(safe-area-inset-bottom));font-size:10px}.main-footer span{font-size:9px}.memory-overview{gap:14px;justify-content:space-between}.memory-overview>div{font-size:11px;gap:5px;flex-wrap:wrap}.memory-overview b{font-size:20px;margin-left:2px}.demo-banner{padding:9px 20px;font-size:10px}.resume-strip{padding:12px 14px}.resume-strip strong{font-size:12px}.resume-strip span{font-size:10px}.resume-strip .btn{font-size:11px;padding:8px 11px}.library-tools{gap:10px;flex-wrap:wrap}.search{width:100%;flex:auto}.search input{font-size:13px}.check-line{font-size:11px}.word-card{padding:17px}.word-head h2{font-size:23px}.word-head{gap:9px}.sense-row{flex-wrap:wrap}.sense-info{min-width:75%}.word-actions{margin-left:24px;justify-content:flex-start;gap:13px;margin-top:0}.word-actions .icon-btn{min-height:34px;width:36px;padding:7px}.word-actions .quiet{min-height:34px;font-size:11px}.sense-title h3{font-size:14px}.badge{font-size:9px}.example-preview{font-size:12px}.mode-grid{grid-template-columns:1fr;gap:9px}.mode-option{padding:13px 14px}.mode-option strong{font-size:13px}.mode-option small{font-size:10px}.form-grid{gap:13px}.form-grid label{font-size:11px}.profile-grid{gap:9px}.profile-radio{padding:12px}.history-row{align-items:flex-start;gap:8px}.history-row>div:first-child{flex-direction:column;gap:2px;align-items:flex-start}.history-row strong{font-size:15px}.history-row small{max-width:180px;font-size:9px}.studying .topbar{height:59px;padding:0 18px}.studying main{padding:12px 12px 0}.studying .main-footer{padding-bottom:25px}.study-top{padding:0 6px;gap:7px;font-size:10px;margin-bottom:9px}.study-top .btn{font-size:11px;min-height:32px}.study-top .badge{font-size:8px}.progress-line{margin-bottom:14px}.study-card{padding:28px 22px;min-height:420px;border-radius:18px}.study-card .eyebrow{font-size:9px;letter-spacing:1.7px}.intro-card .italian-word{font-size:49px}.meaning{font-size:19px}.question-prompt{font-size:30px}.question-prompt.italian-word{font-size:43px}.confidence{gap:11px 13px;margin-top:22px;margin-bottom:19px}.confidence label{font-size:11px}.confidence legend{font-size:10px}.question-example{font-size:13px}.answer-input{font-size:21px;min-height:58px}.answer-actions{align-items:center;flex-wrap:wrap;gap:4px}.answer-actions .btn{font-size:12px;padding:10px 12px}.option{font-size:18px;min-height:57px;padding:12px}.study-bottom .primary{width:100%;font-size:13px}.study-note{font-size:9px}.feedback{padding:18px}.feedback>strong{font-size:14px}.feedback p{font-size:11px}.answer-revealed b{font-size:28px}.answer-revealed span{font-size:15px}.accent-keys{gap:7px}.accent-keys button{min-width:35px;min-height:39px}.match-item{font-size:15px;min-height:65px;padding:10px}.match-item[lang=it]{font-size:17px}.match-item svg{width:15px;height:15px}.match-column{width:43.5%;gap:13px}.match-gap{width:13%}.question-instruction{font-size:24px}.complete-card{padding:35px 21px}.complete-card h1{font-size:24px}.complete-stats{gap:27px}.complete-stats strong{font-size:32px}.complete-stats span{font-size:10px}.complete-card .actions .btn{width:100%}.app-dialog{padding:23px 20px;border-radius:17px;max-height:calc(100dvh - 30px)}.dialog-head h2{font-size:19px}.dialog-head .eyebrow{font-size:9px}.app-dialog label{font-size:11px!important}.app-dialog input,.app-dialog textarea{font-size:16px}.toast{bottom:calc(86px + env(safe-area-inset-bottom));padding:11px 17px;font-size:12px;max-width:92vw;width:max-content}.empty{padding:39px 18px}.empty p{font-size:12px}.notice{font-size:11px}.form-error{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
@media print{.sidebar,.topbar,.mobile-nav,.btn,.main-footer{display:none!important}.main-wrap{margin:0}main{padding:0}.panel,.word-card{break-inside:avoid}}
.context-label,.meaning,.translation,.sub,.notice,.question-example,.audio-area{overflow-wrap:anywhere}.word-head h2{min-width:0;overflow-wrap:anywhere}.word-head .text-btn{flex-shrink:0}.option>span:last-child{min-width:0;overflow-wrap:anywhere}.hero-number.many>span{font-size:50px}
@media(max-width:640px){.hero-number.many>span{font-size:34px;letter-spacing:-2px}}

/* 3.0.1: progressive disclosure for settings; existing learning layout unchanged. */
.settings-form .profile-grid{gap:10px;margin:18px 0;grid-template-columns:repeat(2,minmax(0,1fr))}
.settings-form .profile-radio{display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:10px;row-gap:5px;padding:17px 14px;min-height:91px;align-content:center}
.settings-form .profile-radio input{width:18px;height:18px;margin:2px 0 0;grid-column:1;grid-row:1}
.settings-form .profile-radio strong{grid-column:2;grid-row:1;margin:0;display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:15px;line-height:1.5}
.settings-form .profile-radio>span{grid-column:2;font-size:12px;line-height:1.7}
.settings-form .recommended{font-size:10px;font-weight:500;line-height:1.6;border:1px solid #afbfce;color:var(--accent);padding:0 5px;border-radius:4px}
.settings-form .pace-summary{font-size:13px;color:var(--muted);line-height:1.9;margin:12px 0}
.settings-form .custom-setting{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 0 9px}
.settings-form .custom-setting label{font-size:13px}.settings-form .custom-setting input{width:100px;min-height:44px;font-size:16px}
.meaning-help{font-size:12px;color:var(--muted);margin-top:10px}
.meaning-help summary{cursor:pointer;width:fit-content;padding:7px 0;color:var(--accent);line-height:1.7}
.meaning-help p{font-size:12px;line-height:1.9;margin:7px 0 0;max-width:650px}
.settings-save{border-top:1px solid var(--line);margin-top:18px;padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.settings-save>span{color:var(--muted);font-size:11px}.settings-save .btn{min-height:44px}
.simple-field{display:block;font-size:13px;color:var(--muted)}.simple-field input,.simple-field select{display:block;margin-top:8px;font-size:16px;max-width:320px}
.pronunciation-settings .section-head{margin-bottom:12px}.pronunciation-settings .hint{margin-bottom:0}
.settings-advanced>summary{cursor:pointer;display:list-item;list-style-position:outside;margin-left:16px;padding:4px 0;color:var(--ink)}
.settings-advanced>summary>span{display:inline-flex;flex-direction:column;gap:5px;vertical-align:middle;padding-left:4px}
.settings-advanced>summary strong{font-size:15px;font-weight:600}.settings-advanced>summary small{font-size:11px;color:var(--muted);line-height:1.7}
.advanced-content{margin-top:18px;padding-top:17px;border-top:1px solid var(--line)}.advanced-content>.hint{margin:12px 0 18px}
.advanced-content #custom-batch-fields{margin-bottom:22px}.settings-form summary:focus-visible{outline:2px solid var(--accent);outline-offset:5px;border-radius:4px}
@media(min-width:1150px){.settings-form .profile-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:640px){.settings-form .profile-radio{padding:13px 10px;column-gap:8px;min-height:94px}.settings-form .profile-radio strong{font-size:14px;gap:5px}.settings-form .profile-radio>span{font-size:11px}.settings-form .pace-summary{font-size:12px}.settings-form .recommended{font-size:9px}.settings-save>span{font-size:10px}.settings-save .btn{font-size:13px;min-width:114px}.meaning-help summary{min-height:40px;display:flex;align-items:center;gap:6px}.meaning-help summary:before{content:'＋'}.meaning-help[open] summary:before{content:'−'}.meaning-help summary::-webkit-details-marker{display:none}.settings-advanced>summary{padding:7px 0}.simple-field input,.simple-field select{max-width:100%}}
