:root{--ink:#292929;--blue:#e56838;--blue2:#c84f24;--paper:#f5f5f5;--muted:#757575;--line:#e7e7e7;--shadow:0 2px 8px rgba(0,0,0,.025);--radius:12px}
.topbar{height:76px;max-width:none;padding:0 max(24px,calc((100vw - 1480px)/2));background:#fff;backdrop-filter:none}.logo-mark{background:#292929;transform:none;border-radius:8px}.brand-name{font-family:"Microsoft YaHei",system-ui,sans-serif;font-size:22px;letter-spacing:0}.brand-sub{letter-spacing:.08em;font-size:9px}.nav-link{color:#444;border-radius:8px}.nav-link:hover,.nav-link.active{background:#fff0e9;color:var(--blue)}.demo-bar{padding:6px 20px;background:#fff6e7;color:#927131;font-weight:400;font-size:11px}.site-main{max-width:1536px;padding:24px 28px 90px}.btn{border-radius:8px;min-height:42px;padding:10px 17px;font-size:13px}.btn:hover:not(:disabled){transform:none}.btn.small{min-height:35px;font-size:12px}.btn.ghost,.btn.soft{color:var(--blue)}.btn.secondary:hover{background:#fafafa}.page-header h1{font-size:32px}.page-header .eyebrow{display:none}.eyebrow{color:var(--blue);letter-spacing:.06em}.panel{padding:25px}.study-breadcrumb{color:var(--muted);font-size:12px;margin:0 0 10px;line-height:1.6}.inline-link{background:transparent;border:0;padding:3px 0;color:var(--blue);font-size:13px;cursor:pointer}.inline-link:hover{text-decoration:underline}.today-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;border:1px solid var(--line);border-radius:12px;background:white}.strip-metrics{display:flex;gap:10px}.strip-metrics>div{display:flex;align-items:center;gap:10px;background:#fafafa;border-radius:9px;padding:11px 14px}.strip-metrics span{font-size:12px;color:var(--muted)}.strip-metrics b{font-size:20px;color:var(--blue);font-family:Arial,sans-serif}.strip-metrics small{font-size:12px;color:#aaa;font-weight:400}.study-heading,.library-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:28px 0 18px}.study-heading h1,.library-intro h1{font-size:28px;letter-spacing:0;margin:0 0 9px}.study-heading p:last-child,.library-intro p:last-child{font-size:13px;color:#777;margin:0;line-height:1.6}.study-heading .button-row{align-self:center}.learning-note{font-size:12px;color:var(--muted);margin:0 0 15px}.daily-complete{display:flex;flex-wrap:wrap;gap:12px;padding:14px 18px;background:#edf6ef;border-radius:10px;margin:15px 0;color:#3b7250;font-size:13px}.daily-complete span{color:#688574}
.word-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:white;padding:13px;border:1px solid var(--line);border-radius:10px}.segmented{display:flex;background:#f0f0f0;padding:3px;border-radius:8px;flex-shrink:0}.segmented button{border:0;background:transparent;padding:7px 11px;color:#666;border-radius:6px;font-size:12px;white-space:nowrap}.segmented button.active{color:#292929;background:#fff;box-shadow:0 1px 3px #ddd;font-weight:700}.word-tools{display:flex;align-items:center;gap:9px;margin-left:auto;flex-wrap:wrap}.word-tools select{background:#f6f6f6;color:#555;border:1px solid var(--line);border-radius:7px;padding:8px;font-size:12px}.tool-button{border:0;background:transparent;color:#777;padding:5px 7px;font-size:12px;white-space:nowrap;border-radius:5px}.tool-button:hover{background:#f3f3f3;color:var(--blue)}.word-search{width:190px;min-height:34px;padding:7px 10px;background:#fafafa;border:1px solid var(--line);border-radius:7px;outline:none;font-size:12px}.word-search:focus{border-color:var(--blue)}.word-count{font-size:11px;color:#999;margin:10px 1px}.vocab-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 14px}.vocab-card{border:1px solid #e8e8e8;border-radius:10px;background:#fff;padding:17px 16px 0;box-shadow:0 2px 3px rgba(0,0,0,.02);display:flex;flex-direction:column;min-width:0}.vocab-title{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-height:29px}.vocab-title h3{font:700 19px/1.25 Arial,"Microsoft YaHei",sans-serif;margin:0;letter-spacing:0;overflow-wrap:anywhere}.word-audio{background:transparent;border:0;color:#727272;min-width:27px;min-height:30px;padding:0 3px;font-size:18px;border-radius:5px;flex-shrink:0}.word-audio:hover{background:#fff0e9;color:var(--blue)}.pos-tag{font:700 10px Arial,sans-serif;background:#f0f0f0;color:#777;padding:4px 6px;border-radius:5px}.vocab-meaning{font-size:13px;line-height:1.6;margin:12px 0 9px;color:#333;min-height:21px}.vocab-forms{font:12px/1.6 Arial,sans-serif;color:#666;margin:0 0 10px;overflow-wrap:anywhere}.vocab-example{font-size:12px;flex:1}.vocab-example p{margin:7px 0;line-height:1.7;overflow-wrap:anywhere}.vocab-example p>span{font-size:10px;color:#999;display:block}.vocab-example b{font:500 13px/1.6 Arial,sans-serif}.vocab-example small{font-size:11px;line-height:1.6;display:block}.vocab-footer{display:flex;align-items:center;gap:5px;margin-top:17px;padding-bottom:8px}.vocab-footer>.tool-button{margin-left:auto}.word-state{font-size:10px;color:#999}.word-state.known{color:#438264}.word-state.unknown{color:#ce684b}.word-state.fuzzy{color:#b18b30}.reveal-button{border:0;background:transparent;color:#929292;min-height:28px;min-width:28px;padding:3px;font-size:16px;border-radius:5px}.reveal-button:hover{background:#f5f5f5}.word-mark-actions{display:flex;border-top:1px solid #f0f0f0;padding:8px 0;gap:4px}.word-mark-actions button{background:transparent;border:0;border-radius:5px;padding:6px 4px;color:#999;font-size:10px;flex:1}.word-mark-actions button:hover,.word-mark-actions button.active{background:#fff1e9;color:var(--blue)}.covered-text{color:#b0b0b0;font-size:12px;letter-spacing:.02em}.weak-card{border-color:#f0d1c4}.more-words{display:flex;margin:22px auto}.vocabulary-empty{background:white;border:1px dashed #ddd;border-radius:10px;margin:17px 0;padding:35px 20px;text-align:center;color:#888;font-size:13px;line-height:1.8}.vocabulary-empty .btn{margin:12px 5px 0}.vocabulary-empty strong{display:block;font-size:17px;color:#444}.vocabulary-empty p{margin:7px auto;max-width:600px}
.word-list-view{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.word-list-header,.word-list-row{display:grid;grid-template-columns:1.3fr 1fr .6fr;align-items:center;gap:18px;padding:13px 20px}.word-list-header{background:#fafafa;font-size:11px;color:#999}.word-list-row{border-top:1px solid #eee;min-height:65px;font-size:13px}.word-list-row strong{font:700 17px Arial,sans-serif}.word-list-row small{display:block;font:11px/1.6 Arial,sans-serif;overflow-wrap:anywhere}.word-list-row>div{min-width:0;overflow-wrap:anywhere}
.section-head{margin:32px 0 15px;align-items:center}.section-head h2{font-size:21px;letter-spacing:0;border-left:4px solid var(--blue);padding-left:12px;margin:0}.section-head p{margin:8px 0 0;font-size:12px}.book-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.book-tile{position:relative;display:flex;gap:12px;align-items:center;text-align:left;background:white;border:1px solid #e9e9e9;border-radius:12px;padding:17px 14px;min-height:128px;color:#333;transition:border-color .15s,box-shadow .15s;min-width:0}.book-tile:hover{border-color:#d2b6a9;box-shadow:0 3px 10px #eaeaea}.book-cover{display:flex;flex-direction:column;justify-content:space-between;background:#316b79;color:#fff;border-radius:3px 6px 6px 3px;width:59px;height:83px;padding:8px 7px;flex-shrink:0;box-shadow:inset 4px 0 rgba(0,0,0,.1),2px 2px 0 #d6d6d6}.book-cover b{font-size:19px;letter-spacing:0;line-height:1}.book-cover small{color:#d8ebef;font-size:8px}.book-cover>span{font-size:6px;letter-spacing:.06em}.book-cover.exam{background:#fff;color:#333;box-shadow:none;border:1px solid #ececec}.book-cover.exam b{font-size:24px}.book-cover.exam small{color:#888}.book-cover.theme{background:#d79d35}.book-cover.demo{background:#57719a}.book-info{display:flex;flex-direction:column;gap:6px;min-width:0}.book-info strong{font-size:15px;line-height:1.4}.book-info>small{font-size:10px;line-height:1.5}.book-info .pill{font-size:9px;padding:3px 6px;align-self:start;white-space:normal;line-height:1.4}.book-arrow{color:#aaa;font-size:20px;margin-left:auto}.personal-library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.personal-library-grid button{display:flex;gap:15px;align-items:center;text-align:left;padding:22px;background:#fff;border:1px solid var(--line);border-radius:12px;color:#333}.personal-library-grid button>span{font-size:29px;color:var(--blue)}.personal-library-grid strong{display:block;margin-bottom:6px;font-size:16px}.personal-library-grid small{font-size:11px}
.collection-banner{background:#4c6269;border-radius:13px 13px 0 0;color:#fff;padding:28px 32px}.collection-banner .inline-link{color:#d7e4e6}.collection-banner p{font-size:12px;color:#cbdadd;margin:17px 0 10px}.collection-banner h1{font-size:30px;letter-spacing:0;margin:0 0 10px}.collection-banner>span{font-size:12px;color:#d5e1e4}.collection-body{background:#fafafa;border:1px solid #e4e4e4;border-top:0;border-radius:0 0 13px 13px;padding:22px}.chapter-bar{display:flex;gap:15px;align-items:start;padding:8px 0;font-size:12px}.chapter-bar>strong{padding-top:8px;white-space:nowrap;min-width:28px}.chapter-options{display:flex;gap:6px;flex-wrap:wrap}.chapter-options>button{border:0;background:transparent;border-radius:20px;padding:8px 13px;color:#555;font-size:12px}.chapter-options>button.active{background:#292929;color:#fff}.chapter-options>button:hover{background:#ddd;color:#333}.chapter-options>span{padding:8px;color:#aaa}.collection-actions{display:flex;align-items:center;justify-content:space-between;margin:17px 0 14px;gap:10px}.collection-actions>span{font-size:11px;color:#999}.collection-body .vocab-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.review-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0 15px}.review-tabs button{background:white;border:1px solid var(--line);border-radius:8px;color:#666;padding:11px 16px;font-size:12px}.review-tabs button.active{background:#292929;color:#fff;border-color:#292929}.review-schedule{background:#fff;border-radius:10px;border:1px solid var(--line);padding:12px 20px;font-size:12px}.review-schedule>div{display:grid;grid-template-columns:1fr 1fr 110px;gap:20px;padding:13px 0;border-bottom:1px solid #eee}.review-schedule>div:last-child{border-bottom:0}.review-schedule time{color:var(--blue)}.review-schedule p{padding:12px;color:#999}
.plan-modal{width:min(100%,580px)}.quantity-presets{display:flex;gap:8px}.quantity-presets button{border:1px solid #ddd;background:#fafafa;border-radius:7px;padding:8px 16px;color:#555}.quantity-presets button:hover{border-color:var(--blue);color:var(--blue)}.plan-modal>.inline-link{margin-top:18px}.word-detail-modal{width:min(100%,600px)}.word-detail-modal h2{font:700 30px Arial,sans-serif}.word-detail-modal .meaning{font-size:19px}.detail-example{background:#fafafa;padding:17px 20px;border-radius:10px;margin:20px 0;font-size:14px;line-height:1.7}.detail-example small{font-size:11px}.detail-example p{margin:5px 0 12px}.audio-note{font-size:11px;color:#999;margin-top:16px}.practice-main h1,.feedback-word{font-family:Arial,sans-serif}.practice-card{border-radius:14px}.cover-slip{background:#ffe5cb;color:#996137;box-shadow:4px 5px 0 #efefef}.answer-input{border-color:var(--blue)}.answer-input:focus{background:#fff8f2}.progress-track>span{background:var(--blue)}.inline-audio{color:var(--blue)}.practice-top{background:var(--paper)}.bottom-nav button.active{color:var(--blue);background:#fff1e9}.choice:hover{border-color:var(--blue);background:#fff9f4}.choice-icon{color:var(--blue)}
@media(max-width:1320px){.vocab-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.word-search{width:170px}.word-tools{margin-left:0}.collection-body .vocab-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.strip-metrics>div{padding:9px 11px}}
@media(max-width:1000px){.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.today-strip{flex-wrap:wrap}.study-heading{align-items:start;flex-direction:column}.study-heading .button-row{align-self:start}.strip-metrics{flex:1}.strip-metrics>div{flex:1}.topbar{padding:0 24px;gap:16px}.brand-name{font-size:19px}.nav-link{font-size:12px;padding:10px}.top-actions{margin-left:auto}.word-search{flex:1;min-width:150px}}
@media(max-width:899px){.vocab-grid,.collection-body .vocab-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.site-main{padding:16px 14px 90px}.topbar{height:61px;padding:0 16px}.brand-name{font-size:18px}.brand-sub{font-size:8px}.today-strip{padding:11px;gap:12px}.strip-metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;flex-basis:100%}.strip-metrics>div{padding:8px 11px;justify-content:space-between}.strip-metrics span{font-size:11px}.strip-metrics b{font-size:17px}.today-strip>.button-row{width:100%;justify-content:end}.study-heading,.library-intro{margin:23px 0 16px;gap:15px;align-items:start;flex-direction:column}.study-heading h1,.library-intro h1{font-size:23px}.study-heading .button-row{width:100%;gap:8px}.study-heading .btn{padding:10px 12px;font-size:12px;flex:1}.word-toolbar{padding:10px;gap:10px}.segmented button{padding:7px 9px;font-size:11px}.word-tools{gap:6px}.word-tools .tool-button{font-size:11px}.word-search{width:100%;flex-basis:100%;font-size:13px;min-height:39px}.vocab-grid,.collection-body .vocab-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.vocab-card{padding:13px 12px 0}.vocab-title h3{font-size:17px}.vocab-example b{font-size:12px}.vocab-forms{font-size:11px}.vocab-footer{margin-top:12px}.word-mark-actions button{font-size:10px;padding:7px 2px;min-height:31px}.book-grid{grid-template-columns:1fr;gap:10px}.book-tile{min-height:105px;padding:13px 16px}.book-cover{width:53px;height:74px}.book-info strong{font-size:15px}.book-info>small{font-size:11px}.section-head h2{font-size:18px}.personal-library-grid{grid-template-columns:1fr;gap:9px}.personal-library-grid button{padding:17px}.collection-banner{padding:22px}.collection-banner h1{font-size:25px}.collection-body{padding:12px}.collection-actions{flex-wrap:wrap}.collection-actions>.button-row{width:100%}.collection-actions .btn{flex:1}.word-list-header,.word-list-row{grid-template-columns:1.15fr .9fr .55fr;gap:8px;padding:12px 10px}.word-list-row strong{font-size:15px}.word-list-row{font-size:11px}.word-list-row .word-state{display:block}.review-tabs{gap:7px}.review-tabs button{padding:9px 10px;font-size:11px}.review-schedule{padding:10px 14px}.review-schedule>div{grid-template-columns:1fr 90px;gap:8px}.review-schedule>div>span{display:none}.word-detail-modal h2{font-size:26px}.modal{border-radius:15px}.daily-complete{font-size:12px}}
@media(max-width:390px){.vocab-grid,.collection-body .vocab-grid{grid-template-columns:1fr}.vocab-title h3{font-size:21px}.vocab-card{padding:18px 19px 0}.vocab-example b{font-size:14px}.word-tools{width:100%}.word-tools select{width:100%}}
.word-phonetic{font-size:11px;color:#999}.round-word-summary{text-align:left;margin:20px 0;padding:16px;background:#fafafa;border-radius:10px}.round-word-summary h3{font-size:14px}.round-word-summary>div{display:grid;grid-template-columns:1fr 1fr;gap:7px;border-top:1px solid #eee;padding:12px 0;font-size:13px}.round-word-summary small{grid-column:1/-1;font-size:11px}.round-word-summary p{color:#648269;margin:0;font-size:13px}
.textbook-cover{width:59px;height:83px;object-fit:cover;border-radius:3px;box-shadow:1px 2px 3px #ddd;flex-shrink:0}
.translation-mask{display:inline-block;width:65%;max-width:180px;height:1em;border-bottom:1px solid #aaa;vertical-align:baseline}
.vocab-meaning.translation-covered{min-height:21px}.vocab-example-translation{min-height:36px;margin-top:5px}
.reveal-button{display:inline-flex;align-items:center;justify-content:center;color:#626262;min-width:34px;min-height:34px;padding:5px}
.reveal-button:hover{color:#292929;background:#ececec}.reveal-button svg{flex-shrink:0}
.vocab-footer{padding-bottom:24px}
@media(max-width:700px){.strip-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.strip-metrics>div{display:block;padding:8px 7px}.strip-metrics span{display:block;font-size:10px;margin-bottom:6px}.strip-metrics b{font-size:18px}.strip-metrics small{font-size:10px}.today-strip>.button-row{display:none}.study-heading{margin-top:21px}.word-toolbar{padding:9px}.learning-note{line-height:1.7}}

/* Floating card controls stay available to keyboard and touch users. */
.vocab-card{position:relative;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.vocab-card:hover,.vocab-card:focus-within{transform:translateY(-7px);box-shadow:0 13px 26px rgba(30,30,30,.13);border-color:#d4d4d4;z-index:2}
.card-hover-actions{position:relative;align-self:center;flex-shrink:0;display:flex;align-items:center;gap:4px;width:100%;max-width:320px;margin:12px 0 10px;padding:4px;background:#dededeeF;border-radius:30px;box-shadow:0 3px 7px #0002;opacity:0;pointer-events:none;transition:opacity .18s ease}
.vocab-card:hover .card-hover-actions,.vocab-card:focus-within .card-hover-actions{opacity:1;pointer-events:auto;transform:none}
.card-hover-actions button{background:#262626;color:#fff;border:0;min-width:0;min-height:34px;border-radius:22px;padding:7px 4px;flex:1;font-size:12px;white-space:nowrap;transition:background .15s ease}
.card-hover-actions button:hover{background:#4d4d4d}.card-hover-actions button.active{background:#53694b;box-shadow:inset 0 0 0 1px #fff7}
.card-hover-actions .card-icon-button,.detail-personal-buttons .card-icon-button{position:relative;flex:0 0 30px;display:inline-flex;align-items:center;justify-content:center;padding:0}
.card-icon-button span{font-size:21px;line-height:1}.card-hover-actions .material-saved{background:#53694b}.note-dot{position:absolute;width:5px;height:5px;right:6px;top:6px;background:#ffbc73;border-radius:50%}
.personal-word-actions{margin:18px 0;padding-top:16px;border-top:1px solid var(--line)}.detail-personal-buttons{display:flex;gap:10px;align-items:center;font-size:12px;color:#777}.detail-personal-buttons .card-icon-button{height:36px;border:1px solid #ddd;border-radius:8px;background:#fafafa;color:#444}.detail-personal-buttons .material-saved{color:#438264;background:#edf6ef}.saved-word-note{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;background:#fff8ec;padding:12px 15px;border-radius:8px}.word-note-modal textarea{resize:vertical;min-height:150px;line-height:1.8}
@media(hover:none),(pointer:coarse){.card-hover-actions{position:static;transform:none;opacity:1;pointer-events:auto;width:100%;margin:8px 0 12px;box-shadow:none}.vocab-card:hover,.vocab-card:focus-within{transform:none}.vocab-card:hover .card-hover-actions,.vocab-card:focus-within .card-hover-actions{transform:none}.card-hover-actions button{min-height:40px}}
@media(max-width:700px){.vocab-grid,.collection-body .vocab-grid{row-gap:28px}.card-hover-actions{width:calc(100% - 8px);gap:3px;padding:3px}.card-hover-actions button{font-size:10px}.card-hover-actions .card-icon-button{flex-basis:26px}}
@media(prefers-reduced-motion:reduce){.vocab-card,.card-hover-actions{transition:none}}

/* A local home control stays reachable while scrolling the library on a tablet. */
.library-page-back{position:sticky;top:76px;z-index:12;width:100%;margin:-8px 0 22px;padding:8px 0;background:var(--paper)}
.library-home-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;min-width:148px;padding:10px 18px;background:#fff;border:1px solid #dedede;border-radius:10px;color:#414141;font-size:15px;font-weight:650;box-shadow:0 2px 7px #00000008;transition:background .15s,border-color .15s}
.library-home-button>span{font-size:21px;line-height:1}
.library-home-button:hover{background:#fff7f1;border-color:#e3b89f}
.library-home-button:focus-visible{outline:3px solid #e56838;outline-offset:3px}
@media(max-width:700px){.library-page-back{top:61px;margin-bottom:19px}.library-home-button{min-height:46px;min-width:142px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.library-home-button{transition:none}}

/* Full expressions need a separate translation line and room for complete speech. */
.phrase-card .vocab-title{display:block}
.phrase-card .vocab-headword{margin-bottom:12px;align-items:flex-start}
.phrase-card .vocab-title h3{font-size:21px;line-height:1.5}
.phrase-card .vocab-title .vocab-meaning{display:block;margin-top:12px;font-size:16px;font-weight:500;line-height:1.7}
.vocab-card.phrase-card{min-height:200px}
.phrase-card .vocab-footer{margin-top:auto}
.phrase-card .pos-tag{display:inline-block}
.phrase-hint{font-size:13px;line-height:1.7;color:var(--muted);margin:12px 0}
.phrase-readings{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.phrase-readings>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:100%}
.phrase-readings .tool-button{border:1px solid var(--line);border-radius:7px;padding:8px 10px;min-height:40px}
.word-detail-modal .phrase-readings{display:grid;gap:12px}
.flashcard-detail .phrase-readings{display:flex;gap:8px}
.flashcard.phrase-flashcard .flashcard-detail-tabs{display:none}
.phrase-flashcard .flashcard-front h1{font-size:26px;line-height:1.4}
.phrase-flashcard .flashcard-back-title h2{font-size:21px;line-height:1.4}
.phrase-readings span{overflow-wrap:anywhere}
/* Compact landscape cards: the German text is the visual anchor. */
.site-main:has(.collection-body),.site-main:has(.review-tabs){max-width:1900px}
.vocab-grid,.collection-body .vocab-grid{gap:28px 16px;align-items:stretch}
.vocab-card{padding:18px 18px 0;min-height:252px;border-radius:9px}
.vocab-title{column-gap:7px;row-gap:3px;align-items:baseline;min-height:30px;margin-bottom:10px}
.vocab-headword{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;max-width:100%}
.vocab-title h3{font:700 23px/1.3 Arial,"Microsoft YaHei",sans-serif;color:#080808;overflow-wrap:anywhere}
.word-phonetic{font:500 13px/1.45 Arial,"Segoe UI",sans-serif;color:#171717}
.vocab-title .word-audio{align-self:center;color:#252525}
.vocab-title .pos-tag{font-size:12px;color:#303030;background:#ededed;padding:5px 8px}
.vocab-title .vocab-meaning{font-size:19px;font-weight:700;line-height:1.4;margin:0;min-height:0;color:#111;overflow-wrap:anywhere}
.vocab-title .vocab-meaning.translation-covered{flex:1 1 45px;min-height:0}
.vocab-title .translation-mask{width:100%;min-width:30px;max-width:110px;height:.65em}
.vocab-forms{font:600 15px/1.5 Arial,"Microsoft YaHei",sans-serif;color:#333;margin:0 0 8px;overflow-wrap:anywhere}
.vocab-example{flex:1;font-size:16px;color:#101010}
.vocab-example p{display:block;margin:10px 0 0;line-height:1.6;overflow-wrap:anywhere}
/* Separate collocation and example even when the source has no Chinese collocation. */
.vocab-example p+p{margin-top:24px}
.vocab-example p>span{display:inline;font:700 14px/1.5 "Microsoft YaHei",Arial,sans-serif;color:#111}
.vocab-example b{font:700 15px/1.6 Arial,"Microsoft YaHei",sans-serif;color:#080808}
.vocab-example .word-audio{display:inline-flex;vertical-align:middle;color:#252525;padding:2px;min-width:23px;min-height:22px}
.vocab-example small.vocab-example-translation{display:block;font-size:14px;line-height:1.55;min-height:0;margin:12px 0 0;color:#333}
.vocab-example-translation.translation-covered{min-height:14px;line-height:14px;margin-top:6px}
.vocab-example-translation .translation-mask{height:10px;max-width:180px}
.vocab-footer{margin-top:5px;padding-bottom:22px;min-height:34px}
.vocab-footer .word-state{font-size:11px;color:#666}
.vocab-footer .tool-button{font-size:11px;padding:4px}
.word-list-row .word-phonetic{margin-right:3px}
.word-detail-modal .word-phonetic{font-size:16px;font-weight:500}
@media(min-width:1700px){.vocab-card{min-height:265px;padding:20px 20px 0}.vocab-title h3{font-size:26px}.vocab-example b{font-size:18px}.vocab-example p>span{font-size:17px}.vocab-forms{font-size:17px}}
@media(max-width:1050px) and (min-width:900px){.vocab-title h3{font-size:20px}.vocab-card{padding:16px 12px 0}.vocab-example b{font-size:14px}.vocab-example p>span{font-size:13px}}
/* Desktop proportions follow the reference; tablets retain comfortable text widths. */
@media(min-width:1350px){.vocab-grid,.collection-body .vocab-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:1101px) and (max-width:1349px){.vocab-grid,.collection-body .vocab-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:601px) and (max-width:1100px){.vocab-grid,.collection-body .vocab-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.vocab-grid,.collection-body .vocab-grid{grid-template-columns:1fr;gap:28px}.vocab-card{padding:18px 18px 0;min-height:245px}.vocab-title h3{font-size:23px}.vocab-example b{font-size:16px}}
@media(hover:none),(pointer:coarse){.vocab-footer{padding-bottom:0}.card-hover-actions{width:100%;gap:4px;margin:7px 0 12px}.card-hover-actions button{font-size:12px}}
/* A landscape tablet has less vertical room; its controls remain in the card. */
@media(max-height:820px) and (min-width:601px) and (hover:none),
       (max-height:820px) and (min-width:601px) and (pointer:coarse){
  .vocab-grid,.collection-body .vocab-grid{row-gap:18px}
  .vocab-card{padding-top:12px}
  .card-hover-actions{margin:4px 0 2px}
}

.mistake-notebook-tools{margin:20px 0}.mistake-notebook-tools h2{font-size:20px;margin:0 0 8px}.mistake-filters{display:flex;flex-wrap:wrap;gap:14px}.mistake-filters label{display:grid;gap:5px;color:var(--muted);font-size:12px;min-width:130px;max-width:100%}.mistake-filters select{min-height:42px;border:1px solid var(--line);border-radius:8px;background:white;padding:8px;max-width:100%;color:var(--ink)}.mistake-evidence{border-top:1px solid var(--line);margin:12px 0 0;padding:12px 0 0;font-size:13px;overflow-wrap:anywhere}.mistake-evidence-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px}.mistake-evidence-heading strong{color:#215b43;font:600 13px system-ui}.mistake-evidence-heading span,.mistake-history-row>small{color:var(--muted);font-size:11px}.mistake-history-row{margin:10px 0}.mistake-evidence .dictation-diff{font-size:14px;padding:8px;margin:6px 0}.mistake-evidence .dictation-diff p{flex-wrap:wrap;gap:4px 10px}.mistake-evidence .dictation-diff small{font-size:11px}.mistake-evidence details{margin:9px 0}.mistake-evidence summary{cursor:pointer;font-size:12px;color:var(--muted)}.mistake-next-review{font-size:12px;color:#215b43}.word-list-row>.mistake-evidence{grid-column:1/-1;width:100%;margin:0}.vocab-card:has(.mistake-evidence){min-height:0;height:auto}.mistake-notebook-tools+.word-toolbar .word-start{min-height:42px}
@media(max-width:700px){.mistake-filters{gap:8px}.mistake-filters label{width:100%;min-width:0}.mistake-filters select{width:100%}}

/* Noun metadata shares a line and wraps naturally for long plural forms. */
.vocab-card>.word-grammar[data-pos="noun"]{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px}
.vocab-card>.word-grammar[data-pos="noun"]>.word-pos{flex:none;margin:0}
.vocab-card>.word-grammar[data-pos="noun"]>.word-grammar-rows{display:flex;flex:1;flex-wrap:wrap;gap:3px 10px;min-width:0}
.vocab-card>.word-grammar[data-pos="noun"] .word-grammar-row{display:flex;flex-wrap:wrap;min-width:0;max-width:100%;gap:3px}
.vocab-card>.word-grammar[data-pos="noun"]>.grammar-reference{flex-basis:100%;margin-top:0}

/* Numbered pages share the same slice used by current-page practice. */
.word-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 18px;margin:24px 0 12px;padding:18px 0 8px;border-top:1px solid var(--line,#dce3dc);font-size:14px;color:var(--muted,#66726b)}
.word-page-summary,.word-total{flex-basis:100%;text-align:center;margin:0;line-height:1.7}
.word-total strong{color:var(--ink,#203b30);font-weight:700;font-variant-numeric:tabular-nums}
.word-page-buttons{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px}
.word-page-buttons button{display:grid;place-items:center;min-width:38px;min-height:40px;padding:7px 10px;border:1px solid var(--line,#dce3dc);border-radius:8px;background:white;color:var(--ink,#203b30);cursor:pointer;font:inherit;font-variant-numeric:tabular-nums}
.word-page-buttons button[aria-current="page"]{background:#315f50;border-color:#315f50;color:white;font-weight:700}
.word-page-buttons button:disabled{opacity:.4;cursor:default}
.word-page-buttons button:focus-visible,.word-page-jump select:focus-visible{outline:3px solid #c5add7;outline-offset:2px}
.word-page-gap{padding:0 2px}
.word-page-jump{display:flex;align-items:center;gap:7px;white-space:nowrap}
.word-page-jump select{max-width:130px;min-height:40px;border:1px solid var(--line,#dce3dc);border-radius:8px;background:white;padding:7px 9px;color:var(--ink,#203b30);font:inherit}
#word-results:focus{outline:none}
@media(max-width:600px){.word-pagination{font-size:12px;gap:10px;margin-top:18px}.word-page-buttons{gap:3px}.word-page-buttons button{min-width:29px;min-height:40px;padding:6px}.word-page-gap{padding:0}.word-page-jump{flex-basis:100%;justify-content:center}}

@media(max-width:600px){.word-pagination{margin-bottom:calc(84px + env(safe-area-inset-bottom,0px))}}

.word-page-size{display:flex;align-items:center;gap:7px;white-space:nowrap}
.word-page-size select{min-height:40px;max-width:100px;border:1px solid var(--line,#dce3dc);border-radius:8px;background:white;padding:7px 9px;color:var(--ink,#203b30);font:inherit}
.word-page-size select:focus-visible{outline:3px solid #c5add7;outline-offset:2px}
