
:root{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#243c32;background:#f6f5ef;font-synthesis:none;--green:#245b44;--muted:#738177;--line:#e2e7db;--orange:#d08744;--paper:#fffef9;--shadow:0 12px 50px #243c3208}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:var(--green)}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d3a459;outline-offset:3px}h1,h2,h3,p{margin-top:0}button{border:0}h1,h2{letter-spacing:.02em}small,.muted{color:var(--muted)}.hidden{display:none!important}.loading{padding:30vh 20px;text-align:center}.brand{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:750;letter-spacing:2px}.brand img{width:42px;height:42px}.brand small{font-size:10px;display:block;letter-spacing:3px;margin-top:4px;font-weight:500}.pill{display:inline-block;border:1px solid #d7dfc9;border-radius:30px;padding:6px 12px;font-size:12px;color:#607250;background:#f5f8eb}.btn{padding:13px 22px;border-radius:12px;background:var(--green);color:white;font-weight:650;min-height:48px;transition:transform .15s}.btn:hover{transform:translateY(-1px);background:#184c35}.btn.secondary{background:#eaf0e5;color:var(--green)}.btn.outline{border:1px solid #d6ded2;background:transparent;color:var(--green)}.btn.warm{background:#f5e7d2;color:#88632c}.text-btn{background:transparent;color:var(--green);padding:10px}.full{width:100%}.flex{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.eyebrow{font-size:11px;letter-spacing:3px;font-weight:650;color:#7f9074;margin-bottom:16px}.paper{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:28px;box-shadow:var(--shadow)}.lead{font-size:15px;line-height:1.9;color:#6b7b6e}.login-shell{max-width:1220px;margin:0 auto;padding:35px 44px}.login-header{display:flex;justify-content:space-between;align-items:center}.login-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:85px;align-items:center;min-height:calc(100vh - 150px);padding:48px 0}.login-copy h1{font-family:"STKaiti","KaiTi",serif;font-size:54px;font-weight:600;line-height:1.35;margin-bottom:24px}.login-copy h1 em{color:var(--green);font-style:normal}.login-copy .lead{max-width:410px}.login-form{max-width:440px;padding:34px 36px}.login-form h2{font-size:25px;margin-bottom:10px}.form-field{display:flex;flex-direction:column;gap:9px;margin-bottom:20px;font-size:14px}.form-field label{font-weight:650}input,select,textarea{width:100%;border:1px solid #dce2d6;border-radius:10px;background:#fffefb;padding:12px 14px;color:#253e31;min-width:0}input{height:48px}textarea{resize:vertical;min-height:100px}.input-pair{display:grid;grid-template-columns:1fr auto;gap:9px}.captcha-row{display:grid;grid-template-columns:1fr 100px auto;align-items:center;gap:10px}.captcha-question{font-size:18px;font-weight:700;letter-spacing:3px}.consent{display:flex;gap:9px;font-size:12px;line-height:1.8;color:#748074;margin:16px 0}.consent input{width:17px;height:17px;flex:none;margin-top:4px;accent-color:var(--green)}.form-error{min-height:22px;color:#a74934;font-size:13px;line-height:1.6;margin:10px 0}.login-foot{font-size:11px;color:#929a8e;text-align:center;padding:15px;line-height:1.9}.sample{position:relative;max-width:410px;border:1px solid #dfe5d4;background:#fdfcf5;border-radius:17px;margin-top:32px;padding:24px;transform:rotate(-2deg);box-shadow:8px 12px 0 #e9ebdf}.sample-top{display:flex;justify-content:space-between;font-size:12px;color:#7d886e;margin-bottom:18px}.sample-words{display:flex;gap:14px}.hanzi{display:grid;place-items:center;width:68px;height:68px;border:1px solid #d6ddc9;font-size:33px;font-family:"KaiTi",serif;background:linear-gradient(90deg,transparent 49%,#dde3d2 50%,transparent 51%),linear-gradient(transparent 49%,#dde3d2 50%,transparent 51%)}.sample-note{font-size:12px;color:#8c977f;margin:16px 0 0}.sidebar{width:214px;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);background:#fdfdf7;padding:32px 22px;display:flex;flex-direction:column;z-index:10}.sidebar .brand{font-size:19px;gap:9px;letter-spacing:1px}.sidebar .brand img{width:35px;height:35px}.sidebar nav{display:grid;gap:9px;margin-top:52px}.nav{padding:15px;border-radius:12px;color:#7b8675;background:none;text-align:left;font-size:14px;display:flex;align-items:center;gap:14px}.nav b{font-size:19px;font-weight:500;width:24px;text-align:center}.nav.active{background:#eaf0df;color:var(--green);font-weight:650}.sidebar-bottom{margin-top:auto;font-size:12px;line-height:1.9;color:#8a947f}.sidebar-bottom a{font-size:12px}.main{margin-left:214px;max-width:1470px;padding:30px 46px 40px}.page-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:25px;gap:15px}.page-heading h1{font-family:"STKaiti","KaiTi",serif;font-size:33px;font-weight:600;margin:0 0 9px}.page-heading p{margin:0;font-size:13px;color:#7f8879;line-height:1.6}.hero{background:#e9efde;border:1px solid #dce5cc;border-radius:24px;padding:35px 38px;display:grid;grid-template-columns:1.3fr 1fr;gap:28px;overflow:hidden}.hero h2{font-family:"STKaiti","KaiTi",serif;font-size:36px;line-height:1.45;font-weight:500;margin-bottom:15px}.hero p{color:#74836b;font-size:13px;line-height:1.8}.hero .btn{margin:12px 10px 0 0}.hero-note{margin:14px 0 0;font-size:12px!important}.task-paper{align-self:center;background:#fffdf4;transform:rotate(3deg);border:1px solid #d7dec7;border-radius:12px;padding:25px;box-shadow:8px 10px 0 #d6dfc6}.task-paper h3{font-family:"KaiTi",serif;font-weight:500;font-size:20px}.task-row{padding:14px 0;border-bottom:1px dashed #dce1d1;display:flex;justify-content:space-between;font-size:13px;color:#7b8870}.task-row strong{font-size:22px;color:var(--green)}.task-paper small{font-size:11px;line-height:1.7;display:block;margin-top:16px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin:22px 0}.stat{background:var(--paper);border:1px solid var(--line);border-radius:17px;padding:22px 25px}.stat span{font-size:12px;color:#7f8a75}.stat strong{display:block;font-family:Georgia,serif;font-size:36px;font-weight:400;margin:12px 0 6px;color:#31573f}.stat small{font-size:11px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.section-head h2{font-size:17px;margin:0;font-weight:600}.section-head small{font-size:11px}.steps{display:flex;justify-content:space-between;gap:8px;padding:10px 0}.step{text-align:center;flex:1;color:#7f8a75;font-size:11px}.step i{font-style:normal;margin:0 auto 10px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #d5dfc9;border-radius:50%;color:#476637;background:#f0f4e7}.hint{font-size:12px;color:#7d876e;line-height:1.9;padding:15px;background:#f5f4e9;border-radius:12px;margin:18px 0 0}.empty{padding:30px;text-align:center;color:#8a957e;line-height:2;font-size:14px}.record{display:flex;align-items:center;justify-content:space-between;padding:17px 0;border-bottom:1px solid #ecede3;gap:16px}.record small{font-size:11px;display:block;margin-top:7px}.record-title{font-size:14px}.record-score{font-family:Georgia,serif;color:#557147;font-size:21px}.chips{display:flex;flex-wrap:wrap;gap:9px}.chip{padding:9px 15px;background:#f0f3e7;border-radius:9px;font-size:15px;color:#537045}.chip.wrong{background:#f9eddd;color:#93653f}.word-table{width:100%;border-collapse:collapse;font-size:13px}.word-table td,.word-table th{padding:13px 10px;border-bottom:1px solid #ebeee1;text-align:left}.word-table th{color:#86907b;font-weight:500}.word-table td:first-child{font-family:"KaiTi",serif;font-size:20px}.word-table button{background:#eef2e5;color:var(--green);border-radius:8px;padding:9px 12px}.form-wrap{max-width:720px}.onboard{max-width:740px;margin:40px auto;padding:0 20px}.onboard .paper{padding:32px}.onboard h1{font-size:29px}.onboard .brand{margin-bottom:30px}.label-help{font-size:12px;color:#85907e;line-height:1.7;margin-top:6px}.notice{border-left:3px solid #d2ab70;background:#f5efdf;padding:12px 16px;color:#877357;font-size:12px;line-height:1.8;margin-bottom:24px}.danger{color:#9b5847}.account-section{margin-top:26px;padding-top:24px;border-top:1px solid var(--line)}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#253e31;color:white;border-radius:12px;padding:13px 20px;z-index:200;display:none;max-width:90vw;font-size:13px;line-height:1.6}dialog{width:min(690px,calc(100% - 26px));max-height:94dvh;border:1px solid #dce3d0;border-radius:25px;padding:0;color:#314536;background:#fffef8}dialog::backdrop{background:#21372666;backdrop-filter:blur(5px)}.study-head{padding:21px 26px;border-bottom:1px solid #e7ebdf}.study-body{text-align:center;padding:30px 30px 34px}.study-body h2{font-size:23px;font-weight:500}.study-body p{line-height:1.8;color:#7f8b76;font-size:13px}.speaker{width:118px;height:118px;border-radius:50%;background:#e8efdc;color:#366844;font-size:46px;margin:15px 0 12px;border:10px solid #f3f6eb;box-shadow:0 0 0 1px #e2ead3}.speaker.playing{animation:pulse 1.3s infinite}.progress-track{height:5px;background:#e8ecdf}.progress-fill{height:5px;background:#8da36b;transition:width .2s}.answer-text{font-family:"KaiTi",serif;font-size:48px;letter-spacing:9px;margin:15px 0}.grade-buttons{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}.study-actions{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-bottom:20px}.study-actions .text-btn{font-size:12px}.done-symbol{font-size:42px;color:#b7934d;margin:8px 0 22px}.study-body .chips{justify-content:center;margin:20px 0}.study-body .pill{margin-bottom:12px}.voice-status{min-height:24px!important;color:#87927a!important;font-size:12px!important}.legal{max-width:780px;margin:40px auto;padding:25px;line-height:1.9}.legal h1{font-size:28px}.legal h2{font-size:18px;margin-top:28px}.legal p,.legal li{font-size:14px;color:#657461}.mobile-only{display:none}@keyframes pulse{50%{box-shadow:0 0 0 9px #dce7cb}}@media(min-width:1600px){.main{margin-right:auto}}@media(max-width:1050px){.main{padding:25px}.sidebar{width:185px;padding:26px 16px}.main{margin-left:185px}.hero{padding:26px;gap:20px}.hero h2{font-size:30px}.login-layout{gap:35px}.login-copy h1{font-size:43px}.grid2{gap:13px}.paper{padding:22px}}@media(max-width:720px){.login-shell{padding:22px}.login-layout{display:block;padding:28px 0}.login-copy h1{font-size:35px;margin-bottom:13px}.login-copy .lead{font-size:13px}.sample{display:none}.login-form{max-width:none;padding:25px;margin-top:25px}.login-header .pill{font-size:10px}.brand{font-size:20px}.sidebar{inset:auto 0 0;width:100%;height:76px;padding:0 5px env(safe-area-inset-bottom);border:0;border-top:1px solid var(--line);background:#fdfef8f5;backdrop-filter:blur(12px)}.sidebar>.brand,.sidebar-bottom{display:none}.sidebar nav{margin:0;display:flex;justify-content:space-around;gap:0}.nav{flex:1;display:flex;flex-direction:column;gap:5px;padding:10px 3px 8px;font-size:11px;border-radius:0}.nav.active{background:transparent;color:var(--green)}.nav b{font-size:22px}.main{margin:0;padding:20px 18px 105px}.page-heading h1{font-size:28px}.page-heading .pill{display:none}.hero{display:block;padding:25px}.hero h2{font-size:30px}.task-paper{display:none}.stats{gap:8px;margin:17px 0}.stat{padding:17px 12px;border-radius:14px}.stat strong{font-size:29px}.stat small{font-size:10px}.stat span{font-size:11px}.grid2{grid-template-columns:1fr}.form-wrap .grid2,.onboard .grid2{grid-template-columns:1fr 1fr;gap:12px}.paper{padding:22px 19px}.steps{gap:3px}.step{font-size:10px}.onboard{margin:25px auto}.onboard .paper{padding:25px 20px}.word-table td,.word-table th{padding:12px 5px;font-size:12px}.word-table td:nth-child(2){max-width:100px}.study-body{padding:26px 20px}.study-head{padding:16px 20px}.grade-buttons .btn{padding:13px 7px}#toast{bottom:90px}.mobile-only{display:block}.form-field{font-size:13px}.legal{margin:15px auto}}

.demo-entry{display:block;text-align:center;margin-top:18px;font-size:13px;line-height:1.8}.demo-banner{border:1px solid #dcc99b;background:#fff7e5;border-radius:16px;padding:17px 20px;margin-bottom:24px;font-size:13px}.demo-banner strong{color:#88632c}.demo-banner p{font-size:12px;line-height:1.8;color:#88774f;margin:6px 0}.demo-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}.demo-controls .btn{font-size:12px;padding:9px 12px;min-height:40px}.demo-controls a{font-size:12px}.demo-reset-confirm{border-top:1px solid #e9dbb8;padding-top:12px}@media(max-width:720px){.demo-banner{padding:15px}.demo-controls{gap:4px}.demo-banner .text-btn{font-size:12px}}

.word-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.word-card>div{min-width:0;overflow-wrap:anywhere}.word-card strong{font-family:"KaiTi",serif;font-size:23px;font-weight:500}.word-card small{display:block;font-size:12px;margin-top:7px;line-height:1.6}.word-card .btn{flex-shrink:0;font-size:12px;padding:8px 12px;min-height:42px}.history-detail summary{cursor:pointer;list-style:none}.history-detail summary::-webkit-details-marker{display:none}.history-detail[open] summary{border-bottom:0}.history-answers{padding:0 4px 16px;border-bottom:1px solid var(--line)}.history-word{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:15px;overflow-wrap:anywhere}.history-word small{font-size:12px;flex-shrink:0}.history-detail summary:focus-visible{outline:3px solid #d3a459;outline-offset:3px}.grid2>*{min-width:0}

.history-tools{flex-wrap:wrap}.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:22px;font-size:12px}.history-pagination .btn{padding:9px 12px;min-height:42px;font-size:12px}.history-word-link{color:var(--green);background:transparent;padding:2px 0;text-align:left;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}.word-name{font-family:"KaiTi",serif;font-size:23px;color:var(--green);background:transparent;padding:0;text-align:left;text-decoration:underline;text-decoration-color:#d7dfc9;text-underline-offset:6px}.word-detail-body{padding:26px}.word-detail-body h2{font-family:"KaiTi",serif;font-size:38px;letter-spacing:4px;overflow-wrap:anywhere}.word-detail-body h3{font-size:17px;margin:24px 0 10px}.word-detail-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:22px}.word-detail-stats>div{padding:14px 8px;background:#f1f5e9;border-radius:12px;text-align:center}.word-detail-stats strong{display:block;font-size:24px;font-weight:500;margin-bottom:8px}.word-detail-stats small{font-size:11px}.word-attempt{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.word-attempt small{display:block;font-size:11px;margin-top:6px}.word-attempt>span{color:#738177}.form-field input[type=date]{min-width:0;max-width:100%}@media(max-width:720px){.word-detail-body{padding:22px 20px}.word-detail-stats strong{font-size:22px}.history-pagination{gap:7px}.history-pagination .btn{padding:9px}.history-detail .record-score{flex-shrink:0}}

#feedback-dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:24px;overflow:auto;color:#243c32;background:var(--paper)}
#feedback-dialog::backdrop{background:rgba(25,46,41,.35)}
.feedback-body{padding:28px}.feedback-body h2{margin:0;font-size:24px}.feedback-body .form-field{margin-top:18px}.feedback-body textarea{width:100%;font:inherit;box-sizing:border-box;resize:vertical;min-height:110px;padding:14px;border:1px solid #cbd6cf;border-radius:12px;background:#fff;color:inherit}.feedback-list{margin-top:28px;border-top:1px solid #dce4dc;padding-top:16px}.feedback-record{padding:18px 0;border-top:1px solid #dce4dc}.feedback-description{white-space:pre-wrap;overflow-wrap:anywhere}.feedback-ticket{overflow-wrap:anywhere}.feedback-body .notice{overflow-wrap:anywhere}
.feedback-reply{padding:18px;background:#edf4e9;border-radius:14px;margin-top:16px}.feedback-reply .label-help{margin-top:8px}.feedback-badge{display:inline-block;border-radius:12px;background:#f6dfad;color:#654c1f;padding:2px 8px;font-size:12px;line-height:1.7;vertical-align:middle;white-space:nowrap}.feedback-shortcut{display:block;margin-bottom:12px;text-align:left}.nav .feedback-badge{margin-left:5px;padding:1px 6px}.feedback-followup{margin-bottom:20px}
@media(max-width:600px){.feedback-body{padding:20px}.feedback-body h2{font-size:21px}.feedback-record .flex{flex-wrap:wrap;gap:8px}}

.voice-panel{margin-top:22px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}.voice-panel h2{font-size:17px;margin:0 0 12px}.voice-cache-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.voice-cache-tools label{font-size:12px;display:flex;align-items:center;gap:8px}.voice-cache-tools select{font:inherit;max-width:120px;padding:9px;border:1px solid var(--line);border-radius:8px;background:#fff}.voice-cache-tools .btn{font-size:12px;padding:10px 14px}.voice-cache-tools .text-btn{font-size:12px}.voice-panel p{overflow-wrap:anywhere}

.word-card .word-tools{display:flex;flex-direction:column;align-items:stretch;gap:6px;flex-shrink:0;max-width:150px}.word-tools small{max-width:130px}.word-card:has(.word-tools){align-items:flex-start}#word-edit-form .form-field{margin-top:22px}
@media(max-width:600px){.word-card:has(.word-tools){flex-direction:column;gap:10px}.word-card .word-tools{flex-direction:row;flex-wrap:wrap;max-width:100%;width:100%}.word-tools small{flex-basis:100%;max-width:100%;margin-top:0}}

.sync-status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;margin:0 0 18px;border-radius:12px;background:#edf4ed;color:var(--green);font-size:12px;line-height:1.7}.sync-status .text-btn{flex-shrink:0;min-height:42px}.sync-warning{background:#fff4dc;color:#71561e}.study-body .sync-status{margin-top:18px;text-align:left}@media(max-width:600px){.sync-status{align-items:flex-start;flex-wrap:wrap}}

.word-audition{padding:14px 16px;margin:18px 0;border-radius:14px;background:#f3f6ee}.word-audition-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.word-audition .btn{min-height:44px;font-size:13px;padding:10px 14px}.word-audition .text-btn{min-height:44px}#audition-status{min-height:24px;overflow-wrap:anywhere}

.group-panel{border-top:1px solid var(--line);padding-top:22px;margin-top:24px}.group-panel h3{font-size:18px}.word-select{display:flex;align-items:center;gap:8px;min-height:44px;font-size:12px;color:var(--muted);cursor:pointer}.word-select input{width:20px;height:20px;accent-color:var(--green)}.word-card small{overflow-wrap:anywhere}
.priority-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.priority-tools .btn,.priority-tools .text-btn{font-size:12px;min-height:44px}.priority-panel p{margin:10px 0}.priority-group-tools{padding:12px 14px;margin:16px 0;background:var(--bg);border-radius:12px}.priority-group-tools[hidden]{display:none}.priority-tag{display:inline-block;color:var(--green);background:#eaf2e8;border-radius:6px;padding:4px 8px;margin-top:8px;font-size:12px}.consent span small{display:block;color:var(--muted);margin-top:5px;line-height:1.7}
[data-page="settings"] .feedback-badge{vertical-align:middle}
.membership-controls{gap:12px;flex-wrap:wrap;margin:20px 0}.membership-section h3{font-size:18px;margin-top:24px}.membership-banner{margin:16px 0}.membership-banner p{margin:8px 0 16px}.redemption-history{padding-left:22px;overflow-wrap:anywhere}.redemption-history li{margin:12px 0}.redemption-history small{color:var(--muted)}#membership-result{overflow-wrap:anywhere}

.referral-url{display:block;width:100%;min-width:0;margin:8px 0 12px;padding:12px;border:1px solid #cbd6cf;border-radius:10px;background:#fff;font:inherit;box-sizing:border-box}.referral-stats{font-size:14px;line-height:1.8}.referral-section h2{font-size:20px}.referral-section .flex{flex-wrap:wrap}.referral-section .label-help{overflow-wrap:anywhere}
.web-update{position:fixed;z-index:30;bottom:calc(24px + env(safe-area-inset-bottom));right:24px;width:min(380px,calc(100vw - 32px));box-sizing:border-box;padding:18px 20px;border:1px solid #b6cdbf;border-radius:16px;background:#fffdf7;box-shadow:0 8px 32px #183e3426}.web-update[hidden],[hidden]#settings-apply-update{display:none}.web-update p{margin:0 0 12px;line-height:1.6}.web-update .flex{flex-wrap:wrap;gap:12px}#settings-apply-update{margin:8px} @media(max-width:760px){.web-update{right:16px;bottom:calc(86px + env(safe-area-inset-bottom));}}

/* First-use screens: one clear action at a time, with room for browser chrome. */
.entry-shell{width:min(100%,480px);min-height:100svh;margin:auto;padding:24px 28px max(16px,env(safe-area-inset-bottom));display:flex;flex-direction:column;background:radial-gradient(ellipse at 80% 36%,#e6ebdc80,transparent 60%)}
.entry-shell [hidden]{display:none!important}.entry-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px}.entry-header .brand{font-size:20px;letter-spacing:1px;gap:10px}.entry-header .brand img{width:38px;height:38px}.entry-header .brand small{font-size:9px;letter-spacing:2px}.entry-header>.text-btn{font-size:13px;min-height:44px;padding:8px 0 8px 12px;flex-shrink:0}
.entry-main{flex:1;display:flex;flex-direction:column;justify-content:center;padding:28px 0 20px}.entry-kicker{font-size:12px;color:#617561;letter-spacing:2px;margin-bottom:16px}.entry-main h1,.first-today h1{font-size:36px;line-height:1.45;font-weight:650;letter-spacing:-.03em;margin:0 0 12px}.entry-main h1 em{font-style:normal;color:var(--green)}.entry-description{color:#64756b;font-size:15px;line-height:1.85;margin:0 0 24px}.entry-actions{margin-top:20px}.entry-actions .btn,.auth-main .btn,.setup-main .btn{min-height:52px;border-radius:16px}.entry-shell a.full{display:block;text-align:center;text-decoration:none}.entry-shell .text-btn{min-height:44px}.entry-caption{font-size:12px;color:#788477;line-height:1.7;margin:10px 0}.entry-actions>.entry-caption{text-align:center}.entry-footer{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 16px;font-size:11px;color:#8a9389;line-height:1.6}.entry-footer a{color:#788477;text-decoration:none}.entry-footer small{flex-basis:100%;text-align:center;font-size:10px;color:#8a9389}
.entry-notebook{border:1px solid #dfe4d6;border-radius:20px;background:#fffef7;padding:20px;box-shadow:4px 7px 0 #e5e9db;transform:rotate(-3deg);margin:8px 6px 14px}.notebook-label{display:block;font-size:11px;letter-spacing:2px;color:#87927a;margin-bottom:16px}.notebook-cells{display:flex;justify-content:space-between;gap:10px}.notebook-cells span{display:grid;place-items:center;flex:1;aspect-ratio:1;font-family:"KaiTi","STKaiti",serif;font-size:32px;border:1px solid #dce3d1;color:#3a6247;background:linear-gradient(90deg,transparent 49%,#e8ebdf 50%,transparent 51%),linear-gradient(transparent 49%,#e8ebdf 50%,transparent 51%)}.notebook-bottom{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#89927e;margin-top:16px}.notebook-bottom b{font-size:24px;color:#bd9550;font-weight:400}
.practice-main{text-align:center}.practice-main .speaker{align-self:center;flex-shrink:0}.practice-main .grade-buttons{display:grid}.sample-answer{margin:14px auto 28px}.sample-answer span{display:block;font-size:19px;letter-spacing:7px;color:#829174}.sample-answer strong{display:block;font:56px/1.6 "KaiTi","STKaiti",serif;letter-spacing:8px}.entry-success{font-size:72px;color:#b7934d;margin:0 0 12px}.entry-plan{display:flex;flex-direction:column;gap:9px;border:1px solid #dce5d5;background:#edf2e5;border-radius:16px;padding:18px;margin:8px 0 16px;text-align:left}.entry-plan strong{font-size:15px;font-weight:600;line-height:1.6}.entry-plan span{font-size:12px;color:#75856e;line-height:1.6}.entry-details{font-size:12px;line-height:1.7;color:#778674;margin:12px 0 20px}.entry-details summary{cursor:pointer;min-height:36px;padding:8px 0}.entry-details .notice{margin:8px 0}.auth-main h1,.setup-main h1{font-size:28px}.auth-main input{font-size:17px;height:54px}.auth-main .consent{font-size:12px;line-height:1.7;align-items:flex-start}.auth-main .consent input{height:22px;width:22px;margin:1px 0 0}.auth-main .form-error:empty,.setup-main .form-error:empty{min-height:0;margin:0 0 16px}.auth-main .captcha-row{grid-template-columns:1fr 82px auto;gap:8px}.auth-main .captcha-question{font-size:18px;letter-spacing:1px}.setup-main select{font-size:16px;min-height:50px}.setup-main .sync-status{font-size:11px}.first-today{max-width:500px;margin:5vh auto 0;padding:24px 0}.first-today .btn{min-height:54px;margin-top:10px}.first-today h1{font-size:30px}.first-today>.entry-caption{text-align:center}
@media(min-width:721px){.entry-shell{min-height:min(860px,100svh);margin:0 auto;padding-top:40px;padding-bottom:28px}.entry-main{padding-top:40px;padding-bottom:36px}.welcome-main h1{font-size:44px}.entry-notebook{margin-top:16px;margin-bottom:18px}}
@media(max-height:700px) and (max-width:720px){.entry-shell{padding:16px 24px 12px}.entry-main{padding:18px 0 12px}.entry-kicker{margin-bottom:10px}.welcome-main h1{font-size:32px;line-height:1.35}.entry-description{margin-bottom:16px;font-size:14px}.entry-notebook{padding:14px;margin:4px 5px 8px}.notebook-label{margin-bottom:10px}.notebook-cells span{font-size:28px;max-height:60px}.notebook-bottom{margin-top:10px}.entry-actions{margin-top:12px}.entry-caption{margin:7px 0}.entry-main .entry-success{font-size:52px}.practice-main .speaker{width:98px;height:98px;margin:4px 0}.setup-main .entry-plan{padding:12px;margin:6px 0}.setup-main .form-field{margin-bottom:14px}.setup-main .entry-details{margin:4px 0 12px}.entry-main h1{font-size:28px}.entry-main .sample-answer{margin:8px auto 20px}}
@media(prefers-reduced-motion:reduce){.entry-shell *{animation:none!important;transition:none!important}}
@media(max-height:600px) and (max-width:720px){.welcome-main{padding:12px 0 8px}.welcome-main h1{line-height:1.3;margin-bottom:8px}.welcome-main .entry-kicker{font-size:11px;margin-bottom:8px}.welcome-main .entry-description{margin-bottom:12px}.welcome-main .entry-notebook{padding:12px}.welcome-main .notebook-cells span{height:44px;aspect-ratio:auto;font-size:25px}.welcome-main .notebook-bottom{margin-top:8px}.welcome-main .notebook-bottom b{font-size:18px}.welcome-main .entry-actions{margin-top:8px}}
.demo-banner>summary{cursor:pointer;line-height:1.8;color:#88632c}.demo-banner:not([open]){padding:10px 14px;margin-bottom:14px}
.setup-main{padding:20px 0 14px}.setup-main .entry-description{margin-bottom:18px}.setup-main .entry-details{margin:4px 0 12px}.setup-main .form-field{margin-bottom:14px}.setup-main .entry-plan{margin:8px 0;padding:12px 16px}.setup-main #setup-prev{min-height:40px}
.setup-main .entry-kicker{margin-bottom:8px}.setup-main .entry-description{font-size:14px;margin-bottom:14px}.setup-main h1{font-size:26px;margin-bottom:8px}
.entry-footer{row-gap:4px}
.practice-main .sample-speaker{width:156px;height:156px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;margin:16px 0;background:#deebd1;color:#245b44}.sample-speaker>span{font-size:46px;line-height:1}.sample-speaker>strong{font-size:16px;line-height:1.5;letter-spacing:1px}.sample-status{font-size:14px;line-height:1.8;color:#4d674f;min-height:26px;margin:12px 0}.sample-speaker.playing{background:#d6e7c6}
@media(max-height:700px) and (max-width:720px){.practice-main .sample-speaker{width:130px;height:130px;margin:8px 0}.sample-speaker>span{font-size:38px}.sample-status{font-size:13px;margin:8px 0}}

/* Opt-in device reminders */
.reminder-section h2{font-size:18px}.reminder-toggle{display:flex;align-items:center;gap:10px;font-weight:600}.reminder-toggle input{width:20px;height:20px;accent-color:#245b44}.reminder-times{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-top:14px}.reminder-times input{max-width:100%;min-width:0}.reminder-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.reminder-status{padding:10px 12px;background:#eef4ef;border-radius:10px;color:#245b44;font-size:14px}#reminder-dialog{max-width:440px;width:calc(100% - 32px);border:0;border-radius:20px;padding:0}#reminder-dialog::backdrop{background:#14251d66}#reminder-dialog .study-body{padding:28px}#reminder-dialog h2{font-size:24px}

/* Keep the primary study action visible while explanations and sound tools scroll. */
#study[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 24px)}
#study .study-head,#study .progress-track,#study .study-footer{flex-shrink:0}
#study .study-body{min-height:0;overflow:auto;overscroll-behavior:contain}
#study .study-head{gap:12px}#study .study-head>span{min-width:0}#study .study-head button{max-width:50%;min-width:0;white-space:normal;flex-shrink:1}
#study .study-footer{padding:16px 26px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffef8;text-align:center}
#study .study-footer .grade-buttons{margin:0}#study .study-footer .btn{min-width:0;min-height:48px;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
#study .answer-text{overflow-wrap:anywhere}#study .study-body>[data-sync-status]{text-align:left}
@media(max-width:720px){#study .study-footer{padding:12px 20px max(12px,env(safe-area-inset-bottom))}}
@media(max-height:460px){#study .study-head{padding:10px 16px}#study .study-body{padding:12px 16px}#study .study-body h2{margin:8px 0;font-size:20px}#study .speaker{width:80px;height:80px;font-size:32px;margin:8px 0}#study .study-footer{padding:8px 16px max(8px,env(safe-area-inset-bottom))}}

@media(max-height:460px){#study .study-check>h2,#study .study-check>.pill{display:none}#study .study-check .answer-text{margin:8px 0;line-height:1.3}}

@media(max-width:360px),(max-height:460px){#study .study-check{display:flex;flex-direction:column;align-items:center}#study .study-check>*{flex-shrink:0}#study .study-check>.answer-text{order:-1;align-self:stretch}#study .study-check>.study-actions,#study .study-check>[data-sync-status]{align-self:stretch}}
