:root{color-scheme:dark;--bg:#07151f;--surface:#102431;--surface2:#162d3a;--soft:#0c1d29;--ink:#f6f5ef;--muted:#a9b5bd;--faint:#73838e;--line:#ffffff12;--amber:#ffc46d;--amber-soft:#ffc46d1a;--coral:#df7857;--peach:#ffe4d5;--green:#64c99b;--red:#f28080;--shadow:0 24px 80px #0005;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none}
:root[data-theme=light]{color-scheme:light;--bg:#f5f7f8;--surface:#fff;--surface2:#edf1f3;--soft:#eef2f4;--ink:#102430;--muted:#586b77;--faint:#72818b;--line:#15253216;--amber:#a86b13;--amber-soft:#e8ba6822;--coral:#ba593d;--peach:#ffe7d9;--green:#227a52;--red:#b83f44;--shadow:0 24px 80px #1232}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.65;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}a{color:inherit;text-decoration:none}button:disabled{cursor:default;opacity:.4}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}img{max-width:100%;object-fit:cover}button{border:0;background:none;padding:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--amber);outline-offset:4px}p,h1,h2,h3{margin:0}h1,h2,h3{line-height:1.3}h1{font-size:clamp(28px,3.1vw,40px);font-weight:650;letter-spacing:-.045em}h2{font-size:23px;font-weight:600;letter-spacing:-.02em}h3{font-size:17px;font-weight:600}.serif{font-family:Georgia,"Times New Roman",serif;font-weight:400}.muted{color:var(--muted)}.small{font-size:14px}.eyebrow{color:var(--amber);font-size:13px;letter-spacing:.14em;font-weight:600}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}.skip-link{position:fixed;top:-80px;left:20px;background:var(--amber);color:#07151f;padding:12px;z-index:100}.skip-link:focus{top:12px}
.topbar{height:92px;padding:0 max(30px,calc((100% - 1280px)/2));display:flex;align-items:center;gap:36px;border-bottom:1px solid var(--line);background:var(--bg);position:relative;z-index:5}.brand{display:flex;align-items:center;gap:12px;white-space:nowrap;line-height:1.2}.brand img{width:40px;height:40px}.brand>span{font-size:20px;font-weight:650;letter-spacing:.03em}.brand small{display:block;color:var(--muted);font:12px/1.6 Georgia,serif;letter-spacing:.1em}.desktop-nav{display:flex;gap:28px;align-self:stretch;align-items:stretch;margin-left:18px;white-space:nowrap}.desktop-nav a{display:flex;align-items:center;position:relative;font-size:15px;color:var(--muted)}.desktop-nav a[aria-current=page]{color:var(--amber)}.desktop-nav a[aria-current=page]:after{content:"";height:3px;width:20px;border-radius:4px;background:var(--amber);position:absolute;bottom:18px;left:calc(50% - 10px)}.top-tools{display:flex;align-items:center;gap:12px;margin-left:auto}.icon-button{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:var(--muted);flex-shrink:0}.icon-button:hover{background:var(--surface2);color:var(--ink)}.account-button{font-size:14px;padding:8px 12px;white-space:nowrap}.download-button{background:var(--amber);border:1px solid var(--amber);color:#07151f;padding:9px 18px;border-radius:30px;font-size:14px;font-weight:650;white-space:nowrap}.download-button:hover,.button.primary:hover{filter:brightness(1.08)}
#main{min-height:calc(100svh - 260px)}#app{width:min(1280px,100% - 64px);margin:0 auto;padding:42px 0 52px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:30px}.page-heading h1{margin:7px 0 8px}.page-heading .subtitle{font-size:15px;color:var(--muted)}.date{font-size:14px;color:var(--muted)}.button{padding:11px 20px;border:1px solid var(--line);background:var(--surface);border-radius:30px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:550;min-height:44px}.button:hover{background:var(--surface2)}.button.primary{background:var(--amber);border-color:var(--amber);color:#07151f}.button.ghost{background:transparent}.button.danger{color:var(--red)}.text-button{color:var(--amber);font-size:14px;min-height:38px}.flex{display:flex;align-items:center;gap:10px}.spread{justify-content:space-between}.wrap{flex-wrap:wrap}.pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:20px;padding:4px 11px;color:var(--muted);font-size:12px;white-space:nowrap}.pill.level{color:var(--amber);border-color:color-mix(in srgb,var(--amber) 25%,transparent);background:var(--amber-soft)}.panel{border:1px solid var(--line);border-radius:24px;background:var(--surface);overflow:hidden}.today-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(260px,1fr);gap:28px;align-items:start}.practice-card{padding:28px 32px 26px;border-radius:28px;border:1px solid var(--line);background:var(--surface)}.card-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:14px;margin-bottom:24px}.word-hero{display:flex;align-items:center;gap:22px;margin-bottom:26px}.word-hero .word-image{width:105px;height:122px;border-radius:55px 55px 16px 16px;background:var(--surface2);flex-shrink:0}.word-hero .word-meta{flex:1;min-width:0}.word-title{font:400 43px/1.12 Georgia,"Times New Roman",serif;letter-spacing:-.035em;overflow-wrap:anywhere}.word-title-button{text-align:left}.word-title-button:hover{color:var(--amber)}.word-meta .meaning{font-size:14px;color:var(--muted);line-height:1.65;margin-top:10px}.pronunciation{font-size:14px;color:var(--muted)}.sentence-block{background:var(--soft);padding:24px 26px;border-radius:20px;min-height:210px;display:flex;flex-direction:column;justify-content:center;gap:16px}.sentence-en{font:400 clamp(25px,2.35vw,32px)/1.48 Georgia,"Times New Roman",serif;letter-spacing:-.02em;overflow-wrap:anywhere}.sentence-zh{font-size:15px;color:var(--muted);line-height:1.8}.headword{display:inline;color:inherit;line-height:inherit;font:inherit;background:color-mix(in srgb,var(--amber) 28%,transparent);box-decoration-break:clone;-webkit-box-decoration-break:clone;border-radius:3px;padding:0 2px;margin:0 -1px}.headword:hover{background:color-mix(in srgb,var(--amber) 45%,transparent)}.matched{color:var(--green)}.missed{color:var(--red)}.feedback-legend{font-size:12px;color:var(--muted);display:flex;gap:14px}.feedback-legend span:first-child{color:var(--green)}.feedback-legend span:nth-child(2){color:var(--red)}
.audio-button{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);border-radius:26px;text-align:left}.audio-icon{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;background:var(--surface2);border-radius:50%;position:relative;color:var(--ink);flex-shrink:0}.audio-icon>svg{width:20px;height:20px;z-index:1}.audio-icon>.progress-ring{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:var(--amber);stroke-width:1.7;transform:rotate(-90deg);opacity:0}.audio-button.playing .progress-ring{opacity:1}.audio-button.playing .wave-one{animation:wave-one 1.2s linear infinite}.audio-button.playing .wave-two{animation:wave-two 1.2s linear infinite}.audio-button.playing .audio-icon{color:var(--amber)}@keyframes wave-one{0%,12%{opacity:0}28%,80%{opacity:1}100%{opacity:0}}@keyframes wave-two{0%,32%{opacity:0}52%,92%{opacity:1}100%{opacity:0}}
.practice-tools{padding-top:22px;display:grid;justify-items:center;gap:18px}.feedback-slot{height:34px;display:grid;align-items:center;width:100%;position:relative}.stars{display:flex;justify-content:center;gap:12px;color:var(--faint)}.star{width:27px;height:27px;fill:currentColor;stroke-width:0;opacity:.3}.star:nth-child(2){width:32px;height:32px;transform:translateY(-4px)}.star.lit{color:var(--amber);opacity:1}.waveform{width:min(330px,90%);height:28px;position:absolute;left:50%;transform:translateX(-50%)}.record-controls{display:grid;grid-template-columns:90px 104px 90px;align-items:center;justify-content:center;gap:22px;min-height:104px}.record-controls .audio-button{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px}.record-controls .audio-icon{width:40px;height:40px}.record-button{width:76px;height:76px;box-shadow:inset 0 0 0 4px var(--peach),inset 0 0 0 5.5px #d8725b88;align-self:center;justify-self:center;background:var(--peach);color:var(--coral);display:flex;align-items:center;justify-content:center;border-radius:50%;position:relative}.record-button svg{width:31px;height:31px;stroke-width:1.5}.record-button:hover{filter:brightness(1.03)}.record-button.recording:before{content:"";position:absolute;inset:-9px;border:2px dashed var(--coral);border-radius:50%}.record-button .timer{color:#172a35;font:500 26px Georgia,serif}.status-line{font-size:14px;color:var(--muted);text-align:center;min-height:24px;max-width:500px}.record-footer{min-height:44px;text-align:center;font-size:12px;color:var(--faint);width:100%;display:grid;place-items:center}.record-footer .button{width:min(340px,100%);background:var(--surface2)}.recognition-choice{padding-top:12px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);line-height:1.7;width:100%}.recognition-choice label{display:flex;gap:9px;align-items:center;cursor:pointer;font-size:13px}.recognition-choice input{accent-color:var(--amber);width:16px;height:16px}.recognition-choice p{margin:6px 0 0 25px;color:var(--faint)}.transcript{font-size:14px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;width:100%;overflow-wrap:anywhere}.practice-actions{display:flex;justify-content:center;gap:16px;min-height:36px;font-size:14px}.practice-actions button{color:var(--amber)}.guest-invite{margin-top:18px;padding:14px 18px;border:1px solid var(--line);border-radius:15px;display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:13px;color:var(--muted)}
.today-aside{display:grid;gap:22px}.side-section{padding:24px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.section-heading h2{font-size:17px;font-weight:550}.level-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.level-option{min-height:66px;border:1px solid var(--line);border-radius:12px;background:var(--soft);display:grid;place-content:center;gap:2px;color:var(--muted);font-size:12px}.level-option b{font-size:17px;font-weight:550;color:var(--ink)}.level-option.selected{background:var(--amber-soft);border-color:var(--amber);color:var(--amber)}.level-option.selected b{color:var(--amber)}.side-caption{font-size:12px;color:var(--faint);margin-top:14px;line-height:1.8}.stats-row{display:flex;gap:32px;margin:8px 0 20px}.stat-number{font:400 33px Georgia,serif;color:var(--ink)}.stat-label{font-size:12px;color:var(--muted);display:block;margin-top:3px}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;align-items:end}.week-day{text-align:center;font-size:12px;color:var(--faint)}.week-bar-slot{height:37px;display:flex;align-items:flex-end;justify-content:center;margin-bottom:8px}.week-bar{background:var(--surface2);width:15px;height:5px;border-radius:5px}.week-day.today{color:var(--amber)}.week-day.has-practice .week-bar{background:var(--amber);height:26px}.mini-word{display:flex;gap:12px;align-items:center;width:100%;text-align:left;margin-top:15px}.mini-word img{width:46px;height:52px;border-radius:23px 23px 9px 9px;background:var(--surface2)}.mini-word strong{display:block;font:400 19px Georgia,serif}.mini-word span{font-size:12px;color:var(--muted)}.note-line{font-size:13px;color:var(--muted);line-height:1.9}.note-line+.note-line{margin-top:12px}.inline-link{color:var(--amber);text-decoration:underline;text-underline-offset:4px}
.catalog-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:20px}.search-field{flex:1;display:flex;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:30px;min-height:52px;padding:0 18px}.search-field svg{color:var(--faint);width:20px}.search-field input{flex:1;min-width:0;color:var(--ink);outline:none;border:0;background:transparent;font-size:15px;padding:12px 0}.search-field input::placeholder{color:var(--faint)}.select-wrap{position:relative}.select-wrap:after{content:"";border:solid var(--muted);border-width:0 1.5px 1.5px 0;display:block;width:6px;height:6px;transform:rotate(45deg);position:absolute;right:15px;top:21px;pointer-events:none}.select-wrap select{appearance:none;max-width:165px;border:1px solid var(--line);background:var(--surface);color:var(--muted);padding:12px 36px 12px 18px;border-radius:28px;min-height:52px;font-size:14px}.view-toggle{display:flex;gap:3px}.view-toggle .selected{background:var(--surface2);color:var(--amber)}.filter-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0 26px}.chip{min-width:55px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:transparent;color:var(--muted);padding:5px 16px;border-radius:22px;font-size:14px}.chip.selected{background:var(--amber);color:#07151f;border-color:var(--amber)}.catalog-count{color:var(--muted);font-size:13px;margin-left:auto}.word-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.word-card{border:1px solid var(--line);background:var(--surface);border-radius:20px;overflow:hidden;position:relative;transition:transform .18s,border-color .18s;cursor:pointer}.word-card:hover{transform:translateY(-3px);border-color:color-mix(in srgb,var(--amber) 40%,transparent)}.word-card>button.card-link{width:100%;text-align:left;display:block}.word-art{height:auto;aspect-ratio:1.16;width:100%;display:block;background:var(--surface2)}.word-body{padding:16px 17px 19px;min-height:146px;position:relative}.word-card .card-tags{display:flex;gap:8px;align-items:center;margin-bottom:10px}.word-card .card-word{font:400 26px/1.3 Georgia,serif;letter-spacing:-.025em;overflow-wrap:anywhere;padding-right:35px;display:block}.word-card .card-meaning{display:block;margin-top:7px;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.word-card .card-audio{position:absolute;right:16px;bottom:67px}.word-card .card-audio .audio-icon{width:32px;height:32px}.word-card .card-audio .audio-icon>svg{width:17px;height:17px}.card-fav{position:absolute;top:13px;right:13px;background:#07151fb0;color:#fff;backdrop-filter:blur(8px);width:34px;height:34px;border-radius:50%;display:grid;place-items:center}.card-fav.saved{color:#ffc46d}.card-fav.saved svg{fill:currentColor}.word-list{display:grid;gap:10px}.word-list .word-card>button.card-link{display:flex;align-items:center;gap:20px;padding:12px}.word-list .word-art{width:90px;height:90px;border-radius:13px;aspect-ratio:1}.word-list .word-body{min-height:auto;padding:0 100px 0 0;width:100%}.word-list .word-body .card-tags{margin-bottom:4px}.word-list .word-card .card-word{font-size:26px}.word-list .word-card .card-audio{right:64px;bottom:38px}.word-list .card-fav{right:20px;top:41px;background:var(--surface2);color:var(--muted)}.word-list .card-fav.saved{color:var(--amber)}.load-more{display:flex;justify-content:center;min-height:80px;padding-top:24px}.skeleton{min-height:120px;background:var(--surface);border:1px solid var(--line);border-radius:20px;animation:pulse 1.5s ease-in-out infinite}.word-grid .skeleton{height:350px}.empty{min-height:300px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:16px;padding:32px;border:1px dashed var(--line);border-radius:22px}.empty-art{width:90px;height:90px;position:relative;display:grid;place-items:center;background:var(--amber-soft);border:1px solid color-mix(in srgb,var(--amber) 15%,transparent);border-radius:32px;transform:rotate(-7deg);color:var(--amber);margin-bottom:5px}.empty-art svg{width:40px;height:40px;transform:rotate(7deg)}.empty h2{font-size:20px}.empty p{font-size:14px;color:var(--muted);max-width:440px}.empty .flex{justify-content:center}.notebook-summary{display:flex;gap:32px;margin-top:22px}.notebook-count{font:400 30px Georgia,serif}.notebook-tabs{margin:0 0 24px}.error-box{border:1px solid color-mix(in srgb,var(--red) 30%,transparent);padding:24px;border-radius:18px;color:var(--muted)}.error-box button{margin-top:14px}.boot{min-height:60svh;display:grid;place-content:center;text-align:center;gap:18px;font-size:14px;color:var(--muted)}.spinner{display:inline-block;justify-self:center;width:23px;height:23px;border:2px solid var(--line);border-top-color:var(--amber);border-radius:50%;animation:spin 1s linear infinite}.loading-line{display:flex;gap:12px;align-items:center;color:var(--muted);padding:30px;justify-content:center}
body.modal-open{overflow:hidden}dialog{color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:27px;padding:0;max-width:calc(100vw - 36px);max-height:90svh;box-shadow:var(--shadow);scrollbar-width:thin;overscroll-behavior:contain}dialog::backdrop{background:#02080ebf;backdrop-filter:blur(7px)}dialog[open]{animation:dialog-in .2s ease}.word-dialog{width:780px}.practice-dialog{width:720px}.auth-dialog{width:450px}.info-dialog{width:600px}.share-dialog{width:520px}.dialog-header{padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--bg);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2}.dialog-header h2{font-size:16px;font-weight:550}.dialog-header .icon-button{width:36px;height:36px}.dialog-body{padding:28px}.word-dialog .word-hero{gap:28px;padding:4px 0 12px}.word-dialog .word-title{font-size:48px}.word-dialog .word-image{width:142px;height:152px;border-radius:24px}.word-dialog .word-meta .pill{margin-bottom:13px}.pron-row{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding:0 0 26px;border-bottom:1px solid var(--line)}.word-mic{width:40px;height:40px;border:1px solid color-mix(in srgb,var(--coral) 35%,transparent);color:var(--coral);border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--coral) 8%,transparent)}.definition{margin:22px 0}.definition p:first-child{font-size:17px;font-weight:550}.definition .pos{color:var(--amber);font:400 17px Georgia,serif;margin-right:10px}.definition p+p{margin-top:6px;font:400 18px/1.6 Georgia,serif;color:var(--muted)}.example-section{border-top:1px solid var(--line);margin-top:26px;padding-top:26px}.example-section .section-heading h3{font-size:14px;font-weight:500;color:var(--muted)}.example-section .sentence-en{font-size:25px}.example-section .sentence-zh{margin-top:14px}.example-actions{display:flex;align-items:center;gap:16px;margin-top:18px}.details-section{border-top:1px solid var(--line);margin-top:26px;padding-top:26px}.details-section h3{color:var(--muted);font-size:14px;font-weight:500;margin-bottom:14px}.detail-tags{display:flex;flex-wrap:wrap;gap:9px}.detail-tags span,.detail-tags button{font-size:14px;padding:6px 13px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}.detail-note{font-size:14px;color:var(--muted);white-space:pre-line}.word-pagination{position:sticky;bottom:0;display:flex;justify-content:space-between;gap:18px;padding:14px 24px;background:var(--bg);border-top:1px solid var(--line)}.word-pagination button{color:var(--amber);font-size:14px;min-height:32px}.quick-word{width:100%;padding:6px}.quick-word .word-hero{margin:0}.quick-word .word-image{width:90px;height:104px}.quick-word .word-title{font-size:32px}.quick-word .meaning{margin-top:12px}.practice-dialog .practice-card{border:0;border-radius:0;background:var(--bg);padding-top:14px}.practice-dialog .sentence-block{min-height:160px;background:var(--surface)}.practice-dialog .word-hero{gap:16px;margin-bottom:20px}.practice-dialog .word-hero .word-image{width:75px;height:88px}.practice-dialog .word-title{font-size:30px}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:24px}.auth-brand img{width:42px;height:42px}.auth-brand h3{font-size:21px}.auth-tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:25px;gap:14px}.auth-tabs button{flex:1;padding:0 2px 10px;font-size:14px;color:var(--muted)}.auth-tabs button.selected{border-bottom:2px solid var(--amber);color:var(--amber)}.form-field{display:grid;gap:7px;font-size:14px;margin:16px 0}.form-field input{min-height:48px;border:1px solid var(--line);background:var(--surface);border-radius:11px;padding:10px 13px;color:var(--ink);width:100%}.form-note{font-size:12px;color:var(--faint);margin:9px 0 20px;line-height:1.8}.terms-check{font-size:12px;color:var(--muted);display:flex;gap:9px;align-items:flex-start;margin:21px 0}.terms-check input{margin-top:5px;accent-color:var(--amber);width:16px;height:16px;flex-shrink:0}.terms-check a{color:var(--amber)}.form-error{font-size:13px;color:var(--red);min-height:24px;margin-bottom:10px;white-space:pre-line}.form-submit{width:100%;margin-top:4px}.honey{position:absolute;left:-9999px;height:0;overflow:hidden}.info-dialog h3{font-size:16px;margin:22px 0 9px}.info-dialog p,.info-dialog li{font-size:14px;line-height:1.9;color:var(--muted)}.info-dialog ul{padding-left:20px}.info-dialog a{color:var(--amber)}.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,1fr);gap:24px}.profile-card{padding:28px}.avatar{width:64px;height:64px;border-radius:50%;background:var(--amber-soft);display:grid;place-items:center;color:var(--amber);font:400 30px Georgia,serif;flex-shrink:0}.profile-identity{display:flex;align-items:center;gap:18px;margin-bottom:22px}.profile-identity h2{font-size:25px}.profile-identity p{color:var(--muted);font-size:13px;margin-top:5px}.profile-links{display:grid;margin-top:8px}.profile-link{padding:18px 0;display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line);font-size:15px;text-align:left}.profile-link span:last-child{margin-left:auto;color:var(--muted);font-size:13px}.profile-link svg{color:var(--amber)}.profile-layout .stats-row{gap:40px}.history-item{display:flex;align-items:center;gap:16px;padding:17px 0;border-bottom:1px solid var(--line)}.history-item img{width:50px;height:57px;border-radius:25px 25px 9px 9px}.history-item div{min-width:0;flex:1}.history-item strong{display:block;font:400 19px Georgia,serif}.history-item p{color:var(--muted);font-size:12px;margin-top:3px}.share-image{display:block;width:100%;border-radius:15px}.share-actions{display:flex;justify-content:center;gap:12px;padding:18px}.share-note{font-size:12px;text-align:center;color:var(--faint);margin-top:15px}.site-footer{max-width:1280px;width:calc(100% - 64px);margin:0 auto;padding:26px 0 32px;border-top:1px solid var(--line);display:flex;align-items:center;gap:20px;font-size:12px;color:var(--faint)}.footer-brand{font:400 21px Georgia,serif;color:var(--ink)}.site-footer div{display:flex;gap:18px;margin-left:auto;flex-wrap:wrap}.site-footer button{font-size:12px}.site-footer a:hover,.site-footer button:hover{color:var(--amber)}.mobile-nav{display:none}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;max-width:min(90vw,560px);color:var(--ink);background:var(--surface2);border:1px solid var(--line);box-shadow:var(--shadow);padding:11px 22px;border-radius:25px;font-size:14px;z-index:100;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}.noscript{padding:30px;max-width:700px;margin:auto}.noscript a{color:var(--amber)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes dialog-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1440px){.practice-card{padding:30px 36px}.sentence-block{min-height:230px}.word-hero{margin-bottom:30px}.practice-tools{gap:20px;padding-top:24px}}
@media(max-width:1050px){.topbar{gap:20px;padding:0 25px}.desktop-nav{gap:20px;margin-left:0}.top-tools{gap:4px}.download-button{padding:8px 13px}.today-grid{grid-template-columns:minmax(0,1.75fr) minmax(240px,1fr);gap:22px}.practice-card{padding:25px}.word-hero{gap:16px}.word-hero .word-image{width:84px;height:102px}.word-title{font-size:37px}.sentence-en{font-size:27px}.side-section{padding:20px}.word-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.record-controls{gap:10px}.profile-layout{grid-template-columns:1fr 1fr}.stats-row{gap:25px}}
@media(max-width:780px){.topbar{height:78px;padding:0 24px;gap:15px}.desktop-nav{display:none}.brand>span{font-size:18px}.brand img{width:36px;height:36px}.top-tools .account-button{font-size:13px}.top-tools .download-button{display:none}#app{width:calc(100% - 40px);padding-top:28px}.page-heading{margin-bottom:23px}.today-grid{grid-template-columns:1fr;gap:22px}.practice-card{padding:25px}.today-aside{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.today-aside .aside-about{grid-column:1/-1}.word-hero .word-image{width:88px;height:104px}.word-title{font-size:38px}.sentence-block{min-height:190px}.sentence-en{font-size:28px}.practice-tools{gap:18px}.level-option{min-height:57px}.side-section{padding:20px}.site-footer{width:calc(100% - 40px);flex-wrap:wrap;gap:10px;padding-bottom:110px}.site-footer div{width:100%;margin:5px 0 0;gap:20px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;padding:10px 10px max(10px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--bg);z-index:5}.mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;color:var(--muted);font-size:11px;flex:1;min-width:0;padding:3px 0}.mobile-nav a[aria-current=page]{color:var(--amber)}.mobile-nav a svg{width:23px;height:23px}.profile-layout{grid-template-columns:1fr}.word-grid{gap:16px}.catalog-toolbar{flex-wrap:wrap}.search-field{flex-basis:65%}.select-wrap{order:3}.catalog-toolbar .select-wrap select{min-height:42px;padding-top:8px;padding-bottom:8px}.catalog-toolbar .select-wrap:after{top:17px}.catalog-count{font-size:12px}.chip{min-width:45px;padding:4px 13px}.filter-row{gap:8px}.word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#toast{bottom:100px}.word-dialog .word-title{font-size:40px}.word-dialog .word-image{width:115px;height:125px}.word-dialog .word-hero{gap:20px}.dialog-body{padding:24px}.record-controls{gap:24px}.dialog-header{padding:13px 20px}dialog{max-width:calc(100vw - 20px);max-height:92svh}}
@media(max-width:440px){.topbar{padding:0 18px;height:72px}.top-tools{gap:1px}.icon-button{width:35px;height:38px}.account-button{padding:8px 5px}.brand{gap:9px}.brand small{font-size:11px}#app{width:calc(100% - 32px);padding-top:24px}.page-heading{align-items:start}.page-heading h1{font-size:28px}.page-heading .subtitle{font-size:13px}.page-heading>.button{font-size:12px;padding:8px 12px;min-height:38px}.practice-card{padding:19px 17px;border-radius:23px}.word-hero{gap:14px;margin-bottom:21px}.word-hero .word-image{width:72px;height:87px}.word-title{font-size:34px}.word-meta .meaning{font-size:12px;margin-top:6px}.word-hero>.audio-button .audio-icon{width:34px;height:34px}.sentence-block{padding:19px 17px;gap:14px;min-height:185px}.sentence-en{font-size:25px;line-height:1.5}.sentence-zh{font-size:14px}.record-controls{gap:6px;grid-template-columns:75px 100px 75px}.record-button{width:70px;height:70px}.practice-tools{gap:16px}.recognition-choice{font-size:12px}.guest-invite{padding:12px;font-size:12px}.guest-invite .text-button{font-size:12px;flex-shrink:0}.today-aside{grid-template-columns:1fr}.today-aside .aside-about{grid-column:auto}.card-top{font-size:12px;margin-bottom:21px}.word-grid{gap:12px}.word-body{padding:13px 12px 16px;min-height:132px}.word-card{border-radius:16px}.word-card .card-word{font-size:23px}.word-card .card-meaning{font-size:12px}.word-card .pill{font-size:10px;padding:3px 7px}.word-card .card-audio{right:10px;bottom:62px}.word-card .card-audio .audio-icon{width:27px;height:27px}.card-fav{width:30px;height:30px;top:9px;right:9px}.card-fav svg{width:18px}.word-list .word-card>button.card-link{gap:14px}.word-list .word-art{width:70px;height:80px}.word-list .word-body{padding-right:70px}.word-list .word-card .card-audio{bottom:37px;right:48px}.word-list .card-fav{right:13px;top:39px}.filter-row{gap:6px;margin-top:16px}.chip{min-width:36px;padding:5px 10px;font-size:13px}.catalog-count{width:100%;margin-top:5px}.catalog-toolbar{gap:9px}.search-field{padding:0 14px}.search-field input{font-size:14px}.dialog-body{padding:22px 18px}.word-dialog .word-image{width:97px;height:108px}.word-dialog .word-title{font-size:35px}.word-dialog .word-hero{gap:17px}.pron-row{gap:15px}.pron-row .audio-button{font-size:13px}.pron-row .audio-icon{width:34px;height:34px}.word-mic{width:34px;height:34px}.example-section .sentence-en{font-size:23px}.profile-card{padding:22px}.notebook-summary{gap:26px}.site-footer{width:calc(100% - 32px)}.empty{padding:26px 16px}.practice-dialog .practice-card{padding:20px 17px}.practice-dialog .word-hero .word-image{width:65px;height:78px}.practice-dialog .word-title{font-size:28px}.dialog-header h2{font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important;scroll-behavior:auto!important}}
.word-body{display:block}.notebook-content{margin-top:24px}.review-buttons{margin-top:18px}.practice-actions svg{width:16px;height:16px;vertical-align:-3px;margin-right:6px}.unavailable{visibility:hidden}.saved{color:var(--amber)}.image-fallback{object-fit:contain;padding:20%;background:var(--surface2)}.word-dialog{touch-action:pan-y}

/* Keep the first microphone within reach on laptop screens. */
@media(min-width:781px){.today-page .page-heading{margin-bottom:24px}.today-page .practice-card{padding:23px 28px}.today-page .card-top{margin-bottom:16px;font-size:13px}.today-page .word-hero{margin-bottom:20px;gap:18px}.today-page .word-hero .word-image{width:74px;height:84px}.today-page .word-title{font-size:37px}.today-page .word-meta .meaning{margin-top:6px}.today-page .sentence-block{min-height:144px;padding:20px 23px;gap:13px}.today-page .sentence-en{font-size:29px}.today-page .practice-tools{padding-top:16px;gap:12px}.today-page .feedback-slot{height:26px}.today-page .record-controls{min-height:90px}.today-page .record-footer{min-height:34px}.today-page .record-footer .button{min-height:34px;padding:7px 16px}.today-page .recognition-choice{padding-top:10px}}

@media(max-width:780px){.today-page .page-heading>.button{display:none}.today-page .page-heading h1{font-size:28px}.today-page .page-heading .subtitle{font-size:13px}}

html{scrollbar-gutter:stable}

/* Align circular controls, independently of the captions beneath playback icons. */
.record-controls .audio-button {
  position: relative;
  height: 76px;
  justify-content: center;
}
.record-controls .audio-button > span:not(.audio-icon) {
  position: absolute;
  top: calc(50% + 20px + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.email-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.email-code-row .button{font-size:13px;white-space:nowrap;min-width:112px;padding:12px}

/* Bookmark state must remain visible while hovered, focused or touched. */
[data-action="save"][aria-pressed="true"], [data-action="save"][aria-pressed="true"]:hover {color:var(--amber)}
[data-action="save"][aria-pressed="true"]>svg {fill:currentColor}
[data-action="save"][aria-busy="true"] {opacity:.55;cursor:wait}

/* Keep waveform SVGs inside their own button; reserve space for word-card controls. */
.audio-icon {isolation:isolate}
.word-dialog[open] {display:flex;flex-direction:column;overflow:hidden}
.word-dialog>.dialog-header,.word-dialog>.word-pagination {flex:none;position:relative;z-index:2}
.word-dialog>.dialog-body {min-height:0;overflow-y:auto;overscroll-behavior:contain}

.learning-progress{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;color:var(--muted);font-size:14px}.learning-progress button:disabled{opacity:.45;cursor:default}

.word-title-button{display:inline-flex;align-items:center;gap:10px;max-width:100%;min-height:44px}.word-title-button>span:first-child{min-width:0}.word-link-hint{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;padding:5px 8px;border-radius:999px;background:var(--amber-soft);color:var(--amber);font:500 11px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;white-space:nowrap}.word-link-hint>span{font-size:15px}.word-title-button:focus-visible{outline:2px solid var(--amber);outline-offset:5px;border-radius:8px}

.word-preview-link{display:flex;align-items:center;gap:inherit;flex:1;min-width:0;text-align:left;border-radius:16px}.word-preview-link .word-meta,.word-preview-link .meaning{display:block}.word-preview-link:hover .word-title{color:var(--amber)}.word-preview-link:focus-visible{outline:2px solid var(--amber);outline-offset:6px}.headword{text-decoration-line:underline;text-decoration-color:var(--amber);text-decoration-thickness:1px;text-underline-offset:.13em;cursor:pointer}.headword:focus-visible{outline:2px solid var(--amber);outline-offset:3px}
