:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#292b39;background:#faf9f6;font-synthesis:none;scroll-behavior:smooth}*{box-sizing:border-box}body{margin:0;min-width:310px}button,input,select{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}a:hover,button:hover{transition:.18s}h1,h2,h3,h4,p{margin-top:0}h1{font-size:31px;letter-spacing:-1.05px;line-height:1.3}h2{font-size:18px;letter-spacing:-.35px}h3{font-size:14px}p{line-height:1.75}.app-layout{display:flex;min-height:100vh}.sidebar{width:249px;flex:0 0 249px;background:#fff;border-right:1px solid #eeede8;display:flex;flex-direction:column;padding:24px 15px 18px;position:sticky;top:0;height:100vh;z-index:30;overflow-y:auto}.identity{display:flex;align-items:center;gap:11px;margin:3px 10px 30px}.identity-icon{display:grid;place-items:center;background:#ffe5a5;color:#a86d03;border-radius:14px;width:43px;height:43px;font-size:25px;box-shadow:0 6px 16px #c99d3a22}.identity strong{font-size:22px;display:block;letter-spacing:-.9px;color:#263347}.identity small{display:block;font-size:10px;color:#9ca4a9;margin-top:2px}.sidebar-caption{font-size:10px;font-weight:800;letter-spacing:1.1px;color:#a3a7b1;margin:9px 16px 10px}.nav-group{display:grid;gap:3px;margin-bottom:24px}.nav-group a{display:flex;align-items:center;gap:12px;color:#707888;padding:11px 12px;border-radius:11px;font-weight:650;font-size:12px;line-height:1.3}.nav-group a:hover{background:#fff9ea;color:#aa7609}.nav-group a.active{background:#fff3d2;color:#9c6c0e;font-weight:750}.nav-ico{font-size:18px;font-weight:500;display:inline-grid;place-items:center;width:24px;flex:0 0 24px}.sidebar-bottom{margin-top:auto;border-radius:18px;padding:16px 15px;background:linear-gradient(160deg,#fff5d9,#fce6b9);border:1px solid #f8e1a9}.tiny-bumble{font-size:33px;margin-bottom:8px}.sidebar-bottom strong{font-size:13px;color:#775522}.sidebar-bottom p{font-size:11px;color:#a0824d;margin:8px 0 12px}.sidebar-start{display:flex;justify-content:space-between;font-size:11px;font-weight:800;color:#9c6b0f}.sidebar-foot{color:#a8aaad;text-align:center;font-size:9px;padding-top:17px}.workspace{min-width:0;flex:1}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 35px;border-bottom:1px solid #eeede9;background:#ffffffed;position:sticky;top:0;z-index:20;backdrop-filter:blur(16px)}.crumb-label{color:#a0a1a6;font-size:12px}.crumb-label span{margin:0 10px;color:#c6c8ca}.crumb-label b{color:#454c5a}.top-right{display:flex;align-items:center;gap:18px}.date-pill{color:#7b838c;font-size:11px;font-weight:600}.top-streak{color:#826b45;border:1px solid #f3e3b7;background:#fffaef;padding:8px 12px;border-radius:50px;font-size:12px}.avatar{width:33px;height:33px;display:grid;place-items:center;color:#aa7709;font-weight:900;background:#fde5a7;border-radius:50%;font-size:11px}.mobile-menu{display:none;border:none;background:transparent;color:#4d5360;font-size:21px}.main-content{max-width:1510px;margin:auto;padding:33px 37px 52px;min-height:calc(100vh - 144px)}.site-footer{text-align:center;font-size:10px;color:#a9a9ad;padding:18px 20px 28px;border-top:1px solid #eeece7}.site-footer a{color:#9b780f}.section-kicker{font-size:11px;color:#bc8d2c;font-weight:900;letter-spacing:1.1px;text-transform:uppercase;margin:0 0 7px}.page-heading{margin-bottom:24px;display:flex;align-items:end;justify-content:space-between;gap:15px}.page-heading p{font-size:12px;color:#8c929c;margin:8px 0 0}.muted{color:#929aa4;font-size:11px}.subheading{display:flex;align-items:center;justify-content:space-between;margin:28px 0 16px}.subheading h2{margin:0}.subheading a,.subheading button{color:#bc8b21;font-size:11px;font-weight:750;border:0;background:none}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,.84fr);gap:22px;align-items:start}.col-stack{display:grid;gap:18px;min-width:0}.hero{position:relative;overflow:hidden;min-height:252px;border-radius:24px;background:linear-gradient(115deg,#f6d48f 0%,#ffe2af 52%,#fff1cb 100%);padding:33px 33px 31px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 12px 33px #caa76b18}.hero:after{content:"";position:absolute;width:370px;height:370px;border:1px solid #e9b95f55;border-radius:50%;right:-155px;top:-90px;box-shadow:0 0 0 31px #ffffff32,0 0 0 80px #ffffff24}.hero-copy{z-index:2;max-width:405px}.hero .eyebrow{font-size:11px;font-weight:900;letter-spacing:.8px;color:#a76a12}.hero h1{font-size:32px;margin:11px 0 10px;color:#4c382b;max-width:390px}.hero p{color:#8f6f41;font-size:12px;line-height:1.7;max-width:380px;margin-bottom:22px}.hero-glyph{font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;font-size:137px;font-weight:850;color:#ffffff9b;text-shadow:7px 12px 1px #e6b4595e;transform:rotate(-12deg);margin:0 40px 0 10px;z-index:1}.btn{background:#e3a437;border:1px solid #e3a437;color:#fff;border-radius:10px;font-size:12px;font-weight:800;padding:12px 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover{background:#cb8e22;transform:translateY(-1px)}.btn.dark{background:#473c36;border-color:#473c36}.btn.dark:hover{background:#2a2624}.btn.outline{background:#fff;color:#a77820;border-color:#f1dfb9}.btn.muted-btn{background:#f7f6f2;color:#666d7b;border-color:#eeece9}.btn.sm{padding:9px 12px;font-size:11px}.btn:disabled{opacity:.48;cursor:not-allowed;transform:none}.stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.stat-card{border:1px solid #edeae4;background:#fff;border-radius:17px;padding:18px;display:flex;align-items:center;gap:13px}.stat-symbol{width:44px;height:44px;display:grid;place-items:center;font-size:22px;border-radius:13px;flex-shrink:0}.stat-symbol.sun{background:#fff2d9}.stat-symbol.mint{background:#e9f8f1}.stat-symbol.purple{background:#f0ebff}.stat-card small{font-size:10px;color:#929aab;display:block;margin-bottom:7px}.stat-card b{font-size:20px;letter-spacing:-.4px}.card{background:#fff;border:1px solid #edece8;border-radius:18px;padding:20px;min-width:0}.card-header{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:17px}.card-header h2{margin:0}.card-header a{font-size:11px;color:#aa7920;font-weight:800}.lesson-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.lesson-tile{min-width:0;padding:18px 15px;background:#fff;border:1px solid #ecebe6;border-radius:16px}.lesson-tile .tile-art{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-size:22px;background:#f9f1df;margin-bottom:15px}.lesson-tile:nth-child(3n + 2) .tile-art{background:#e8f7f0}.lesson-tile:nth-child(3n + 3) .tile-art{background:#eceeff}.lesson-tile .tag{color:#bf8b2e;font-size:9px;font-weight:850;margin-bottom:8px;display:block}.lesson-tile h3{font-size:12px;margin:0 0 7px;line-height:1.5}.lesson-tile p{font-size:10px;color:#949aa5;min-height:34px;line-height:1.65;margin-bottom:12px}.lesson-tile .text-link{color:#ba8421;font-size:10px;font-weight:800}.hsk-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.hsk-card{display:flex;align-items:center;gap:13px;padding:15px;border:1px solid #eae9e5;background:#fff;border-radius:14px;cursor:pointer;text-align:left}.hsk-card:hover{border-color:#e3bb73;background:#fffaf1}.hsk-card i{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;background:#fff2db;border-radius:11px;font:700 21px "Microsoft YaHei","Noto Sans SC",sans-serif;color:#b78119}.hsk-card:nth-child(3n + 2) i{background:#e8f7ef;color:#32976c}.hsk-card:nth-child(3n + 3) i{background:#eee9ff;color:#8c70bf}.hsk-card strong{font-size:11px;display:block}.hsk-card small{display:block;font-size:10px;color:#9ba1a7;margin-top:5px}.small-progress{height:7px;background:#f5f2eb;border-radius:99px;overflow:hidden}.small-progress>i{height:100%;display:block;background:#e5ae4a;border-radius:99px;transition:width .2s}.right-card-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.right-card-heading h2{margin:0}.right-card-heading small{font-size:10px;color:#999ba5}.week-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin:18px 0 9px}.day-unit{text-align:center;display:grid;gap:8px}.day-unit b{font-weight:650;color:#a4a6ad;font-size:10px}.day-mark{height:30px;width:30px;margin:auto;display:grid;place-items:center;background:#f3f1ec;border-radius:50%;font-size:11px;color:#a9a8ab}.day-mark.done{background:#e3b34c;color:#fff}.progress-summary{background:#fdf9f0;border-radius:13px;padding:13px;font-size:11px;color:#90713d;line-height:1.7}.challenge-row{display:flex;gap:12px;align-items:center;border-bottom:1px solid #f3f1eb;padding:12px 0}.challenge-row:last-child{border:none}.checkmark{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#f5f2eb;color:#ada9a0;flex:0 0 29px;font-size:13px}.checkmark.done{background:#e5f7ed;color:#279a68}.challenge-row>div{flex:1}.challenge-row strong{display:block;font-size:11px;margin-bottom:4px}.challenge-row small{font-size:10px;color:#9ea4aa}.challenge-progress{color:#c18a27;font-size:11px;font-weight:800}.notice{background:#fff8ec;border:1px solid #f2e2bf;border-radius:13px;padding:14px 17px;color:#987c44;font-size:11px;line-height:1.8;margin:17px 0}.progress-bar{height:7px;border-radius:30px;background:#f2efe8;overflow:hidden}.progress-bar i{display:block;background:linear-gradient(90deg,#f4bc54,#d99823);height:100%;border-radius:30px}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}.toolbar input,.toolbar select,.field{background:#fff;border:1px solid #e5e5df;border-radius:11px;padding:12px 13px;color:#4b5260;font-size:12px;outline:none}.toolbar input:focus,.toolbar select:focus,.field:focus{border-color:#e0b25f;box-shadow:0 0 0 3px #f5e2b654}.toolbar input{min-width:220px;flex:1}.toolbar select{max-width:200px}.word-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.word-card{background:#fff;border:1px solid #eceae5;border-radius:15px;padding:18px;min-width:0;display:flex;flex-direction:column;gap:9px}.word-card .hanzi{font-size:28px;font-weight:700;color:#574332;font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;word-break:break-word}.word-card .pinyin{font-size:11px;color:#ad7b27}.word-card .eng{font-size:10px;color:#87909c;line-height:1.7;flex:1;overflow-wrap:anywhere}.word-actions{display:flex;justify-content:space-between;gap:7px}.icon-button{width:34px;height:32px;border:1px solid #eeece6;background:#fffaf1;border-radius:9px;color:#a57923;font-size:15px}.icon-button.active{color:#b86c00;background:#fff0ce}.pager{display:flex;align-items:center;justify-content:center;gap:17px;margin:22px auto;font-size:11px;color:#959aa4}.lesson-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.unit-card{background:#fff;border:1px solid #ecebe7;border-radius:16px;padding:19px}.unit-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.unit-top .unit-num{font-weight:900;font-size:24px;color:#ddad56}.unit-tag{font-size:10px;color:#8f997f;background:#eef4e7;border-radius:20px;padding:5px 10px}.unit-card h3{font-size:14px;margin:0 0 8px}.unit-card p{font-size:11px;color:#9ca1a9;line-height:1.7}.unit-card .progress-bar{margin:13px 0}.unit-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#999aa1;font-size:10px;margin-top:13px}.lesson-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.lesson-detail-head button{border:0;background:transparent;color:#ab7b25;font-weight:700;font-size:11px}.phrase-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.phrase-card{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #ebebe7;border-radius:14px;padding:17px}.phrase-card .cn{font-size:20px;font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;font-weight:700;margin-bottom:7px}.phrase-card .py{font-size:11px;color:#b8852e;margin-bottom:5px}.phrase-card .vi{font-size:11px;color:#818a96}.phrase-card>div{flex:1}.grammar-note{background:#eff8f0;border:1px solid #daecdc;color:#63816b;padding:16px;border-radius:13px;margin:16px 0;font-size:11px;line-height:1.7}.quiz-area{max-width:810px;margin:auto}.quiz-top{display:flex;justify-content:space-between;color:#a1a3aa;font-size:11px;font-weight:750;margin-bottom:15px}.quiz-question{font:750 29px/1.55 "Noto Sans SC","Microsoft YaHei",sans-serif;text-align:center;margin:24px 0;color:#5d4229;word-break:break-word}.quiz-caption{text-align:center;font-size:12px;color:#8d96a3;margin:12px 0 25px}.option-list{display:grid;gap:10px;margin:20px 0}.option{background:#fff;border:1px solid #e6e6e2;border-radius:12px;text-align:left;padding:15px 17px;font-size:12px;color:#525c66;line-height:1.65}.option:hover:enabled{background:#fff9ee;border-color:#edcb81}.option.correct{border-color:#70c59a;background:#e9f9ef;color:#20774d}.option.wrong{border-color:#edaba9;background:#fff0ec;color:#b4544e}.option:disabled{cursor:default}.feedback{background:#f6f9f4;border:1px solid #e0ebd9;padding:14px;border-radius:11px;font-size:12px;line-height:1.7;margin:10px 0 15px}.quiz-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:11px;margin:20px 0}.center{text-align:center}.display-hanzi{font:800 52px/1.3 "Noto Sans SC","Microsoft YaHei",sans-serif;color:#674b31;word-break:break-word}.display-pinyin{font-size:17px;color:#be8b29;margin:14px 0}.display-en{font-size:13px;color:#737e8e;line-height:1.8}.flashcard{padding:42px 28px;background:linear-gradient(160deg,#fff,#fff7e4);border:1px solid #f3e3bc;border-radius:20px;text-align:center;min-height:260px;display:grid;align-content:center;gap:12px}.grades{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:21px}.grades .btn{min-width:87px}.two-columns{display:grid;grid-template-columns:2fr 1fr;gap:19px}.lesson-intro{font-size:11px;color:#89929e;line-height:1.7}.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tone-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.tone-card{text-align:center;padding:16px 8px;border:1px solid #ece7df;border-radius:13px;background:#fff}.tone-card b{font-size:25px;color:#b97f22}.tone-card small{display:block;font-size:10px;color:#8993a2;line-height:1.6;margin-top:8px}.backup-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.empty-state{text-align:center;color:#9398a1;padding:30px 17px;background:#fff;border:1px dashed #e6e6df;border-radius:15px;font-size:12px;line-height:1.75}.toast{position:fixed;bottom:27px;right:28px;max-width:340px;opacity:0;transform:translateY(10px);padding:13px 18px;background:#342f2c;color:#fff;font-size:12px;border-radius:12px;box-shadow:0 15px 35px #31291d40;z-index:80;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translateY(0)}@media(max-width:1260px){.dashboard-grid{grid-template-columns:minmax(0,1fr)}.hsk-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.word-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:990px){.sidebar{position:fixed;left:-265px;box-shadow:8px 0 30px #2f2e2b15;transition:left .22s}.sidebar.open{left:0}.mobile-menu{display:block;margin-right:14px}.main-content{padding:27px 23px}.topbar{padding:0 22px}.lesson-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:720px){.topbar{height:62px}.date-pill{display:none}.main-content{padding:20px 15px 38px}.page-heading{align-items:start}.page-heading h1{font-size:24px}.hero{padding:26px 23px;min-height:220px}.hero h1{font-size:25px}.hero-glyph{font-size:78px;margin:0 0 0 10px}.stat-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stat-card{padding:12px 8px;gap:8px;display:block;text-align:center}.stat-symbol{margin:auto auto 9px;width:33px;height:33px;font-size:17px}.stat-card b{font-size:17px}.stat-card small{font-size:9px}.lesson-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.hsk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.word-grid,.lesson-layout,.phrase-list,.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tone-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.two-columns{grid-template-columns:1fr}.toolbar input{min-width:100%}.toolbar select{max-width:none;flex:1}.crumb-label{font-size:10px}}@media(max-width:480px){.hero-glyph{display:none}.lesson-cards,.word-grid,.phrase-list,.lesson-layout,.tool-grid{grid-template-columns:1fr}.top-streak{font-size:10px;padding:7px}.top-right{gap:8px}.main-content{padding:20px 12px}.hero{border-radius:19px}.stat-row{gap:5px}.stat-card{padding:10px 5px}.stat-card b{font-size:15px}.tone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Imported HSK lesson reader: structured text only, no source HTML execution */
.course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.course-card{border-radius:16px;border:1px solid #ede8dc;background:#fff;padding:19px;min-width:0;display:flex;flex-direction:column}
.course-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.course-round{display:grid;place-items:center;background:#fff3d6;color:#b67f24;border-radius:10px;width:43px;height:43px;font-size:17px;font-weight:850}
.course-tag{padding:6px 10px;border-radius:20px;color:#629274;background:#e6f5e9;font-size:10px;font-weight:700}
.course-card h3{margin:0 0 9px;font-size:14px;line-height:1.6;min-height:40px}
.course-card p{font-size:11px;color:#8e949c;flex:1}.course-card .btn{align-self:flex-start}
.course-vocab-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.course-vocab{display:flex;flex-direction:column;gap:8px}
.course-word-head{display:flex;justify-content:space-between;gap:8px;align-items:start}
.course-word-head strong{font-size:28px;color:#544537;font-family:"Noto Sans SC","Microsoft YaHei",sans-serif}
.course-word-head .pinyin{display:block;font-size:11px;color:#b18335;line-height:1.65;margin-top:4px}
.course-vocab>p{font-size:13px;color:#454d5a;line-height:1.7}
.course-part{font-size:10px;color:#4a986c;display:inline-block;background:#effaf2;padding:4px 9px;border-radius:7px;align-self:flex-start}
.course-examples{border-top:1px solid #f0eee8;display:grid;gap:10px;margin-top:8px;padding-top:14px}
.course-examples>div{position:relative;padding-right:38px;line-height:1.65}
.course-examples span{font-size:15px;font-family:"Noto Sans SC","Microsoft YaHei";font-weight:650;display:block}
.course-examples small{display:block;color:#b38941;font-size:10px;margin-top:3px}
.course-examples p{color:#8b919d;font-size:11px;margin:5px 0 0}
.course-examples .icon-button{position:absolute;right:0;top:2px}
.course-grammar{margin-bottom:13px}
.course-grammar h3{font-size:16px}.course-grammar code{display:inline-block;color:#8a5d0e;background:#fff2d7;padding:6px 10px;border-radius:8px;font-size:12px;white-space:normal}
.course-grammar>p{font-size:12px;color:#737f8c;line-height:1.8;margin:14px 0}
.course-dialogue{margin-bottom:15px}
.course-dialogue>p{margin:10px 0}
.course-line{display:flex;gap:15px;align-items:start;padding:15px 0;border-top:1px solid #f2efe9}
.course-line .course-speaker{font-size:11px;font-weight:800;color:#8b692b;background:#fff4d7;padding:8px 10px;border-radius:11px;flex-shrink:0;max-width:72px;overflow-wrap:anywhere}
.course-line>div{flex:1;min-width:0}.course-line strong{font:650 16px/1.6 "Noto Sans SC","Microsoft YaHei",sans-serif}
.course-line .pinyin{font-size:10px;display:block;margin:4px 0;color:#b2833a}
.course-line p{font-size:11px;color:#828b99;margin:6px 0 0}
.course-line .icon-button{flex-shrink:0}
@media(max-width:1100px){.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.course-grid,.course-vocab-grid{grid-template-columns:1fr}.course-line{gap:9px}.course-line strong{font-size:14px}.course-card h3{min-height:0}}

/* BeeHọc grammar reference */
.grammar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.grammar-tile{background:#fff;border:1px solid #edeae4;border-radius:15px;padding:18px;min-width:0;display:flex;flex-direction:column}
.grammar-tile-top{display:flex;justify-content:space-between;gap:10px;color:#ac893c;font-size:10px;font-weight:800;margin-bottom:12px}
.grammar-tile h3{font-size:16px;line-height:1.65;color:#44382b;word-break:break-word;min-height:50px}
.grammar-tile p{font-size:11px;color:#8b939d;flex:1}
.grammar-tile button{align-self:flex-start}
.grammar-point-title{font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;font-size:28px;overflow-wrap:anywhere;line-height:1.7}
.grammar-subtitle{font-size:13px;line-height:1.8;color:#666f7b}
.grammar-explain>p{font-size:13px;color:#5c6571;line-height:1.9}
.grammar-usage{margin-top:14px;border-top:1px solid #f0ece5}
.grammar-usage>div{display:grid;grid-template-columns:130px 1fr;gap:16px;padding:12px 0;border-bottom:1px solid #f1efeb}
.grammar-usage strong{font-size:11px;color:#94712b}.grammar-usage span{font-size:12px;color:#6d7480;line-height:1.8}
.grammar-examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.grammar-examples article{display:flex;align-items:start;gap:12px}
.grammar-index{display:grid;place-items:center;border-radius:7px;background:#fff2d4;color:#9d6a20;padding:8px;font-size:10px;font-weight:900}
.grammar-examples article>div{flex:1;min-width:0}
.grammar-examples strong{font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;font-size:17px;line-height:1.6;display:block;overflow-wrap:anywhere}
.grammar-examples small{font-size:11px;color:#aa853c;display:block;margin-top:5px}
.grammar-examples p{font-size:11px;color:#7d8897;line-height:1.8;margin:7px 0}
@media(max-width:1100px){.grammar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.grammar-grid,.grammar-examples{grid-template-columns:1fr}.grammar-usage>div{grid-template-columns:1fr;gap:5px}.grammar-point-title{font-size:22px}}

/* BeeHọc reading comprehension */
.reading-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.reading-tile{background:#fff;border:1px solid #ece9e3;border-radius:16px;padding:19px;display:flex;flex-direction:column}
.reading-tile-top{display:flex;justify-content:space-between;color:#af8529;font-size:11px;font-weight:800;margin-bottom:13px}
.reading-tile h3{font-size:15px;color:#4e483f;line-height:1.55}
.reading-tile p{flex:1;font-size:11px;color:#89919b;line-height:1.7}
.reading-tile>.btn{align-self:flex-start}
.reading-sentences{display:grid;gap:12px}
.reading-sentence{display:flex;align-items:start;gap:14px}
.reading-sentence>div{min-width:0;flex:1}
.reading-sentence strong{display:block;font:600 21px/1.9 "Noto Sans SC","Microsoft YaHei",sans-serif;color:#493f34;overflow-wrap:anywhere}
.reading-sentence .pinyin{display:block;font-size:13px;color:#b3862d;line-height:1.9;margin-top:5px}
.reading-number{display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;background:#ffedc9;border-radius:9px;color:#b07817;font-weight:800;font-size:11px}
.reading-keywords{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.reading-keywords .eng{margin-bottom:3px}
@media(max-width:1080px){.reading-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reading-keywords{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.reading-grid{grid-template-columns:1fr}.reading-keywords{grid-template-columns:repeat(2,minmax(0,1fr))}.reading-sentence{gap:8px}.reading-sentence strong{font-size:17px}}
@media(max-width:420px){.reading-keywords{grid-template-columns:1fr}}

/* v0.6: source-attested vocabulary self-check within HSK reading passages */
.reading-quiz-intro{display:flex;align-items:center;gap:16px;justify-content:space-between}
.reading-quiz-intro p{flex:1;line-height:1.8;font-size:13px;color:#647080}
.reading-quiz-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.reading-quiz-options button{min-height:48px;font:600 18px "Noto Sans SC","Microsoft YaHei",sans-serif;white-space:normal;word-break:break-word}
.reading-quiz-options button:disabled{opacity:.75;cursor:not-allowed}
.reading-quiz-question h3{font-size:17px;line-height:1.7}
.reading-quiz-feedback{background:#f3f8ed;color:#41612f;border-radius:11px;padding:12px;font-size:13px;font-weight:650}
.reading-quiz-result h3{font-size:22px}
@media(max-width:650px){.reading-quiz-intro{display:block}.reading-quiz-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Bilingual HSK story library */
.story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.story-tile{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #ece8df;border-radius:16px;padding:19px}
.story-tile-top{display:flex;gap:12px;justify-content:space-between;color:#a77925;font-size:11px;font-weight:750}
.story-tile h3{color:#493e34;font-size:17px;line-height:1.55;margin:15px 0 8px}
.story-tile p{flex:1;color:#738092;line-height:1.8;font-size:12px}
.story-tile small{color:#669779;font-size:11px;margin-bottom:11px}
.story-tile .btn{align-self:flex-start}
.story-summary{line-height:1.85;color:#677485;font-size:14px}
.story-section{display:grid;gap:12px;margin:22px 0}
.story-section h2{font-size:18px;line-height:1.6;color:#554837;margin:8px 0}
.story-line{display:flex;align-items:flex-start;gap:13px}
.story-index{display:grid;place-items:center;background:#fff2d7;color:#a4772d;min-width:31px;height:31px;border-radius:9px;font-size:11px;font-weight:750}
.story-line-main{min-width:0;flex:1}
.story-line-main strong{display:block;font:600 20px/1.85 "Noto Sans SC","Microsoft YaHei",sans-serif;overflow-wrap:anywhere}
.story-line-main small.pinyin{display:block;color:#a98137;font-size:12px;line-height:1.8}
.story-line-main p{font-size:13px;color:#768293;line-height:1.8;margin:8px 0 0}
.story-speaker{display:block;color:#669875;font-weight:700;font-size:11px;margin-bottom:6px}
.story-keywords{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.story-keywords .card{position:relative;padding-right:36px}
.story-keywords strong{font-family:"Noto Sans SC","Microsoft YaHei";font-size:20px;display:block}
.story-keywords .pinyin{display:block;color:#a98137;font-size:11px}
.story-keywords p{font-size:12px;color:#677485;line-height:1.65}
.story-keywords .icon-button{position:absolute;right:10px;top:10px}
.story-quiz-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.story-quiz-options button{min-height:48px;font-size:18px;font-family:"Noto Sans SC","Microsoft YaHei";white-space:normal;overflow-wrap:anywhere}
@media(max-width:1050px){.story-grid,.story-keywords{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.story-grid,.story-keywords{grid-template-columns:1fr}.story-line{gap:7px}.story-line-main strong{font-size:16px}}

/* Vocabulary by theme: imported visible Chinese/Vietnamese source cards */
.topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.topic-tile{background:#fff;border:1px solid #ece9e3;border-radius:16px;padding:18px;min-width:0;display:flex;flex-direction:column}
.topic-tile-top{display:flex;justify-content:space-between;gap:8px;font-size:10px;font-weight:800;color:#aa8033;margin-bottom:12px}
.topic-tile h3{color:#493c33;font-size:17px;line-height:1.5}
.topic-tile p{color:#74808a;font-size:11px;flex:1}
.topic-tile>.btn{align-self:flex-start}
.topic-words{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.topic-word{position:relative;min-width:0;display:flex;flex-direction:column}
.topic-word>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}
.topic-word strong{font:600 24px/1.7 "Noto Sans SC","Microsoft YaHei",sans-serif;overflow-wrap:anywhere}
.topic-level{font-size:10px;color:#a57829;white-space:nowrap;background:#fdf4dc;padding:4px 7px;border-radius:8px}
.topic-word>.pinyin{color:#ab802e;font-size:12px;margin-top:3px}
.topic-word p{flex:1;color:#6d7884;line-height:1.7;font-size:12px}
.topic-actions{display:flex;gap:10px;margin-top:8px}
.topic-quiz-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:15px 0}
.topic-quiz-grid button{font:600 18px/1.5 "Noto Sans SC","Microsoft YaHei",sans-serif;white-space:normal;overflow-wrap:anywhere;min-height:48px}
@media(max-width:1100px){.topic-grid,.topic-words{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:670px){.topic-grid,.topic-words{grid-template-columns:1fr}.topic-word strong{font-size:20px}}

/* Source-verified daily Mandarin vocabulary */
.daily-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.daily-tile{display:flex;flex-direction:column;min-width:0}
.daily-tile>small{font-size:11px;color:#99762a}
.daily-tile>strong{font:600 31px/1.65 "Noto Sans SC","Microsoft YaHei",sans-serif;margin-top:6px}
.daily-tile>.pinyin{color:#b18a3a;font-size:13px}
.daily-tile>p{flex:1;color:#677585;font-size:12px;line-height:1.65}
.row-actions{display:flex;justify-content:space-between;align-items:center;gap:9px}
.daily-meaning{font-size:17px;color:#667482}
.daily-examples{display:grid;gap:12px}
.daily-example{display:flex;gap:12px;align-items:start}
.daily-example>div{min-width:0;flex:1}
.daily-example strong{font:600 19px/1.8 "Noto Sans SC","Microsoft YaHei",sans-serif;display:block}
.daily-example .pinyin{font-size:12px;color:#ac8736;display:block;line-height:1.7}
.daily-example p{font-size:13px;line-height:1.8;color:#74808a}
@media(max-width:950px){.daily-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.daily-grid{grid-template-columns:1fr}}

/* Practice: Chinese dictation and reverse translation */
#dictation-zone textarea{width:100%;display:block;resize:vertical;min-height:108px;max-height:260px;margin:10px 0 14px;
 padding:12px 14px;border:1px solid #d8ccba;border-radius:12px;background:#fffefb;color:#423b34;
 font:500 20px/1.8 "Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;overflow-wrap:anywhere}
#dictation-zone textarea:focus-visible{outline:3px solid #f2dfa7;border-color:#b48739}
#dictation-zone textarea:disabled{background:#f8f4eb;color:#615548}
#dictation-zone .feedback{margin:14px 0;line-height:1.8}
#dictation-zone .feedback span[lang="zh-Hans"]{font:600 20px/1.8 "Noto Sans SC","Microsoft YaHei",sans-serif}
@media(max-width:640px){#dictation-zone textarea{font-size:18px;min-height:110px}}

/* Screenshot-based visual parity pass: Hanbeego-inspired page regions, independent BeeHọc artwork. */
:root{font-family:"Segoe UI",Inter,Arial,sans-serif;color:#253044;background:#fafafa}
body{background:#fafafa}
.announcement{min-height:37px;display:flex;align-items:center;justify-content:space-between;padding:5px 26px;background:#f5f5f6;color:#485168;border-bottom:1px solid #e9e9eb;font-size:12px;font-weight:600}
.announcement a{color:#b71923;font-weight:750}
.sidebar{width:260px;flex-basis:260px;padding:18px 14px 20px;border-right-color:#e5e7ed;height:calc(100vh - 37px);top:0}
.sidebar .identity{gap:12px;margin:6px 11px 21px}
.sidebar .identity-icon{border-radius:50%;width:44px;height:44px;font-size:24px;color:white;background:#df3434;box-shadow:none}
.sidebar .identity strong{color:#151f33;font-size:20px;letter-spacing:-.5px}
.sidebar .identity small{color:#798295;font-size:11px}
.sidebar .sidebar-caption{font-size:10px;color:#9b9fb0;margin:18px 15px 9px}
.sidebar .nav-group{gap:4px;margin-bottom:6px}
.sidebar .nav-group a{font-size:12px;font-weight:700;color:#203044;padding:11px 13px;border-radius:27px;min-height:42px}
.sidebar .nav-group a:hover{background:#fff1f1;color:#b91921}
.sidebar .nav-group a.active{background:#fff0f0;color:#c41d25}
.sidebar .nav-ico{color:#d13239;font-size:17px;width:21px;flex-basis:21px}
.sidebar .nav-hierarchy{gap:0}
.sidebar .nav-hierarchy a.nav-parent{margin-bottom:4px}
.sidebar .nav-hierarchy a.nav-child{padding:7px 10px 7px 43px;min-height:30px;font-size:11px;font-weight:600;color:#516075;position:relative;border-radius:10px}
.sidebar .nav-hierarchy a.nav-child:before{content:"";width:6px;height:6px;background:#ced2db;border-radius:50%;position:absolute;left:26px;top:19px;transform:translateY(-50%)}
.sidebar .nav-hierarchy a.nav-child.active:before{background:#c71e27}
.sidebar .nav-chevron{margin-left:auto;font-size:16px;color:#a4a7b0}
.sidebar .sidebar-bottom{margin-top:25px;background:#fff5f5;border-color:#ffe1e1}
.sidebar .sidebar-bottom strong,.sidebar .sidebar-start{color:#b81f28}
.sidebar .sidebar-bottom p{color:#777f8b}
.workspace{background:#fbfbfc}
.topbar{height:80px;position:sticky;padding:0 27px;border-bottom-color:#e7e8ec;background:#fff}
.top-left{display:flex;align-items:center;gap:0;min-width:0}
.top-hsk,.top-metric{display:inline-flex;align-items:center;gap:8px;padding:9px 11px;border:1px solid #e7eaf0;font-size:12px;background:#fff;min-height:35px}
.top-hsk{border-radius:21px 0 0 21px;color:#344054}
.top-metric{border-left:0;color:#b11d27}
.top-metric:last-of-type{border-radius:0 21px 21px 0}
.top-hsk b,.top-metric b{color:#253044}
.top-left .crumb-label{display:none}
.top-right{gap:12px}
.top-right .header-icon{height:30px;min-width:30px;display:grid;place-items:center;color:#778395;font-size:20px}
.top-right .header-icon:hover{color:#c51924}
.top-right .date-pill{font-size:11px;color:#8e98a8}
.avatar{border-radius:50%;background:#d52e35;color:#fff;width:38px;height:38px;font-size:12px}
.user-label{display:flex;flex-direction:column;gap:3px;line-height:1.1}
.user-label b{font-size:12px;color:#202e43}
.user-label small{font-size:10px;color:#cf3034;font-weight:750}
.main-content{max-width:1470px;padding:24px 25px 55px}
.dashboard-grid.source-dashboard{grid-template-columns:minmax(0,2.08fr) minmax(290px,1fr);gap:24px}
.source-dashboard .col-stack{gap:20px}
.source-dashboard .study-alert{min-height:105px;display:flex;gap:15px;align-items:center;padding:15px 18px;border:1px solid #ffd8a6;border-radius:22px;background:#fffaf1}
.study-alert .alert-icon{height:42px;width:42px;border-radius:50%;background:#fff0dc;display:grid;place-items:center;color:#dd6a22;font-size:24px;flex:0 0 42px}
.study-alert strong{display:block;font-size:14px;line-height:1.4;color:#223148;margin-bottom:4px}
.study-alert p{font-size:11px;color:#6d7686;line-height:1.55;margin:0 0 6px}
.study-alert a{font-size:11px;color:#c9202b;font-weight:750}
.source-dashboard .hero{background:linear-gradient(105deg,#fff4ef 0%,#fff4ee 58%,#ffe8e0 100%);min-height:276px;border-radius:22px;padding:35px 35px 30px;box-shadow:none;border:1px solid #fff0e9;align-items:center}
.source-dashboard .hero:after{display:none}
.source-dashboard .hero-copy{max-width:60%;z-index:2}
.source-dashboard .hero .eyebrow{color:#ba242c;font-size:10px;letter-spacing:1.1px}
.source-dashboard .hero h1{color:#1c263c;font-size:30px;letter-spacing:-1.0px;font-weight:800;line-height:1.2;max-width:none;margin:13px 0 14px}
.source-dashboard .hero h1 em{color:#d2252d;font-style:normal}
.source-dashboard .hero p{color:#606b7c;font-size:13px;max-width:360px;line-height:1.7}
.source-dashboard .hero .btn.dark{border-radius:26px;background:#c91a24;border-color:#c91a24;color:#fff;padding:14px 25px;letter-spacing:.2px;font-size:12px;box-shadow:0 5px 0 #a9131c}
.source-dashboard .hero .btn.dark:hover{background:#b5131b}
.hero-art{position:absolute;right:0;top:0;bottom:0;width:45%;pointer-events:none;overflow:hidden}
.hero-art:before{content:"";position:absolute;right:-80px;bottom:-128px;border:1px solid #eac1ac;width:320px;height:320px;border-radius:50%;box-shadow:0 0 0 27px #ffffff55,0 0 0 58px #ffffff37}
.hero-sun{position:absolute;top:50px;right:62px;width:90px;height:90px;border-radius:50%;background:#ffddd0;filter:blur(2px)}
.hero-bloom{position:absolute;right:105px;top:24px;color:#bd3b37;font-size:58px;transform:rotate(19deg);opacity:.75}
.hero-book{position:absolute;border-radius:4px;box-shadow:9px 11px 10px #9c645d20;border:3px solid #f7d5a5;font-family:"Microsoft YaHei",sans-serif;text-align:center;font-size:38px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-direction:column}
.hero-book small{font-family:Georgia,serif;font-style:italic;font-size:10px;font-weight:400;margin-top:12px}
.hero-book-a{right:115px;bottom:35px;transform:rotate(-12deg);height:150px;width:95px;background:#bf3331;color:#fff2d5;border-color:#edb281}
.hero-book-b{right:42px;bottom:20px;transform:rotate(12deg);height:127px;width:85px;background:#f9f0dd;color:#70665a;border-color:#d5bfa4}
.hero-petal{position:absolute;top:65px;right:16px;font-size:41px;color:#d87369;opacity:.65}
.hero-shadow{position:absolute;bottom:15px;right:30px;width:210px;height:15px;border-radius:50%;background:#d6b5ab55;filter:blur(8px)}
.source-dashboard .dashboard-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}
.dashboard-action-card{background:#fff;border:2px solid #e2e4e9;border-radius:19px;padding:20px 19px;min-height:96px;display:flex;align-items:center;gap:15px;box-shadow:0 4px 0 #eef0f3}
.dashboard-action-card:hover{border-color:#ffd1d1;transform:translateY(-2px)}
.dashboard-action-card .action-round{height:42px;width:42px;flex:0 0 42px;background:#fff1f1;color:#db2b32;display:grid;place-items:center;border-radius:50%;font-size:20px}
.dashboard-action-card>div{display:flex;flex-direction:column;gap:8px;min-width:0}
.dashboard-action-card strong{font-size:15px;color:#243149}
.dashboard-action-card small{font-size:11px;color:#818b9b}
.dashboard-action-card .action-arrow{margin-left:auto;color:#cf343c}
.dashboard-side .exam-plan-card{background:#fff;border:2px dashed #ffd2d5;border-radius:22px;min-height:106px;display:flex;align-items:center;padding:16px 14px;gap:12px}
.exam-plan-card .plan-icon{border-radius:50%;width:45px;height:45px;display:grid;place-items:center;color:#d72d3b;background:#fff1f1;font-size:23px;flex:0 0 45px}
.exam-plan-card>div{min-width:0;flex:1}
.exam-plan-card strong{display:block;font-size:13px;color:#243149;line-height:1.4}
.exam-plan-card small{color:#788596;display:block;margin-top:4px;font-size:11px;line-height:1.4}
.exam-plan-card .plan-date-wrap{max-width:30px;overflow:hidden}
.exam-plan-card input{width:28px;height:32px;border:0;outline:0;cursor:pointer;color:transparent;background:transparent}
.exam-plan-card input::-webkit-calendar-picker-indicator{opacity:1;cursor:pointer}
.source-dashboard .card{border:2px solid #e3e5eb;border-radius:20px;padding:19px 18px;box-shadow:0 4px 0 #eef0f3}
.source-dashboard .right-card-heading h2{font-size:19px;color:#263247}
.source-dashboard .right-card-heading small{color:#969eac;font-size:10px}
.source-dashboard .streak-total{display:flex;align-items:center;gap:15px;margin:24px 0}
.streak-medal{width:50px;height:50px;flex:0 0 50px;display:grid;place-items:center;border-radius:50%;background:#fff1d2;border:2px solid #f6bd4a;font-size:24px}
.streak-total strong{font-size:38px;letter-spacing:-1px;line-height:1.2;color:#142642}
.streak-total strong span{font-size:17px;letter-spacing:0}
.streak-total small{display:block;font-size:12px;margin-top:4px;color:#d12931;font-weight:700}
.source-dashboard .week-grid{gap:4px;margin:21px 0 18px}
.source-dashboard .day-mark{width:27px;height:27px;border-radius:50%;border:2px solid #e5e7ec;background:#fff;color:#a7b0bf;font-size:10px}
.source-dashboard .day-mark.done{background:#ef3c45;border-color:#ef3c45;color:#fff}
.checkin-button{width:100%;display:flex;align-items:center;gap:12px;background:#fff1f1;border:1px solid #ffcbd0;color:#c8212c;border-radius:19px;text-align:left;padding:14px;min-height:59px}
.checkin-button>span:first-child{font-size:21px}
.checkin-button>span:nth-child(2){display:flex;flex-direction:column;flex:1;gap:3px}
.checkin-button strong{font-size:12px}
.checkin-button small{font-size:10px}
.checkin-button>span:last-child{font-size:19px}
.checkin-button:disabled{opacity:.65;cursor:default}
.streak-record{display:flex;align-items:center;justify-content:space-between;border:1px solid #e7e9ee;padding:12px 13px;border-radius:21px;margin-top:11px;font-size:11px;color:#526075;font-weight:700}
.source-dashboard .subheading a{color:#c92231}
.source-dashboard .challenge-progress{color:#d22430}
.source-dashboard .progress-summary{background:#fff5f4;color:#be343a}
.source-dashboard .notice{border-color:#f4dddd;background:#fff7f7;color:#975559}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1260px){.dashboard-grid.source-dashboard{grid-template-columns:minmax(0,1fr)}.dashboard-side{grid-template-columns:repeat(2,minmax(0,1fr))!important}.dashboard-side .card:last-child{grid-column:1/-1}}
@media(max-width:990px){.sidebar{height:100vh;left:-280px}.sidebar.open{left:0}.topbar{height:70px}.user-label{display:none}}
@media(max-width:700px){.announcement{font-size:10px;padding:7px 12px}.topbar{padding:0 12px}.top-left .top-metric:last-of-type{display:none}.top-hsk,.top-metric{padding:8px 7px;font-size:10px}.top-right{gap:3px}.top-right .header-icon{display:none}.main-content{padding:17px 14px}.source-dashboard .hero{padding:26px 18px;min-height:238px}.source-dashboard .hero h1{font-size:24px}.source-dashboard .hero-copy{max-width:73%}.hero-art{width:40%;opacity:.6}.dashboard-side{grid-template-columns:1fr!important}.dashboard-side .card:last-child{grid-column:auto}}
@media(max-width:480px){.source-dashboard .hero-copy{max-width:100%}.hero-art{opacity:.18}.source-dashboard .dashboard-action-row{grid-template-columns:1fr}.source-dashboard .study-alert{padding:12px}.top-left .top-metric:nth-of-type(3){display:none}.top-right .date-pill{display:none}}

/* Independent Kangxi radical reference, built from 214 SHA-verified public headings. */
.radicals-stats{display:flex;flex-wrap:wrap;align-items:center;gap:13px;margin:0 0 16px}
.radicals-stats span{border:1px solid #e4e6ed;background:#fff;border-radius:28px;padding:10px 15px;color:#7b8494;font-size:12px}
.radicals-stats b{color:#b81f29;font-size:15px}
.radicals-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:13px;margin-top:18px}
.radical-tile{display:flex;flex-direction:column;align-items:center;gap:10px;justify-content:center;min-height:142px;border-radius:18px;background:#fff;border:1px solid #e6e7ed;padding:14px 8px;color:#1f2a41;box-shadow:0 2px 1px #e8e8eb33;text-align:center}
.radical-tile:hover,.radical-tile:focus-visible{border-color:#e6666f;box-shadow:0 7px 22px #b83e4622;transform:translateY(-2px)}
.radical-number{font-size:10px;color:#c92932;font-weight:800;align-self:flex-start}
.radical-tile strong{font:700 43px/1.15 "Microsoft YaHei","Noto Sans SC",sans-serif;color:#a52b30}
.radical-tile small{font-size:10px;color:#7a8596;line-height:1.4}
.radical-detail{display:grid;gap:24px;background:#fff;border:1px solid #e7e9ef;border-radius:20px;padding:25px}
.radical-detail>.btn{justify-self:start}
.radical-detail-top{display:flex;align-items:center;gap:30px}
.radical-large{width:175px;height:175px;display:grid;place-items:center;background:#fff0ec;border-radius:25px;color:#b82835;font:750 105px "Microsoft YaHei","Noto Sans SC",sans-serif;flex:0 0 175px}
.radical-detail-top h2{font-size:26px;margin:7px 0}
.radical-detail-top p{color:#677388;font-size:13px}
.radical-source{display:flex;flex-wrap:wrap;gap:12px;align-items:center;border-top:1px solid #ececf1;padding-top:19px;font-size:12px;color:#6a7485}
.radical-source>a{color:#c51b2a;font-weight:700}
.radical-source code{font-size:10px;display:block;flex-basis:100%;word-break:break-all}
@media(max-width:1250px){.radicals-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:760px){.radicals-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.radical-detail-top{gap:12px}.radical-large{width:120px;height:120px;flex-basis:120px;font-size:76px}}
@media(max-width:530px){.radicals-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.radical-tile{min-height:118px;padding:9px 5px}.radical-tile strong{font-size:34px}.radical-detail-top{flex-direction:column;align-items:start}}

/* V30: locally tracked, no-account 214-radical recall cards. */
.radical-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:12px 0 15px}
.radical-known{border-color:#9acdb8;background:#f7fcf9;position:relative}
.radical-known-mark{position:absolute;top:7px;right:10px;color:#248b65;font-size:13px;font-weight:900}
.radical-study{max-width:780px;margin:0 auto;display:grid;gap:22px;padding:25px;border:1px solid #e6e9ef;border-radius:24px;background:#fff}
.radical-study-heading{display:flex;justify-content:space-between;align-items:center;color:#a32c35;font-size:11px;font-weight:800;letter-spacing:.5px}
.radical-study-heading strong{font-size:15px;color:#253047}
.radical-study-flash{border-radius:24px;min-height:320px;background:linear-gradient(130deg,#fff7f3,#fff0ec);border:1px solid #f7d9d4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center}
.radical-study-hanzi{font:700 125px/1.25 "Microsoft YaHei","Noto Sans SC",sans-serif;color:#b82b34}
.radical-study-flash h2{font-size:21px;margin:0;color:#21314a}
.radical-study-flash p{font-size:13px;color:#798396;line-height:1.6;margin:0}
.radical-study-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.radical-study-actions .btn{min-width:160px}
@media(max-width:650px){.radical-study{padding:14px}.radical-study-flash{min-height:260px}.radical-study-hanzi{font-size:93px}.radical-study-actions .btn{flex:1 1 100%}}

/* Exam-plan page: first-party local study tasks */
.plan-controls{display:grid;grid-template-columns:minmax(170px,1fr) minmax(180px,1fr) 155px;gap:14px;align-items:end;margin:20px 0}
.plan-controls label{display:grid;gap:8px;font-size:12px;font-weight:800;color:#314058}
.plan-controls input,.plan-controls select{width:100%;height:44px;border:1px solid #dfe3ed;border-radius:12px;background:#fff;color:#27354c;padding:0 12px}
.plan-countdown{border:1px solid #f7d1d4;border-radius:15px;min-height:65px;padding:8px 14px;background:#fff7f7;display:flex;align-items:center;gap:10px}
.plan-countdown strong{font-size:31px;color:#c52132}
.plan-countdown span{font-size:11px;color:#7b6674}
.plan-progress{background:#fff;border:1px solid #e6e8ef;border-radius:17px;padding:16px 18px;margin-bottom:20px}
.plan-progress>div:first-child{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:11px}
.plan-progress strong{font-size:14px}
.plan-progress span{color:#738096;font-size:11px}
.plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:15px 0 24px}
.plan-day{border:1px solid #e5e8ef;background:#fff;border-radius:20px;padding:17px;min-width:0}
.plan-day header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-bottom:11px;border-bottom:1px solid #eef0f3}
.plan-day header strong{font-size:14px;color:#222f44}
.plan-day header span{color:#a22c36;font-weight:700;font-size:11px}
.plan-task{display:flex;align-items:center;gap:10px;padding:12px 0;min-width:0}
.plan-task+.plan-task{border-top:1px solid #f0f1f4}
.plan-task>button{height:30px;width:30px;flex:0 0 30px;border:1px solid #e3e5e8;border-radius:50%;background:#fff;color:#ab2e3a;font-size:20px;cursor:pointer}
.plan-task.finished>button{color:#fff;background:#26956c;border-color:#26956c}
.plan-task-icon{display:grid;place-items:center;background:#fff4ee;border-radius:11px;height:39px;width:39px;flex:0 0 39px;color:#ae2e37;font-size:19px}
.plan-task>div{display:grid;gap:5px;min-width:0;flex:1}
.plan-task strong{font-size:12px;color:#29384d}
.plan-task.finished strong{text-decoration:line-through;color:#697b8a}
.plan-task small{font-size:10px;line-height:1.45;color:#818a99}
.plan-task>a{font-size:11px;font-weight:750;color:#b52731;white-space:nowrap}
.plan-feedback{font-size:12px;font-weight:700;color:#278361}
@media(max-width:1100px){.plan-grid{grid-template-columns:1fr}}
@media(max-width:650px){.plan-controls{grid-template-columns:1fr}.plan-countdown{min-height:55px}.plan-task{gap:7px}.plan-task-icon{display:none}.plan-task>a{font-size:10px}}

/* Verified public-source video catalogue: cards only; no third-party media hotlinks. */
.video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px;margin:16px 0 28px}
.video-tile{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #e7e9ed;border-radius:18px;overflow:hidden;box-shadow:0 3px 15px #14223b08}
.video-tile-art{background:linear-gradient(130deg,#fff1e7,#ffe0d8 63%,#ffc5b9);min-height:115px;display:flex;align-items:center;justify-content:center;gap:13px;color:#c02b32}
.video-tile-art span{background:#fff9f7;border-radius:50%;height:54px;width:54px;display:grid;place-items:center;font-size:21px;box-shadow:0 7px 20px #a02c3320}
.video-tile-art small{font-size:13px;font-weight:900;letter-spacing:2px}
.video-tile-body{padding:17px;display:flex;flex-direction:column;flex:1;gap:9px}
.video-tile-body h3{font-size:14px;line-height:1.6;margin:0;color:#293344;overflow-wrap:anywhere;min-height:44px}
.video-tile-body>small{font-size:10px;color:#8793a3;overflow-wrap:anywhere}
.video-tile-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:auto;padding-top:10px}
.video-toggle{display:flex;align-items:center;gap:8px;font-size:12px;color:#5c6678;white-space:nowrap}
.video-toggle input{accent-color:#c92d31;height:17px;width:17px}
@media(max-width:680px){.video-grid{grid-template-columns:1fr}.video-tile-art{min-height:95px}}
/* Independent HSK 1-6 vocabulary placement check (not an official HSK exam). */
.placement-intro,.placement-history,.placement-question,.placement-result{max-width:810px;margin:16px auto;padding:27px;border:1px solid #e5e8ef;border-radius:22px;background:#fff}
.placement-intro h2,.placement-result h2{color:#203049;font-size:25px;margin:2px 0 12px}
.placement-intro p,.placement-result>p{font-size:13px;line-height:1.8;color:#778398}
.placement-badges{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}
.placement-badges span{background:#fff3f0;border:1px solid #f6d8d4;color:#aa3541;border-radius:20px;font-size:11px;font-weight:750;padding:7px 11px}
.placement-hanzi{font:700 78px/1.5 "Microsoft YaHei","Noto Sans SC",sans-serif;background:#fff3f1;border:1px solid #f9e2df;border-radius:19px;padding:15px;text-align:center;color:#bd2634;margin:16px 0}
.placement-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0}
.placement-options .option{min-height:65px;white-space:normal;text-align:left;line-height:1.45;padding:12px 14px}
.placement-options .option b{font-size:11px;color:#a42c37;margin-right:6px}
.placement-question .progress-bar{margin-top:10px}
.placement-question>p{font-size:12px;line-height:1.6}
.placement-feedback{font-size:13px;color:#276c51!important;font-weight:750;margin:10px 0 16px}
.placement-abort{border-top:1px solid #f0f1f4;padding-top:15px;margin-top:22px}
.placement-suggest{background:#fff3f1;border-radius:15px;padding:15px 19px}
.placement-suggest strong{font-size:22px;color:#c22431}
.placement-score-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:20px 0}
.placement-score-grid>div{border:1px solid #ede8e8;border-radius:14px;display:grid;gap:10px;place-items:center;padding:13px 5px}
.placement-score-grid b{font-size:12px;color:#6d7687}
.placement-score-grid strong{font-size:21px;color:#ae3039}
.placement-result-actions{display:flex;flex-wrap:wrap;gap:10px}
.placement-history p{border-top:1px solid #eee;font-size:13px;padding:13px 0;margin:0}
@media(max-width:760px){.placement-options{grid-template-columns:1fr}.placement-score-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.placement-hanzi{font-size:58px}.placement-intro,.placement-history,.placement-question,.placement-result{padding:17px}.placement-result-actions .btn{flex:1 1 100%}}

/* Independent HSK practice games; mobile friendly. */
.game-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:14px;margin:20px 0}
.game-mode{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-height:208px}
.game-mode .game-emblem{font-size:26px;background:#fff0de;color:#ad4e19;border-radius:13px;display:grid;place-items:center;width:46px;height:46px}
.game-mode h3{font-size:15px;margin:3px 0}
.game-mode p{font-size:12px;color:#717b8b;line-height:1.65;flex:1}
.game-mode small{font-size:11px;color:#6d7382}
.game-mode .btn{margin-top:4px}
.game-board{max-width:820px;margin:auto;min-height:310px}
.game-board-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px;border-bottom:1px solid #eee;padding-bottom:15px;margin-bottom:20px;font-size:12px;color:#6b7381}
.game-board-head b{color:#343b49}
.game-prompt{text-align:center;font-size:38px;font-weight:700;color:#4b3331;font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;margin:30px 0;overflow-wrap:anywhere}
.game-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.game-answers .btn{white-space:normal;text-align:left;min-height:50px;line-height:1.55}
#game-typing-form{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
#game-typing-form .field{min-width:195px}
.game-pairs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0}
.game-card{min-height:75px;padding:10px;border:1px solid #eddbbe;background:#fff9ee;color:#453b35;border-radius:11px;font-weight:650;font-size:12px;overflow-wrap:anywhere}
.game-card.matched{background:#e7f7eb;border-color:#a6dbc0;color:#268552}
.game-feedback{color:#99691c;font-weight:600;text-align:center;font-size:12px}
.game-result{text-align:center;max-width:580px;margin:12px auto}
.game-result strong{font-size:36px;color:#c4472e}
.game-controls{display:flex;justify-content:center;gap:12px}
@media(max-width:610px){.game-answers{grid-template-columns:1fr}.game-pairs{grid-template-columns:repeat(3,minmax(0,1fr))}.game-prompt{font-size:32px}.game-mode{min-height:0}}
/* Independently implemented HSK waterfall and tone-training game modes. */
.game-waterfall-track{position:relative;height:225px;overflow:hidden;border:1px solid #cce4ee;border-radius:16px;margin:14px 0 17px;background:linear-gradient(180deg,#f7fcff 0%,#deefff 75%,#a2d3f4 100%)}
.game-waterfall-track:after{content:"";position:absolute;bottom:0;left:0;right:0;height:7px;background:repeating-linear-gradient(100deg,#379bd7,#379bd7 16px,#8dd6fa 16px,#8dd6fa 32px)}
#game-falling-word{position:absolute;left:50%;transform:translate(-50%,-50%);font-size:33px;line-height:1.1;font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;font-weight:700;color:#17476a;background:#fff;border:1px solid #b8dbea;box-shadow:0 6px 20px #115b8529;border-radius:12px;padding:10px 18px;min-width:60px;text-align:center;transition:top .3s linear}
#game-waterfall-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#game-waterfall-form .field{flex:1;min-width:170px}
@media(prefers-reduced-motion:reduce){#game-falling-word{transition:none}}

/* v39 screenshot-grounded dashboard geometry, desktop 1365x682.
 * Hero image from the public educational reference; original BeeHoc branding,
 * interactions and user identity remain independent. */
:root{--beehoc-red:#c91d27;--beehoc-pale:#fff5f4;--beehoc-ink:#172842;--beehoc-edge:#e4e7ed}
.announcement{min-height:30px;height:30px;padding:3px 25px;gap:10px;font-size:11px;background:#f6f6f7}
.app-layout{min-height:calc(100vh - 30px)}
.sidebar{height:calc(100vh - 30px);padding-top:14px;scrollbar-width:thin;scrollbar-color:#dfe2e8 transparent}
.sidebar .identity{margin:5px 11px 23px}
.sidebar .sidebar-caption{margin:17px 14px 8px;font-size:10px;letter-spacing:.65px}
.sidebar .nav-group{gap:3px}
.sidebar .nav-group a{min-height:38px;padding:9px 13px}
.sidebar .nav-hierarchy a.nav-parent{min-height:42px}
.sidebar .nav-hierarchy a.nav-child{min-height:29px;padding-top:6px;padding-bottom:6px;font-weight:600}
.sidebar .nav-hierarchy a.nav-child:before{top:17px}
.sidebar .nav-primary{margin-bottom:4px}
.topbar{height:80px;padding:0 25px}
.topbar .top-hsk,.topbar .top-metric{min-height:37px}
.top-right{gap:10px}
.top-right .date-pill{display:none}
.top-right .header-icon{font-size:18px;font-weight:750;width:35px;height:37px;color:#7c8ba0}
.main-content{padding:25px 24px 56px;max-width:1470px}
.dashboard-grid.source-dashboard{grid-template-columns:minmax(0,1.98fr) minmax(318px,1fr);gap:24px;align-items:start}
.source-dashboard .col-stack{gap:22px}
.source-dashboard .hero{
 background-color:#fff9f6;
 background-image:linear-gradient(90deg,rgba(255,250,247,.98) 0%,rgba(255,250,247,.96) 26%,rgba(255,250,247,.60) 46%,rgba(255,250,247,0) 66%),url("/dashboard-hero.jpg");
 background-size:cover;background-repeat:no-repeat;background-position:center center;
 min-height:276px;padding:33px 35px;display:flex;align-items:center;overflow:hidden;
 border:0;border-radius:23px;box-shadow:none
}
.source-dashboard .hero-art{display:none}
.source-dashboard .hero-copy{max-width:62%;width:62%;position:relative;z-index:1}
.source-dashboard .hero .eyebrow{display:none}
.source-dashboard .hero h1{font-size:31px;line-height:1.22;letter-spacing:-.75px;color:#1d2a40;margin:0 0 12px;font-weight:820}
.source-dashboard .hero h1 em{color:#cc1d26}
.source-dashboard .hero p{font-size:14px;line-height:1.66;color:#596679;margin:0 0 21px;max-width:330px;font-weight:500}
.source-dashboard .hero .btn.dark{background:linear-gradient(180deg,#d61a25,#c41521);border:0;border-radius:26px;padding:14px 27px;box-shadow:0 4px 0 #a8121b;font-size:13px;font-weight:820;min-height:46px}
.source-dashboard .dashboard-action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:stretch}
.source-dashboard .dashboard-action-card{min-height:207px;display:flex;flex-direction:column;align-items:stretch;gap:19px;padding:18px 19px;border:2px solid #e5e7ec;border-radius:21px;box-shadow:0 3px 0 #f0f1f4}
.dashboard-action-header{display:flex;align-items:center;gap:14px;min-height:43px}
.dashboard-action-header .action-round{flex:0 0 40px;width:40px;height:40px;font-size:17px}
.dashboard-action-header strong{font-size:16px;color:#152641;line-height:1.3;flex:1}
.dashboard-action-header .action-arrow{font-size:17px;color:#c72831}
.continue-lesson{display:flex;align-items:center;gap:16px;margin-top:4px}
.continue-lesson .lesson-mascot{flex:0 0 88px;width:88px;height:88px;background:linear-gradient(135deg,#fff0f0,#ffe0e0);border-radius:21px;display:grid;place-items:center;font-size:48px}
.continue-lesson .lesson-details{display:grid;gap:7px;min-width:0;flex:1}
.lesson-details b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;color:#142743}
.lesson-details small{display:block;line-height:1.4;font-size:11px;color:#66778e}
.lesson-details label{display:flex;justify-content:space-between;gap:8px;color:#41536e;font-size:10px;font-weight:800;margin-top:4px}
.lesson-details label span{color:#bc232a}
.mini-progress{height:8px;background:#f8dfe2;border-radius:999px;overflow:hidden}
.mini-progress>i{height:100%;background:#ce2630;display:block;border-radius:inherit}
.dashboard-stats-quad{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dashboard-stats-quad>span{min-height:60px;border-radius:19px;background:#fafbfc;border:1px solid #e9eaee;padding:8px 11px;display:grid;grid-template-columns:25px 1fr;align-items:center;column-gap:7px}
.dashboard-stats-quad>span:before{content:"◈";color:#c5222c;background:#fff0f0;border-radius:50%;font-size:16px;display:grid;place-items:center;width:25px;height:25px;grid-row:span 2}
.dashboard-stats-quad>span:nth-child(2):before{content:"字";color:#375da8;background:#eef3ff}
.dashboard-stats-quad>span:nth-child(3):before{content:"✦";color:#c9861b;background:#fff5dc}
.dashboard-stats-quad>span:nth-child(4):before{content:"◎";color:#2b9c6b;background:#e9fff5}
.dashboard-stats-quad b{color:#172940;font-size:21px;font-weight:800;line-height:1}
.dashboard-stats-quad small{color:#637286;font-size:10px;line-height:1.3;font-weight:650}
.source-dashboard .dashboard-backup-inline{min-height:77px;padding:13px 16px;border-radius:15px;gap:12px;background:#fffaf4;border-color:#f8e0c6}
.dashboard-backup-inline .alert-icon{height:35px;width:35px;flex-basis:35px;font-size:18px}
.dashboard-backup-inline p{margin:0 0 4px}
.dashboard-backup-inline strong{font-size:12px}
.dashboard-side .exam-plan-card{min-height:91px;border:2px dashed #ffc7cc;border-radius:23px;padding:14px 16px;gap:13px}
.exam-plan-card .plan-icon{flex-basis:44px;width:44px;height:44px}
.exam-plan-card strong{font-size:13px;font-weight:800;color:#203049}
.exam-plan-card small{font-size:11px;color:#596b80;line-height:1.45}
.source-dashboard .checkin-card{min-height:346px;padding:20px 18px}
.source-dashboard .right-card-heading h2{font-size:19px;font-weight:800;color:#1a2d45}
.source-dashboard .streak-total{gap:14px;margin:21px 0 17px}
.source-dashboard .streak-total strong{font-size:39px}
.source-dashboard .streak-total strong span{font-size:17px}
.source-dashboard .week-grid{margin:18px 0 21px}
.source-dashboard .checkin-button{border-radius:19px;min-height:60px}
.source-dashboard .streak-record{min-height:43px;margin-top:12px}
@media(max-width:1260px) and (min-width:991px){
 .dashboard-grid.source-dashboard{grid-template-columns:minmax(0,1.86fr) minmax(310px,1fr);gap:18px}
 .source-dashboard .dashboard-side{display:flex!important;flex-direction:column!important}
 .source-dashboard .dashboard-side .card:last-child{grid-column:auto}
 .source-dashboard .hero{padding:26px 25px}
 .source-dashboard .hero h1{font-size:28px}
 .source-dashboard .hero-copy{max-width:65%;width:65%}
 .source-dashboard .dashboard-action-row{gap:12px}
 .continue-lesson .lesson-mascot{width:62px;height:70px;flex-basis:62px;font-size:35px}
}
@media(max-width:990px){
 .sidebar{height:100vh;top:0}
 .dashboard-grid.source-dashboard{grid-template-columns:1fr}
 .source-dashboard .dashboard-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .source-dashboard .dashboard-side .card:last-child{grid-column:1/-1}
}
@media(max-width:700px){
 .announcement{height:auto;min-height:30px}
 .main-content{padding:18px 14px 40px}
 .source-dashboard .hero{min-height:248px;padding:25px 19px;background-position:54% center}
 .source-dashboard .hero-copy{max-width:78%;width:78%}
 .source-dashboard .hero h1{font-size:24px}
 .source-dashboard .hero p{font-size:12px;line-height:1.6}
 .source-dashboard .dashboard-action-row{grid-template-columns:1fr;gap:13px}
 .source-dashboard .dashboard-action-card{min-height:175px}
 .source-dashboard .dashboard-side{grid-template-columns:1fr!important}
 .source-dashboard .dashboard-side .card:last-child{grid-column:auto}
}
@media(max-width:480px){
 .source-dashboard .hero{background-image:linear-gradient(90deg,rgba(255,250,247,.97) 0%,rgba(255,250,247,.94) 52%,rgba(255,250,247,.65) 100%),url("/dashboard-hero.jpg")}
 .source-dashboard .hero-copy{max-width:100%;width:100%}
 .source-dashboard .hero .btn.dark{font-size:12px;padding:13px 19px}
 .dashboard-action-header strong{font-size:14px}
 .continue-lesson .lesson-mascot{flex-basis:75px;width:75px;height:75px}
}

/* Correct the earlier broad .dashboard-action-card > div flex-column rule.
   Component-specific classes intentionally win to keep screenshot layout. */
.source-dashboard .dashboard-action-card>.dashboard-action-header{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;width:100%;gap:13px}
.source-dashboard .dashboard-action-card>.continue-lesson{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;width:100%;gap:14px}
.source-dashboard .dashboard-action-card .lesson-details{display:grid;gap:6px;flex:1}
.source-dashboard .dashboard-action-card>.dashboard-stats-quad{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%}
.source-dashboard .dashboard-action-card{min-width:0}
.source-dashboard .hero{
 background-image:linear-gradient(90deg,rgba(255,250,247,1) 0%,rgba(255,250,247,.99) 34%,rgba(255,250,247,.89) 48%,rgba(255,250,247,.18) 68%,rgba(255,250,247,0) 82%),url("/dashboard-hero.jpg")
}
@media(max-width:1260px) and (min-width:991px){
 .source-dashboard .dashboard-action-card{padding:14px 13px}
 .source-dashboard .dashboard-action-card>.dashboard-action-header{gap:8px}
 .source-dashboard .dashboard-action-card .dashboard-action-header strong{font-size:14px}
 .source-dashboard .dashboard-action-card>.continue-lesson{gap:8px}
}
@media(max-width:480px){
 .source-dashboard .hero{background-image:linear-gradient(90deg,rgba(255,250,247,.97) 0%,rgba(255,250,247,.94) 52%,rgba(255,250,247,.65) 100%),url("/dashboard-hero.jpg")}
 .source-dashboard .dashboard-action-card>.dashboard-stats-quad{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Final measured 1365px alignment: reference right rail ends ~42px from edge. */
@media(min-width:991px){
 .main-content{padding-right:42px}
 .topbar{padding-right:42px}
}
@media(max-width:990px){
 .main-content{padding-right:23px}
 .topbar{padding-right:22px}
}
@media(max-width:700px){
 .main-content{padding-right:14px}
 .topbar{padding-right:12px}
}

/* v43: screenshot-measured navigation alignment at 1365 × 682, preserves BeeHọc identity. */
@media (min-width:991px) {
 .announcement{height:35px;min-height:35px;padding:0 26px;gap:12px;font-size:11px}
 .app-layout{min-height:calc(100vh - 35px)}
 .sidebar{height:calc(100vh - 35px)}
 .sidebar .identity{margin-bottom:33px}
 .sidebar .nav-primary+.sidebar-caption{margin-top:0}
 .topbar{padding-left:10px}
 .main-content{padding-top:26px;padding-right:42px}
}
.announcement{background:#f7f7f8;border-bottom:1px solid #e9eaee;color:#45536a}
.announcement-message{display:inline-flex;gap:6px;align-items:center;line-height:1.4;min-width:0}
.announcement-message strong{font-weight:800;color:#364661}
.announcement-icon{display:inline-grid;place-items:center;color:#b3222c;font-size:14px;width:18px;height:20px}
.announcement-actions{display:flex;gap:14px;align-items:center;flex:none;margin-left:auto}
.announcement-actions a{display:flex;align-items:center;gap:5px;font-size:11px;color:#bc202b;font-weight:800}
.announcement-actions a span{font-size:17px}
.announcement-actions button{display:grid;place-items:center;font-size:21px;line-height:1;width:23px;height:23px;color:#8793a3;background:transparent;border:0;border-radius:5px;cursor:pointer}
.announcement-actions button:hover,.announcement-actions button:focus-visible{background:#e9eaf0;color:#9e1b27}
.announcement[hidden]{display:none!important}
.sidebar-skills-caption{margin-top:14px!important}
.top-left .top-favorites{color:#c62838}
.top-left .top-favorites b{color:#26354a}
.source-dashboard .day-unit .day-mark.today{border:2px solid #f25a64;color:#c7202e;background:#fff;box-shadow:0 0 0 1px #ffe4e7}
.source-dashboard .day-unit:has(.today)>b{color:#d22730;font-weight:850}
.source-dashboard .day-unit .day-mark.today.done{background:#e73e4a;color:#fff;border-color:#ed3c47}
.source-dashboard .streak-record{color:#47576c;font-weight:800}
@media(max-width:990px){
 .announcement{min-height:35px}
 .sidebar .identity{margin-bottom:28px}
 .sidebar .nav-primary+.sidebar-caption{margin-top:3px}
 .top-left .top-favorites{display:none}
}
@media(max-width:700px){
 .announcement{padding:5px 10px;gap:4px}
 .announcement-message{display:block;font-size:10px;line-height:1.3}
 .announcement-icon{display:none}
 .announcement-actions{gap:3px}
 .announcement-actions a{font-size:10px;white-space:nowrap}
 .announcement-actions button{width:20px;height:24px}
}

/* HSK 1 contextual practice (independent, source-attested examples). */
.context-board{max-width:910px;margin:22px auto;padding:24px}
.context-prompt{font-size:27px;line-height:1.8;text-align:center;font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;margin:16px 0;color:#303951;overflow-wrap:anywhere}
.context-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0}
.context-choices button{min-height:58px;white-space:normal;font-size:17px}
.context-choices .context-picked{background:#dff5e8;border-color:#3fb484;color:#176748}
.context-answer,.context-bank{display:flex;flex-wrap:wrap;gap:9px;min-height:82px;border:2px dashed #cdddec;border-radius:13px;align-items:center;padding:13px;margin:15px 0}
.context-answer{background:#effbf5;border-color:#94d7b0}
.context-bank{background:#f7fafe}
.context-token{border:1px solid #a5c7de;border-radius:9px;background:#fff;color:#263747;font-size:20px;font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;padding:9px 13px;min-height:48px;cursor:pointer;box-shadow:0 3px 9px #1239540a}
.context-token.selected{background:#d6f2e3;border-color:#62b98d}
.context-token:hover,.context-token:focus-visible{outline:2px solid #6ca6d9}
.context-actions{display:flex;justify-content:flex-end;gap:8px;margin:18px 0 0}
@media(max-width:580px){.context-board{padding:14px}.context-choices{grid-template-columns:1fr}.context-prompt{font-size:23px}.context-token{font-size:18px}}
/* Interior learning surfaces: align courses, practice and mini-exam with
   BeeHọc's red/white dashboard language (independent of source account UI). */
#app:has(#course-zone),#app:has(#practice-stage),#app:has(#exam-stage){color:#263449}
#app:has(#course-zone) .page-heading,
#app:has(#practice-stage) .page-heading,
#app:has(#exam-stage) .page-heading{margin-bottom:18px}
#app:has(#course-zone) .section-kicker,
#app:has(#practice-stage) .section-kicker,
#app:has(#exam-stage) .section-kicker{color:#bd2a35;letter-spacing:1.1px;font-size:11px}
#app:has(#course-zone) .page-heading h1,
#app:has(#practice-stage) .page-heading h1,
#app:has(#exam-stage) .page-heading h1{color:#172843;letter-spacing:-.7px;line-height:1.25;font-size:30px}
#app:has(#course-zone) .page-heading p,
#app:has(#practice-stage) .page-heading p,
#app:has(#exam-stage) .page-heading p{color:#66758b;line-height:1.7;font-size:13px;max-width:720px}
#app:has(#course-zone) .notice,
#app:has(#practice-stage) .notice{color:#735867;background:#fff8f5;border:1px solid #f6d8d3;border-radius:16px;padding:14px 18px;line-height:1.6;font-size:12px}
.learning-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 22px}
.learning-shortcuts>a{position:relative;display:grid;grid-template-columns:47px minmax(0,1fr) 14px;grid-template-rows:auto auto;align-items:center;column-gap:11px;min-height:79px;background:#fff;border:1px solid #e6e8ee;border-radius:18px;padding:14px 13px;color:#172943;box-shadow:0 3px 0 #f2f3f6}
.learning-shortcuts>a:hover,.learning-shortcuts>a:focus-visible{border-color:#f4b9bf;background:#fffafa;transform:translateY(-2px);outline-offset:3px}
.learning-shortcuts>a>span{grid-row:1/3;display:grid;place-items:center;height:43px;width:43px;border-radius:14px;background:#fff0f0;color:#c62a35;font-size:19px;font-weight:800}
.learning-shortcuts>a:nth-child(2)>span{background:#f1f2ff;color:#6966b7}
.learning-shortcuts>a:nth-child(3)>span{background:#fff5e9;color:#c68b35}
.learning-shortcuts strong{font-size:12px;line-height:1.3}
.learning-shortcuts small{font-size:10px;color:#8290a3;line-height:1.5;margin-top:1px}
.learning-shortcuts b{grid-column:3;grid-row:1/3;color:#c92936;font-size:16px}
#app:has(#course-zone) .stat-row,
#app:has(#exam-stage) .stat-row{gap:13px;margin:18px 0}
#app:has(#course-zone) .stat-card,
#app:has(#exam-stage) .stat-card{border-radius:19px;border:1px solid #e7e9ef;padding:17px 19px;min-height:92px;background:#fff;box-shadow:0 3px 0 #f0f1f4}
#app:has(#course-zone) .stat-card b,
#app:has(#exam-stage) .stat-card b{font-size:24px;color:#202d44}
#app:has(#course-zone) .stat-card .stat-symbol.sun,
#app:has(#exam-stage) .stat-card .stat-symbol.sun{color:#bf2835;background:#ffeff0}
#app:has(#course-zone) .stat-card .stat-symbol.mint,
#app:has(#exam-stage) .stat-card .stat-symbol.mint{color:#208665;background:#e7f7f1}
#app:has(#course-zone) .stat-card .stat-symbol.purple,
#app:has(#exam-stage) .stat-card .stat-symbol.purple{color:#6764ad;background:#f1efff}
#app:has(#course-zone) .toolbar,
#app:has(#practice-stage) .toolbar{display:flex;gap:11px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #e7e9ef;border-radius:18px;padding:12px;margin:18px 0 12px}
#app:has(#course-zone) .toolbar input{flex:1;min-width:210px}
#app:has(#course-zone) .toolbar input,#app:has(#course-zone) .toolbar select,
#app:has(#practice-stage) .toolbar select{height:44px;border:1px solid #e4e6ed;border-radius:12px;padding:0 13px;background:#fff;color:#26384d;font-size:12px}
#app:has(#course-zone) .toolbar input:focus-visible,#app:has(#course-zone) .toolbar select:focus-visible,
#app:has(#practice-stage) .toolbar select:focus-visible{outline:2px solid #e45c66;outline-offset:2px}
#app:has(#course-zone) .toolbar select{min-width:180px}
#app:has(#practice-stage) .toolbar .btn{min-height:44px;border-radius:23px;background:#c91d2b;border-color:#c91d2b;color:#fff;box-shadow:0 3px 0 #a61522;font-weight:800}
#app:has(#practice-stage) .toolbar .btn:hover{background:#b61423}
#app:has(#course-zone) .course-grid{gap:17px;align-items:stretch}
#app:has(#course-zone) .course-card{border:1px solid #e6e8ee;border-radius:20px;padding:20px 19px 19px;box-shadow:0 3px 0 #f2f3f5;min-height:226px}
#app:has(#course-zone) .course-card:hover{border-color:#f3bcc1;transform:translateY(-2px)}
#app:has(#course-zone) .course-round{background:#fff0f0;color:#be2933;border-radius:13px;height:45px;width:45px}
#app:has(#course-zone) .course-tag{background:#edf7f3;color:#308a70;border-radius:12px;padding:7px 10px}
#app:has(#course-zone) .course-card h3{font-size:15px;line-height:1.5;color:#182943;min-height:46px}
#app:has(#course-zone) .course-card p{font-size:11px;line-height:1.6;color:#778498}
#app:has(#course-zone) .course-card .btn{font-size:11px;font-weight:800;border-radius:20px;background:#c8202c;border-color:#c8202c;color:#fff}
#app:has(#course-zone) .course-card .btn:hover{background:#aa1723}
#app:has(#course-zone) .lesson-detail-head{background:#fff;border:1px solid #e5e8ee;border-radius:14px;padding:12px 14px;margin-bottom:19px}
#app:has(#course-zone) .lesson-detail-head button{border:0;border-radius:10px;color:#bb2431;background:#fff0f1;padding:10px 12px;font-size:12px;font-weight:800}
#app:has(#course-zone) .course-vocab,#app:has(#course-zone) .course-grammar,#app:has(#course-zone) .course-dialogue{border:1px solid #e6e8ee;border-radius:19px;background:#fff;box-shadow:0 2px 0 #f1f2f4}
#app:has(#course-zone) .course-word-head strong{color:#172a46}
#app:has(#course-zone) .course-word-head .pinyin{color:#c92e3c}
#app:has(#course-zone) .course-part{color:#ab4c54;background:#fff0f0}
#app:has(#course-zone) .course-examples{border-color:#f0eaeb}
#app:has(#course-zone) .course-examples small{color:#c14550}
#app:has(#course-zone) .course-grammar code{background:#fff0f1;color:#a3202f}
#app:has(#course-zone) .course-line .course-speaker{color:#a92936;background:#fff0f1}
#app:has(#practice-stage) #practice-stage,
#app:has(#exam-stage) #exam-stage{background:#fff;border:1px solid #e7e9ef;border-radius:22px;padding:23px 20px;min-height:183px;box-shadow:0 3px 0 #f2f2f5}
#app:has(#practice-stage) #practice-stage>.empty-state,
#app:has(#exam-stage) #exam-stage>.empty-state{background:#fffafa;border-color:#f1dcde;border-radius:18px;color:#68768c;min-height:116px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;font-size:13px;padding:24px;text-align:center}
#app:has(#exam-stage) #exam-stage .btn{border-radius:23px;background:#c91d2b;border-color:#c91d2b;color:#fff;box-shadow:0 3px 0 #ab1524;font-weight:800}
#app:has(#exam-stage) .subheading{margin-top:27px}
#app:has(#exam-stage) .subheading h2{color:#172943;font-size:19px}
@media(max-width:1100px){
 .learning-shortcuts{gap:9px}
 .learning-shortcuts>a{grid-template-columns:38px 1fr 8px;padding:12px 9px}
 .learning-shortcuts>a>span{height:37px;width:37px;font-size:17px}
 .learning-shortcuts strong{font-size:11px}
 .learning-shortcuts small{font-size:9px}
}
@media(max-width:760px){
 .learning-shortcuts{grid-template-columns:1fr;gap:9px;margin:14px 0}
 .learning-shortcuts>a{grid-template-columns:43px 1fr 14px;min-height:66px;padding:10px 12px}
 .learning-shortcuts>a>span{height:42px;width:42px}
 .learning-shortcuts strong{font-size:12px}
 .learning-shortcuts small{font-size:10px}
 #app:has(#course-zone) .toolbar,#app:has(#practice-stage) .toolbar{flex-direction:column;align-items:stretch;gap:10px}
 #app:has(#course-zone) .toolbar input,#app:has(#course-zone) .toolbar select,
 #app:has(#practice-stage) .toolbar select,#app:has(#practice-stage) .toolbar .btn{width:100%;min-width:0}
 #app:has(#course-zone) .page-heading h1,#app:has(#practice-stage) .page-heading h1,#app:has(#exam-stage) .page-heading h1{font-size:25px}
 #app:has(#course-zone) .stat-row,#app:has(#exam-stage) .stat-row{grid-template-columns:1fr;gap:9px}
 #app:has(#course-zone) .stat-card,#app:has(#exam-stage) .stat-card{min-height:76px}
 #app:has(#course-zone) .course-grid{grid-template-columns:1fr}
 #app:has(#course-zone) .course-card{min-height:0}
}

/* Compact mobile metrics: preserve all values while reducing excessive
   vertical scrolling before course lists and exam questions. */
@media(max-width:760px){
 #app:has(#course-zone) .stat-row,#app:has(#exam-stage) .stat-row{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px
 }
 #app:has(#course-zone) .stat-card,#app:has(#exam-stage) .stat-card{
  min-width:0;min-height:116px;display:flex;flex-direction:column;justify-content:center;
  align-items:center;text-align:center;gap:7px;padding:12px 5px
 }
 #app:has(#course-zone) .stat-card .stat-symbol,
 #app:has(#exam-stage) .stat-card .stat-symbol{height:37px;width:37px;font-size:18px;flex:0 0 37px}
 #app:has(#course-zone) .stat-card>div,#app:has(#exam-stage) .stat-card>div{
  display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0
 }
 #app:has(#course-zone) .stat-card small,#app:has(#exam-stage) .stat-card small{
  font-size:10px;line-height:1.3;overflow-wrap:anywhere
 }
 #app:has(#course-zone) .stat-card b,#app:has(#exam-stage) .stat-card b{
  font-size:21px;line-height:1.2
 }
}

/* BeeHoc v47: matching reading, grammar, bilingual-story and topical
 * vocabulary libraries to the first-party red/white dashboard system.
 * UI-only: existing learning logic, locally stored records and datasets stay intact. */
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .page-heading{margin-bottom:17px}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .section-kicker{color:#bd2635;letter-spacing:.95px;font-weight:850;font-size:11px}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .page-heading h1{color:#172843;letter-spacing:-.7px;font-size:30px;line-height:1.26}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .page-heading p{color:#68788e;font-size:13px;line-height:1.7;max-width:790px}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone))>.notice{color:#755867;background:#fff9f7;border:1px solid #f5d8d5;border-radius:16px;padding:14px 18px;font-size:12px;line-height:1.6}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .stat-row{gap:13px;margin:18px 0}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .stat-card{border:1px solid #e6e9ef;background:#fff;border-radius:20px;min-height:93px;padding:16px 18px;box-shadow:0 3px 0 #f1f2f5}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .stat-card b{color:#192b46;font-size:24px;font-weight:850}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .stat-card .stat-symbol.sun{background:#fff0f1;color:#c12735}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .stat-card .stat-symbol.mint{background:#eaf8f2;color:#238a67}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .stat-card .stat-symbol.purple{background:#f2efff;color:#7063ae}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .toolbar{display:flex;align-items:center;gap:11px;flex-wrap:wrap;padding:12px;background:#fff;border:1px solid #e7e9f0;border-radius:19px;margin:18px 0 12px}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .toolbar input{min-width:210px;flex:1;max-width:none}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .toolbar :is(input,select){height:44px;background:#fff;border:1px solid #e3e7ed;border-radius:12px;color:#26374f;padding:0 13px;font-size:12px}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .toolbar :is(input,select):focus-visible{outline:2px solid #e35462;outline-offset:2px}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .toolbar select{min-width:150px}
:is(.grammar-grid,.reading-grid,.story-grid,.topic-grid){gap:17px;align-items:stretch}
:is(.grammar-tile,.reading-tile,.story-tile,.topic-tile){background:#fff;border:1px solid #e5e8ee;border-radius:20px;padding:20px 19px;box-shadow:0 3px 0 #f1f2f5;min-width:0}
:is(.grammar-tile,.reading-tile,.story-tile,.topic-tile):hover{border-color:#f3bac0;transform:translateY(-2px);transition:border-color .16s,transform .16s}
:is(.grammar-tile-top,.reading-tile-top,.story-tile-top,.topic-tile-top){color:#c02c3b;font-size:11px;font-weight:820;line-height:1.5;margin-bottom:15px}
:is(.grammar-tile-top,.reading-tile-top,.story-tile-top,.topic-tile-top)>span:first-child{border-radius:10px;background:#fff0f1;padding:6px 9px;white-space:nowrap}
:is(.grammar-tile-top,.reading-tile-top,.story-tile-top,.topic-tile-top)>span:last-child{color:#6e7e92;font-weight:700}
:is(.grammar-tile,.reading-tile,.story-tile,.topic-tile) h3{color:#172943;font-size:16px;line-height:1.5}
:is(.grammar-tile,.reading-tile,.story-tile,.topic-tile)>p{color:#77849a;font-size:11px;line-height:1.65}
:is(.grammar-tile,.reading-tile,.story-tile,.topic-tile)>.btn{align-self:flex-start;background:#c91d2b;color:#fff;border:1px solid #c91d2b;border-radius:22px;font-size:11px;font-weight:800;min-height:37px;padding:10px 14px;box-shadow:0 3px 0 #a71927}
:is(.grammar-tile,.reading-tile,.story-tile,.topic-tile)>.btn:hover{background:#ac1723}
:is(.grammar-tile,.reading-tile,.story-tile,.topic-tile)>.btn:focus-visible{outline:2px solid #e35462;outline-offset:3px}
:is(.grammar-tile,.reading-tile,.story-tile,.topic-tile)>.btn:disabled{box-shadow:none;opacity:.5}
.grammar-point-title,.reading-sentence strong,.story-line-main strong,.topic-word strong{color:#1d2d47}
.grammar-usage strong,.grammar-examples small,.reading-sentence .pinyin,.story-line-main small.pinyin,.topic-word>.pinyin{color:#c43a46}
.grammar-usage{border-color:#f1e7e9}
.grammar-index,.reading-number,.story-index{background:#fff0f1;color:#c02c3b;border-radius:11px}
.grammar-examples article,.story-keywords .card,.topic-word{border:1px solid #e7e9f0;border-radius:16px;background:#fff}
.story-section h2{color:#203149}
.story-speaker,.story-tile small{color:#25846b}
.topic-level{background:#fff1f1;color:#bb2c39}
.topic-quiz-grid button,.story-quiz-options button,.reading-quiz-options button{border-radius:14px;min-height:49px}
:is(.topic-quiz-grid,.story-quiz-options,.reading-quiz-options) button:focus-visible{outline:2px solid #e35462;outline-offset:2px}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .pager{padding:18px 0}
:is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .pager .btn{border-radius:14px}
@media(max-width:760px){
 :is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .page-heading h1{font-size:25px}
 :is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .toolbar{display:flex;flex-direction:column;align-items:stretch}
 :is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .toolbar :is(input,select){width:100%;min-width:0}
 :is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 :is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .stat-card{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;min-height:116px;gap:6px;padding:11px 5px;min-width:0}
 :is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .stat-card .stat-symbol{height:36px;width:36px;flex:0 0 36px}
 :is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .stat-card>div{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}
 :is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .stat-card small{font-size:10px;line-height:1.35;overflow-wrap:anywhere}
 :is(#app:has(#grammar-zone),#app:has(#reading-zone),#app:has(#stories-zone),#app:has(#topics-zone)) .stat-card b{font-size:21px}
 :is(.grammar-grid,.reading-grid,.story-grid,.topic-grid){grid-template-columns:1fr}
 :is(.grammar-tile,.reading-tile,.story-tile,.topic-tile){padding:17px}
 .grammar-examples,.story-quiz-options,.reading-quiz-options,.topic-quiz-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:380px){
 :is(.grammar-tile,.reading-tile,.story-tile,.topic-tile)>h3{font-size:15px}
 :is(.story-quiz-options,.reading-quiz-options,.topic-quiz-grid){grid-template-columns:1fr}
}

/* v48: vocabulary tools share the independent BeeHoc dashboard visual system.
 * No changes to corpus content, bookmark storage, speech engine or video URLs. */
:is(#app:has(#words-grid),#app:has(#daily-zone),#app:has(#radicals-zone),#app:has(#video-zone)) .page-heading{margin-bottom:19px}
:is(#app:has(#words-grid),#app:has(#daily-zone),#app:has(#radicals-zone),#app:has(#video-zone)) .section-kicker{color:#bc2935;font-size:11px;font-weight:850;letter-spacing:1px}
:is(#app:has(#words-grid),#app:has(#daily-zone),#app:has(#radicals-zone),#app:has(#video-zone)) .page-heading h1{font-size:30px;line-height:1.28;letter-spacing:-.65px;color:#172842}
:is(#app:has(#words-grid),#app:has(#daily-zone),#app:has(#radicals-zone),#app:has(#video-zone)) .page-heading p{font-size:13px;line-height:1.7;color:#65748b;max-width:760px}
:is(#app:has(#words-grid),#app:has(#daily-zone),#app:has(#radicals-zone),#app:has(#video-zone)) .notice{border:1px solid #f1d3d4;border-radius:16px;background:#fff9f7;color:#7d5861;padding:14px 17px;font-size:12px;line-height:1.7}
:is(#app:has(#words-grid),#app:has(#daily-zone),#app:has(#radicals-zone),#app:has(#video-zone)) .toolbar{display:flex;align-items:center;gap:11px;flex-wrap:wrap;border:1px solid #e6e9ef;border-radius:18px;padding:12px;background:#fff;margin:17px 0}
:is(#app:has(#words-grid),#app:has(#daily-zone),#app:has(#video-zone)) .toolbar input[type="search"]{min-width:220px;flex:1;max-width:none;border:1px solid #e4e7ee;border-radius:12px;height:44px;padding:0 13px;color:#26384f;font-size:12px}
#app:has(#words-grid) .toolbar select{height:44px;min-width:158px;border:1px solid #e4e7ee;border-radius:12px;padding:0 12px;color:#26384f;background:#fff;font-size:12px}
#app:has(#words-grid) .toolbar>label{border-radius:14px;min-height:44px;display:flex;align-items:center;gap:6px;white-space:nowrap;color:#34435c;background:#fff8f8;border-color:#f1dfe0}
:is(#app:has(#words-grid),#app:has(#daily-zone),#app:has(#video-zone)) .toolbar :is(input,select):focus-visible{outline:2px solid #e25661;outline-offset:2px}
#app:has(#words-grid) .word-grid{gap:15px;margin:17px 0}
#app:has(#words-grid) .word-card{border:1px solid #e6e9ef;background:#fff;border-radius:19px;min-width:0;padding:18px;box-shadow:0 3px 0 #f1f2f5}
#app:has(#words-grid) .word-card:hover{border-color:#f2bbc0;transform:translateY(-2px)}
#app:has(#words-grid) .word-card .hanzi{color:#1d2b45;font-weight:750}
#app:has(#words-grid) .word-card .pinyin{color:#c13240}
#app:has(#words-grid) .word-card .eng{color:#667489}
#app:has(#words-grid) .word-card .word-actions{gap:8px}
#app:has(#words-grid) .word-card .icon-button{border:1px solid #f1dfe2;background:#fff4f4;border-radius:12px;color:#c52937;min-width:34px;min-height:34px}
#app:has(#words-grid) .word-card .icon-button.active{background:#c92a38;color:#fff;border-color:#c92a38}
#app:has(#words-grid) .word-card .icon-button:focus-visible{outline:2px solid #e25661;outline-offset:2px}
#app:has(#daily-zone) .daily-grid{gap:16px;margin:18px 0}
#app:has(#daily-zone) .daily-tile{background:#fff;border:1px solid #e7e9ef;border-radius:20px;box-shadow:0 3px 0 #f1f2f5;padding:20px 18px;min-height:208px}
#app:has(#daily-zone) .daily-tile>small{font-size:11px;color:#c02e3d;font-weight:800;letter-spacing:.35px}
#app:has(#daily-zone) .daily-tile>strong{font-size:33px;color:#1b2a43;line-height:1.55;font-weight:800}
#app:has(#daily-zone) .daily-tile>.pinyin{font-size:13px;color:#c02e3d}
#app:has(#daily-zone) .daily-tile .row-actions{display:flex;align-items:center;gap:10px;justify-content:space-between}
#app:has(#daily-zone) .daily-tile .btn{background:#c91d2b;color:white;border:1px solid #c91d2b;border-radius:21px;padding:10px 14px;font-size:11px;font-weight:800;box-shadow:0 3px 0 #aa1825}
#app:has(#daily-zone) .daily-tile .icon-button{border:1px solid #f0d7d9;border-radius:12px;background:#fff4f5;color:#bc2636}
#app:has(#daily-zone) .daily-tile :is(.btn,.icon-button):focus-visible{outline:2px solid #e25661;outline-offset:3px}
#app:has(#daily-zone) .daily-meaning{color:#455873}
#app:has(#daily-zone) .daily-example .pinyin{color:#c02f3d}
#app:has(#daily-zone) .daily-example{padding:12px;border:1px solid #e9eaf0;border-radius:14px;background:#fff}
#app:has(#radicals-zone) .radical-tile{border:1px solid #e5e8ef;box-shadow:0 3px 0 #f1f2f5;background:#fff}
#app:has(#radicals-zone) .radical-tile strong{color:#af2734}
#app:has(#radicals-zone) .radical-number{color:#bf2634}
#app:has(#radicals-zone) .radical-tile:focus-visible{outline:2px solid #e25661;outline-offset:3px}
#app:has(#radicals-zone) .radical-tools .btn{border-radius:22px}
#app:has(#radicals-zone) .radical-detail{border-radius:21px;box-shadow:0 3px 0 #f1f2f5}
#app:has(#video-zone) .stat-row{gap:13px;margin:18px 0}
#app:has(#video-zone) .stat-card{border:1px solid #e7e9ef;border-radius:20px;box-shadow:0 3px 0 #f1f2f5;background:#fff;min-height:94px;padding:16px 17px}
#app:has(#video-zone) .stat-card b{color:#1c2d47;font-size:24px}
#app:has(#video-zone) .video-grid{gap:17px}
#app:has(#video-zone) .video-tile{border-radius:20px;border:1px solid #e5e8ef;box-shadow:0 3px 0 #f1f2f5}
#app:has(#video-zone) .video-tile-art{background:linear-gradient(130deg,#fff4f0,#ffe2dd 65%,#ffcfc8)}
#app:has(#video-zone) .video-tile-body h3{color:#1d2e48}
#app:has(#video-zone) .video-tile :is(a,button):focus-visible{outline:2px solid #e25661;outline-offset:3px}
#app:has(#video-zone) .video-toggle input{accent-color:#c91d2b}
@media(max-width:760px){
 :is(#app:has(#words-grid),#app:has(#daily-zone),#app:has(#radicals-zone),#app:has(#video-zone)) .page-heading h1{font-size:25px}
 :is(#app:has(#words-grid),#app:has(#daily-zone),#app:has(#video-zone)) .toolbar{flex-direction:column;align-items:stretch;gap:9px}
 :is(#app:has(#words-grid),#app:has(#daily-zone),#app:has(#video-zone)) .toolbar input[type="search"],#app:has(#words-grid) .toolbar select,#app:has(#words-grid) .toolbar>label{min-width:0;width:100%;flex:none}
 #app:has(#video-zone) .stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 #app:has(#video-zone) .stat-card{min-height:113px;display:flex;flex-direction:column;text-align:center;align-items:center;justify-content:center;gap:6px;padding:10px 5px;min-width:0}
 #app:has(#video-zone) .stat-card .stat-symbol{width:36px;height:36px;flex:0 0 36px}
 #app:has(#video-zone) .stat-card>div{display:flex;flex-direction:column;align-items:center;gap:5px}
 #app:has(#video-zone) .stat-card small{font-size:10px;line-height:1.35;overflow-wrap:anywhere}
 #app:has(#video-zone) .stat-card b{font-size:21px}
 #app:has(#words-grid) .word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app:has(#daily-zone) .daily-grid{grid-template-columns:1fr}
}
@media(max-width:420px){
 #app:has(#words-grid) .word-grid{grid-template-columns:1fr}
 #app:has(#daily-zone) .daily-tile{min-height:0}
 #app:has(#video-zone) .video-grid{grid-template-columns:1fr}
}

/* v48 finishing details: radical practice should not retain the old amber CTA. */
#app:has(#radicals-zone) .radical-tools .btn:not(.outline){background:#c91d2b;border:1px solid #c91d2b;color:#fff;box-shadow:0 3px 0 #a81824;border-radius:22px}
#app:has(#radicals-zone) .radical-tools .btn:not(.outline):hover{background:#ac1724}
#app:has(#radicals-zone) .radical-tools .btn.outline{background:#fff7f7;border:1px solid #eecbd0;color:#b62534;border-radius:22px}
#app:has(#radicals-zone) .radical-tools .btn:focus-visible{outline:2px solid #e25661;outline-offset:3px}
#app:has(#video-zone) .stat-card .stat-symbol.sun{background:#fff0f1;color:#c12735}
#app:has(#video-zone) .stat-card .stat-symbol.mint{background:#e9f8f2;color:#238766}
#app:has(#video-zone) .stat-card .stat-symbol.purple{background:#f2efff;color:#7162aa}

/* v50: shared first-party completion pass for games, placement,
   learning progress, Pinyin and the local HSK study planner.
   Design-only; no changes to source corpora, grading, scores or data storage. */
:is(#app:has(#games-zone),#app:has(#placement-zone),#app:has(#study-plan-zone),#app:has(.tone-grid),#app:has(.backup-buttons)) .section-kicker{color:#be2a38;letter-spacing:1px;font-size:11px;font-weight:850}
:is(#app:has(#games-zone),#app:has(#placement-zone),#app:has(#study-plan-zone),#app:has(.tone-grid),#app:has(.backup-buttons)) .page-heading{margin-bottom:18px}
:is(#app:has(#games-zone),#app:has(#placement-zone),#app:has(#study-plan-zone),#app:has(.tone-grid),#app:has(.backup-buttons)) .page-heading h1{font-size:30px;line-height:1.27;letter-spacing:-.65px;color:#172942}
:is(#app:has(#games-zone),#app:has(#placement-zone),#app:has(#study-plan-zone),#app:has(.tone-grid),#app:has(.backup-buttons)) .page-heading p{font-size:13px;line-height:1.7;color:#64748c;max-width:780px}
:is(#app:has(#games-zone),#app:has(#placement-zone),#app:has(#study-plan-zone),#app:has(.tone-grid)) .notice{border-radius:17px;border:1px solid #f0d6d8;background:#fff9f8;color:#785c66;padding:14px 17px;font-size:12px;line-height:1.65}
#app:has(#games-zone) .toolbar{display:flex;align-items:center;background:#fff;border:1px solid #e5e8ef;border-radius:18px;padding:12px 16px;margin:18px 0}
#app:has(#games-zone) .toolbar label{display:flex;align-items:center;gap:13px;color:#283b54;font-weight:800;font-size:12px}
#app:has(#games-zone) .toolbar select{min-width:154px;height:44px;border:1px solid #e3e7ee;border-radius:12px;padding:0 12px;color:#273850;background:#fff}
#app:has(#games-zone) .toolbar select:focus-visible{outline:2px solid #e45764;outline-offset:2px}
#app:has(#games-zone) .game-grid{gap:17px;margin-top:17px}
#app:has(#games-zone) .game-mode{min-width:0;border:1px solid #e5e9f0;border-radius:20px;background:#fff;padding:20px;min-height:220px;box-shadow:0 3px 0 #f1f2f5}
#app:has(#games-zone) .game-mode:hover{border-color:#f2b9bf;transform:translateY(-2px)}
#app:has(#games-zone) .game-mode .game-emblem{background:#fff0f2;color:#c72835;width:49px;height:49px;border-radius:15px;font-size:23px}
#app:has(#games-zone) .game-mode:nth-child(3n+2) .game-emblem{background:#f1f0ff;color:#6b61af}
#app:has(#games-zone) .game-mode:nth-child(3n) .game-emblem{background:#eaf8f2;color:#308767}
#app:has(#games-zone) .game-mode h3{font-size:15px;line-height:1.45;color:#192c45}
#app:has(#games-zone) .game-mode p{color:#6c7a8f;font-size:12px;line-height:1.65}
#app:has(#games-zone) .game-mode small{color:#61748c}
#app:has(#games-zone) .game-mode .btn:not(:disabled){background:#c91d2b;color:#fff;border:1px solid #c91d2b;border-radius:21px;font-weight:800;box-shadow:0 3px 0 #a71824;min-height:37px;padding:9px 14px}
#app:has(#games-zone) .game-mode .btn:not(:disabled):hover{background:#aa1825}
#app:has(#games-zone) .game-mode .btn:disabled{background:#f2f3f5;border-color:#e9eaf0;color:#8791a0;cursor:not-allowed;box-shadow:none}
#app:has(#games-zone) .game-mode .btn:focus-visible{outline:2px solid #e45764;outline-offset:3px}
#app:has(#games-zone) .game-result,#app:has(#games-zone) .game-play{border:1px solid #e5e8ef;border-radius:20px;box-shadow:0 3px 0 #f1f2f5}
#app:has(#placement-zone) .placement-intro,#app:has(#placement-zone) .placement-history,#app:has(#placement-zone) .placement-question,#app:has(#placement-zone) .placement-result{box-shadow:0 3px 0 #f1f2f5;border:1px solid #e4e8ef;border-radius:23px;background:#fff}
#app:has(#placement-zone) .placement-intro h2,#app:has(#placement-zone) .placement-result h2{color:#182a46;font-size:25px}
#app:has(#placement-zone) .placement-intro p,#app:has(#placement-zone) .placement-result p{color:#6c7a8e}
#app:has(#placement-zone) .placement-badges span{background:#fff0f1;border:1px solid #f2cdd2;color:#bc2937}
#app:has(#placement-zone) .placement-hanzi{background:#fff5f3;color:#bd2736;border-color:#f4d8d9}
#app:has(#placement-zone) .placement-intro .btn,#app:has(#placement-zone) .placement-result-actions .btn:not(.outline),#app:has(#placement-zone) .placement-question .btn:not(.outline){background:#c91d2b;border:1px solid #c91d2b;color:#fff;border-radius:22px;min-height:43px;padding:12px 20px;font-weight:800;box-shadow:0 3px 0 #a91926}
#app:has(#placement-zone) .btn.outline{border:1px solid #edc9cf;color:#b52736;background:#fff8f8;border-radius:19px}
#app:has(#placement-zone) .btn:focus-visible{outline:2px solid #e45764;outline-offset:3px}
#app:has(#placement-zone) .placement-options .option{border-radius:14px;border-color:#e4e7ee;background:#fff;color:#27374f;min-height:67px}
#app:has(#placement-zone) .placement-options .option:focus-visible{outline:2px solid #e45764;outline-offset:2px}
#app:has(#placement-zone) .placement-suggest{border:1px solid #f3d6d9}
#app:has(.tone-grid) .tone-card{border:1px solid #e5e8ef;background:#fff;border-radius:19px;box-shadow:0 3px 0 #f1f2f5;min-height:129px}
#app:has(.tone-grid) .tone-card:hover{border-color:#f3bac0;transform:translateY(-2px)}
#app:has(.tone-grid) .tone-card b{color:#c22938;font-size:23px}
#app:has(.tone-grid) .tone-card strong{color:#202e49}
#app:has(.tone-grid) .tone-card small{color:#6a798e}
#app:has(.tone-grid) .tone-card:focus-visible{outline:2px solid #e45764;outline-offset:3px}
#app:has(.tone-grid) .tool-grid>.card{border:1px solid #e6e9ef;border-radius:19px;box-shadow:0 3px 0 #f1f2f5;min-height:120px}
#app:has(.tone-grid) .tool-grid h3{color:#1e304b}
#app:has(.backup-buttons) .stat-row{gap:13px;margin:18px 0}
#app:has(.backup-buttons) .stat-card{border:1px solid #e5e8ef;border-radius:19px;background:#fff;min-height:94px;box-shadow:0 3px 0 #f1f2f5}
#app:has(.backup-buttons) .stat-card b{color:#1b2c46}
#app:has(.backup-buttons)>.card,#app:has(.backup-buttons)>.card .notice{border-radius:18px}
#app:has(.backup-buttons) .backup-buttons{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
#app:has(.backup-buttons) .backup-buttons .btn{border-radius:21px;min-height:43px;font-size:12px;font-weight:800}
#app:has(.backup-buttons) .backup-buttons>.btn:not(.muted-btn),#app:has(.backup-buttons) .backup-buttons>.btn:not(.muted-btn):first-child{background:#c91d2b;border-color:#c91d2b;color:#fff;box-shadow:0 3px 0 #a71824}
#app:has(.backup-buttons) .backup-buttons .btn.outline{background:#fff8f8;border-color:#f0ced1;color:#b52735;box-shadow:none}
#app:has(.backup-buttons) .backup-buttons .muted-btn{background:#f5f5f7;color:#67768b;border-color:#e5e7ed;box-shadow:none}
#app:has(.backup-buttons) .backup-buttons .btn:focus-visible{outline:2px solid #e45764;outline-offset:3px}
#app:has(#study-plan-zone) .plan-controls{background:#fff;border:1px solid #e5e9ef;border-radius:19px;padding:15px}
#app:has(#study-plan-zone) .plan-controls :is(input,select):focus-visible{outline:2px solid #e45764;outline-offset:2px}
#app:has(#study-plan-zone) .plan-progress,#app:has(#study-plan-zone) .plan-day{box-shadow:0 3px 0 #f1f2f5}
#app:has(#study-plan-zone) .plan-task>a:focus-visible,#app:has(#study-plan-zone) .plan-task>button:focus-visible{outline:2px solid #e45764;outline-offset:3px}
@media(max-width:760px){
 :is(#app:has(#games-zone),#app:has(#placement-zone),#app:has(#study-plan-zone),#app:has(.tone-grid),#app:has(.backup-buttons)) .page-heading h1{font-size:25px}
 #app:has(#games-zone) .game-grid{grid-template-columns:1fr;gap:12px}
 #app:has(#games-zone) .game-mode{min-height:0;padding:17px}
 #app:has(#games-zone) .toolbar,#app:has(#games-zone) .toolbar label{display:flex;flex-direction:column;align-items:stretch}
 #app:has(#games-zone) .toolbar select{width:100%}
 #app:has(.tone-grid) .tone-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #app:has(.tone-grid) .tool-grid{grid-template-columns:1fr;gap:11px}
 #app:has(.backup-buttons) .stat-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 #app:has(.backup-buttons) .stat-card{min-width:0;min-height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding:10px 5px}
 #app:has(.backup-buttons) .stat-card .stat-symbol{height:36px;width:36px;flex:0 0 36px}
 #app:has(.backup-buttons) .stat-card>div{display:flex;flex-direction:column;align-items:center;gap:4px}
 #app:has(.backup-buttons) .stat-card small{font-size:10px;line-height:1.35;overflow-wrap:anywhere}
 #app:has(.backup-buttons) .stat-card b{font-size:20px}
 #app:has(.backup-buttons) .backup-buttons{flex-direction:column;align-items:stretch}
 #app:has(.backup-buttons) .backup-buttons .btn{width:100%;text-align:center;justify-content:center}
 #app:has(#study-plan-zone) .plan-controls{grid-template-columns:1fr}
 #app:has(#study-plan-zone) .plan-grid{grid-template-columns:1fr}
}
@media(max-width:390px){
 #app:has(.tone-grid) .tone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #app:has(#placement-zone) .placement-intro,#app:has(#placement-zone) .placement-question,#app:has(#placement-zone) .placement-history,#app:has(#placement-zone) .placement-result{padding:16px}
}

/* v52: dashboard learning-video shelf and honest personal scorecard.
   All covers are BeeHoc CSS illustrations; no external thumbnails are embedded. */
.source-dashboard .dashboard-video-shelf{background:#fff;border:2px solid #e3e7eb;border-radius:23px;padding:16px 16px 13px;box-shadow:0 4px 0 #eceef1;min-width:0}
.source-dashboard .dashboard-shelf-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}
.source-dashboard .shelf-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.source-dashboard .shelf-mark{display:grid;place-items:center;background:#27c798;color:#fff;border-radius:13px;width:37px;height:37px;flex:0 0 37px;font-size:19px}
.source-dashboard .shelf-title h2{font-size:15px;color:#142640;letter-spacing:-.15px;margin:0;line-height:1.35}
.source-dashboard .shelf-free,.source-dashboard .shelf-feature{font-size:9px;border-radius:15px;background:#e9fff3;border:1px solid #c9f2dd;color:#149469;padding:4px 7px;font-weight:750;white-space:nowrap}
.source-dashboard .shelf-free{font-weight:900}
.source-dashboard .dashboard-shelf-head>a{font-size:11px;white-space:nowrap;color:#008862;font-weight:800}
.source-dashboard .dashboard-shelf-head>a:hover{text-decoration:underline}
.source-dashboard .dashboard-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.source-dashboard .dashboard-video-item{display:flex;flex-direction:column;min-width:0;border-radius:14px;border:1px solid #edf0f1;overflow:hidden;background:#fff;transition:transform .16s,border-color .16s;text-decoration:none}
.source-dashboard .dashboard-video-item:hover{transform:translateY(-3px);border-color:#a7dfcb}
.source-dashboard .dashboard-video-item:focus-visible{outline:3px solid #db4852;outline-offset:3px}
.source-dashboard .dashboard-video-cover{position:relative;min-height:108px;aspect-ratio:1.78;display:block;overflow:hidden;isolation:isolate;background:#fedda5}
.source-dashboard .dashboard-video-cover:before{content:"";position:absolute;inset:8% -15% -62% 15%;border-radius:50%;background:radial-gradient(ellipse at top,#fff4c280 0%,#f08d5944 55%,transparent 70%);z-index:-1}
.source-dashboard .dashboard-video-cover:after{content:"";position:absolute;bottom:-22px;left:-8%;width:120%;height:55px;background:#9d4d4d30;transform:rotate(-8deg);border-radius:55%}
.source-dashboard .cover-1{background:radial-gradient(circle at 80% 24%,#f9cb72,transparent 42%),linear-gradient(135deg,#bd7a47,#f6a66d 67%,#b96643)}
.source-dashboard .cover-2{background:radial-gradient(circle at 77% 24%,#fff4aa,transparent 35%),linear-gradient(135deg,#fac8a3,#ed9b7d 65%,#ffd2a9)}
.source-dashboard .cover-3{background:radial-gradient(circle at 75% 28%,#ffda70,transparent 39%),linear-gradient(135deg,#ac2d31,#e8844e 68%,#d0443b)}
.source-dashboard .cover-4{background:radial-gradient(circle at 76% 23%,#ffdaa0,transparent 38%),linear-gradient(135deg,#b78376,#efb28e 72%,#986f76)}
.source-dashboard .cover-5{background:radial-gradient(circle at 76% 32%,#f9ebc6,transparent 39%),linear-gradient(135deg,#9c7189,#e7b18e 72%,#ce8d78)}
.source-dashboard .cover-6{background:radial-gradient(circle at 78% 25%,#d6f8ad,transparent 38%),linear-gradient(135deg,#d0a366,#df8b54 70%,#a66658)}
.source-dashboard .dashboard-cover-level{position:absolute;z-index:2;top:8px;left:8px;color:#fff;font-size:9px;font-weight:800;text-shadow:0 1px 3px #572a2a80}
.source-dashboard .dashboard-cover-emoji{position:absolute;bottom:4px;left:9%;font-size:61px;line-height:1.1;filter:drop-shadow(4px 5px 3px #4d222246);transform:rotate(-9deg);z-index:2}
.source-dashboard .dashboard-cover-hanzi{position:absolute;right:8px;top:31%;max-width:58%;font:900 24px/1.2 "Microsoft YaHei","Noto Sans SC",sans-serif;color:#fff9e7;text-shadow:0 3px 2px #78353396,0 0 8px #a43b3999;text-align:right;z-index:2}
.source-dashboard .dashboard-cover-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:4;display:grid;place-items:center;border-radius:50%;width:32px;height:32px;background:#fff;color:#16936b;box-shadow:0 2px 7px #351c253b;font-size:13px;padding-left:2px}
.source-dashboard .dashboard-video-title{font-size:10.5px;color:#1e3045;font-weight:800;line-height:1.35;min-height:42px;padding:8px 8px 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.source-dashboard .dashboard-video-note{font-size:10px;line-height:1.5;color:#768398;margin:9px 2px 0}
.source-dashboard .dashboard-video-error{padding:15px;color:#b72b37;font-size:12px}
.source-dashboard .dashboard-daily-card{background:#fff}
.source-dashboard .dashboard-daily-card .right-card-heading{margin-bottom:13px}
.source-dashboard .dashboard-daily-card .challenge-row{padding:13px 0;border-bottom:1px solid #eceef3}
.source-dashboard .dashboard-daily-card .challenge-row:last-of-type{border-bottom:0}
.source-dashboard .dashboard-daily-card .challenge-row strong{font-size:12px}
.source-dashboard .dashboard-daily-card .challenge-row small{font-size:10px;color:#9aa3af}
.source-dashboard .dashboard-daily-card .checkmark{background:#fff2f3;color:#db3c47;border-radius:50%;width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center}
.source-dashboard .dashboard-daily-card .checkmark.done{color:#fff;background:#26ae81}
.source-dashboard .dashboard-daily-card .challenge-progress{font-size:11px;font-weight:800;color:#546277}
.source-dashboard .dashboard-daily-card>a.btn{border-radius:22px;background:#fff6f5;color:#bc2532;border:1px solid #f6ced2;box-shadow:none;justify-content:center}
.source-dashboard .dashboard-personal-card .right-card-heading>a{color:#c8202f;font-size:11px;font-weight:800}
.source-dashboard .dashboard-result-list{display:grid;gap:4px;margin-top:13px}
.source-dashboard .dashboard-result-row{display:flex;align-items:center;gap:10px;min-height:53px;border-bottom:1px solid #f0f1f5}
.source-dashboard .dashboard-result-row:last-child{border-bottom:none}
.source-dashboard .result-rank{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#f9ce59;color:#744a05;font-size:12px;font-weight:900;flex:0 0 25px}
.source-dashboard .dashboard-result-row:nth-child(2) .result-rank{background:#e9ebf0;color:#6c798a}
.source-dashboard .dashboard-result-row:nth-child(3) .result-rank{background:#f6d7b5;color:#9e6337}
.source-dashboard .result-avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#fff4e8;font-size:19px;flex:0 0 36px}
.source-dashboard .dashboard-result-row strong{font-size:11px;line-height:1.3;color:#24334d;min-width:0;flex:1}
.source-dashboard .dashboard-result-row b{font-size:12px;color:#bc2b34;font-variant-numeric:tabular-nums}
.source-dashboard .dashboard-results-note{font-size:10px;line-height:1.5;color:#758195;padding-top:10px;margin:0}
@media(max-width:1380px){.source-dashboard .shelf-feature{display:none}}
@media(max-width:1260px){.source-dashboard .dashboard-video-grid{gap:12px}.source-dashboard .dashboard-video-cover{min-height:122px}}
@media(max-width:700px){.source-dashboard .dashboard-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.source-dashboard .dashboard-video-cover{min-height:110px}.source-dashboard .dashboard-video-shelf{padding:12px}.source-dashboard .dashboard-shelf-head{align-items:flex-start}.source-dashboard .shelf-title h2{font-size:13px}.source-dashboard .dashboard-shelf-head>a{font-size:10px}.source-dashboard .dashboard-cover-hanzi{font-size:20px}}
@media(max-width:375px){.source-dashboard .dashboard-video-cover{min-height:85px}.source-dashboard .dashboard-cover-emoji{font-size:47px}.source-dashboard .dashboard-cover-hanzi{font-size:17px}.source-dashboard .shelf-free{display:none}}

/* v53: progress-driven challenges, reliable continue-learning navigation, original illustrated covers. */
.source-dashboard .dashboard-daily-card .right-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.source-dashboard .dashboard-daily-card .challenge-timer{color:#d22331;font-size:12px;font-weight:900;letter-spacing:.4px;font-variant-numeric:tabular-nums;white-space:nowrap}
.source-dashboard .dashboard-daily-card .daily-task-row{display:flex;flex-direction:row;align-items:center;gap:12px;padding:11px 1px;border-bottom:1px solid #eef0f3;min-height:65px;background:transparent;border-radius:7px;cursor:pointer}
.source-dashboard .dashboard-daily-card .daily-task-row:hover{background:#fff7f6}
.source-dashboard .dashboard-daily-card .daily-task-row:focus-visible{outline:2px solid #d22430;outline-offset:3px}
.source-dashboard .dashboard-daily-card .daily-task-row .checkmark{width:37px;height:37px;flex:0 0 37px;font-size:19px}
.source-dashboard .dashboard-daily-card .challenge-body{display:flex;flex:1;min-width:0;flex-direction:column;gap:7px}
.source-dashboard .dashboard-daily-card .challenge-line{display:flex;gap:8px;align-items:center;justify-content:space-between;min-width:0}
.source-dashboard .dashboard-daily-card .challenge-line strong{font-size:12px;color:#24324b;line-height:1.4;min-width:0}
.source-dashboard .dashboard-daily-card .challenge-line .challenge-progress{color:#657388;font-size:11px;font-weight:800;white-space:nowrap}
.source-dashboard .dashboard-daily-card .daily-task-progress{width:100%;height:7px;border-radius:99px;background:#eff0f3;display:block;overflow:hidden}
.source-dashboard .dashboard-daily-card .daily-task-progress i{display:block;height:100%;background:linear-gradient(90deg,#ec5961,#c91e2d);border-radius:inherit;transition:width .25s}
.source-dashboard .dashboard-daily-card .daily-task-row.completed .daily-task-progress i{background:#27b48a}
.source-dashboard .dashboard-daily-card .daily-task-row.completed .challenge-line strong{color:#28876c}
.source-dashboard .continue-card:focus-visible{outline:3px solid #d42d3e;outline-offset:3px}
.source-dashboard .continue-card .lesson-details>b{font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.source-dashboard .dashboard-video-cover .dashboard-cover-illustration{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:1}
.source-dashboard .dashboard-video-cover .dashboard-cover-illustration :is(circle,ellipse,path){pointer-events:none}
.source-dashboard .dashboard-video-cover .dashboard-cover-hanzi{z-index:2;top:24%;right:7px;font-size:18px;max-width:45%}
.source-dashboard .dashboard-video-cover .dashboard-cover-level{z-index:3}
.source-dashboard .dashboard-video-cover .dashboard-cover-play{z-index:4;width:30px;height:30px}
@media(max-width:700px){
 .source-dashboard .dashboard-video-cover .dashboard-cover-hanzi{font-size:16px}
 .source-dashboard .dashboard-daily-card .daily-task-row{min-height:61px}
}

/* v54: compact accessible recommendations beneath video — first-party routes only. */
.source-dashboard .dashboard-recommendations{min-width:0;padding:3px 0 7px}
.source-dashboard .dashboard-recommendations-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:13px}
.source-dashboard .dashboard-recommendations-head>div{display:flex;gap:9px;align-items:center;min-width:0}
.source-dashboard .dashboard-recommendations-head h2{color:#1c2a43;font-size:17px;font-weight:850;line-height:1.35;margin:0}
.source-dashboard .recommend-sparkle{display:grid;place-items:center;color:#d72d39;background:#fff0f2;width:37px;height:37px;border-radius:50%;font-size:23px;flex:0 0 37px}
.source-dashboard .dashboard-recommendations-head>a{color:#cd2430;font-size:11px;font-weight:800;white-space:nowrap}
.source-dashboard .dashboard-recommendations-head>a:hover{text-decoration:underline}
.source-dashboard .dashboard-recommendation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.source-dashboard .dashboard-recommendation-card{display:flex;flex-direction:column;min-width:0;gap:4px;overflow:hidden;position:relative;background:#fff;border:1px solid #e7e9ef;border-radius:17px;min-height:175px;padding:11px 10px;box-shadow:0 3px 0 #f1f2f5;transition:transform .16s,border-color .16s}
.source-dashboard .dashboard-recommendation-card:hover{transform:translateY(-3px);border-color:#f3b2b9}
.source-dashboard .dashboard-recommendation-card:focus-visible{outline:3px solid #c92535;outline-offset:3px}
.source-dashboard .recommend-illustration{width:43px;height:43px;flex:0 0 43px;border-radius:13px;background:#fff0ec;color:#c4433b;display:grid;place-items:center;font:850 26px/1 'Microsoft YaHei','Noto Sans SC',sans-serif;margin-bottom:4px}
.source-dashboard .recommend-grammar .recommend-illustration{background:#ecf6ff;color:#3a76ac}
.source-dashboard .recommend-listening .recommend-illustration{background:#effaf2;color:#289172}
.source-dashboard .recommend-speaking .recommend-illustration{background:#f5eeff;color:#835bb4}
.source-dashboard .recommend-tag{font-size:9px;font-weight:750;color:#c72d38;white-space:nowrap}
.source-dashboard .recommend-grammar .recommend-tag{color:#3476ae}
.source-dashboard .recommend-listening .recommend-tag{color:#2b8f69}
.source-dashboard .recommend-speaking .recommend-tag{color:#8660ae}
.source-dashboard .dashboard-recommendation-card strong{font-size:12px;line-height:1.35;color:#22324b;overflow-wrap:anywhere}
.source-dashboard .dashboard-recommendation-card small{font-size:10px;color:#778497;line-height:1.4;overflow-wrap:anywhere}
.source-dashboard .recommend-level{margin-top:auto;font-size:9px;color:#a42d37;font-weight:800;line-height:1.3}
@media(max-width:1380px){.source-dashboard .dashboard-recommendation-grid{gap:7px}.source-dashboard .dashboard-recommendation-card{padding:10px 8px}}
@media(max-width:660px){.source-dashboard .dashboard-recommendation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.source-dashboard .dashboard-recommendation-card{min-height:148px;padding:12px}.source-dashboard .recommend-illustration{width:39px;height:39px;flex-basis:39px;font-size:23px}.source-dashboard .dashboard-recommendations-head h2{font-size:15px}}

/* v55: verified archived daily vocabulary preview, no fictitious today's release */
.source-dashboard .dashboard-word-of-day{background:linear-gradient(115deg,#fffdfb 2%,#fff5ef 67%,#fff0ed 100%);border:1px solid #f3e2db;border-radius:21px;padding:14px 16px;display:flex;align-items:center;gap:18px;min-width:0;box-shadow:0 3px 0 #f6f2f0}
.source-dashboard .dashboard-word-label{display:flex;gap:9px;align-items:center;flex:0 0 132px}
.source-dashboard .word-day-icon{background:#fde4de;color:#c84134;border-radius:13px;display:grid;place-items:center;width:40px;height:40px;font:800 25px/1 'Microsoft YaHei','Noto Sans SC',sans-serif;flex:0 0 40px}
.source-dashboard .dashboard-word-label>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.source-dashboard .dashboard-word-label strong{color:#23334b;font-size:12px;line-height:1.3}
.source-dashboard .dashboard-word-label small{color:#8c7c7b;font-size:10px;line-height:1.4}
.source-dashboard #dashboard-daily-preview{min-width:0;flex:1}
.source-dashboard .dashboard-daily-word-inner{display:flex;align-items:center;gap:15px;min-width:0}
.source-dashboard .dashboard-word-glyph{font:850 36px/1.25 'Microsoft YaHei','Noto Sans SC',sans-serif;color:#bc2633;min-width:0;max-width:43%;overflow-wrap:anywhere}
.source-dashboard .dashboard-word-definition{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
.source-dashboard .dashboard-word-pinyin{font-size:12px;line-height:1.35;color:#bd4442;font-weight:700}
.source-dashboard .dashboard-word-definition strong{color:#2b3750;font-size:12px;line-height:1.4}
.source-dashboard .dashboard-word-definition small{color:#917c7c;font-size:9px;line-height:1.3}
.source-dashboard .dashboard-word-actions{display:flex;flex-direction:column;gap:6px;align-items:stretch;flex:0 0 126px}
.source-dashboard .dashboard-word-actions .btn{padding:7px 8px;font-size:10px;text-align:center;justify-content:center;border-radius:13px;min-height:31px}
.source-dashboard .dashboard-word-actions .btn:not(.outline){background:#ca2232;color:#fff;border:1px solid #ca2232}
.source-dashboard .dashboard-word-actions .btn.outline{color:#b52635;border:1px solid #efbec4;background:#fff}
.source-dashboard .dashboard-word-actions .btn:focus-visible{outline:3px solid #c92438;outline-offset:2px}
.source-dashboard .dashboard-word-loading{color:#857480;font-size:12px;line-height:1.5}
.source-dashboard .dashboard-word-loading>a{color:#c82b36;font-weight:800}
@media(max-width:1260px){.source-dashboard .dashboard-word-of-day{flex-direction:column;align-items:stretch;gap:9px}.source-dashboard .dashboard-word-label{flex-basis:auto}.source-dashboard .dashboard-word-actions{flex-direction:row;flex:0 1 auto}.source-dashboard .dashboard-word-actions .btn{flex:1}}
@media(max-width:480px){.source-dashboard .dashboard-word-of-day{padding:12px}.source-dashboard .dashboard-daily-word-inner{gap:9px;flex-wrap:wrap}.source-dashboard .dashboard-word-glyph{font-size:31px}.source-dashboard .dashboard-word-definition{flex-basis:calc(100% - 100px)}.source-dashboard .dashboard-word-actions{width:100%}.source-dashboard .dashboard-word-definition small{font-size:9px}}

/* v56: first-party keyboard-accessible navigation / lesson search. */
.topbar .quick-search-trigger{font:inherit;cursor:pointer;background:transparent;border:0;display:inline-grid;place-items:center;min-width:25px;min-height:28px;padding:0;color:inherit}
.topbar .quick-search-trigger:focus-visible{outline:2px solid #c52b38;outline-offset:3px;border-radius:8px}
.quick-search-dialog{position:fixed;inset:0 auto auto 50%;transform:translateX(-50%);width:min(580px,calc(100vw - 28px));max-width:none;max-height:min(76vh,680px);overflow:hidden;margin:9vh 0 0;padding:17px;border-radius:23px;border:1px solid #eee0e3;background:#fff;box-shadow:0 26px 90px #1a264757;color:#22324b}
.quick-search-dialog:not([open]){display:none}
.quick-search-dialog::backdrop{background:#1620359a;backdrop-filter:blur(5px)}
.quick-search-top{display:flex;align-items:center;gap:12px;padding:0 2px 14px}
.quick-search-icon{display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;border-radius:13px;background:#fff0f1;color:#c52b38;font-size:25px}
.quick-search-heading{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.quick-search-heading strong{font-size:17px;color:#1d2942;font-weight:850}
.quick-search-heading small{font-size:11px;color:#758093}
.quick-search-close{border:1px solid #e9e9ee;background:#fff;border-radius:10px;color:#6f7a8b;min-width:31px;min-height:31px;cursor:pointer}
.quick-search-close:hover{background:#fff2f3;color:#c52b38}
.quick-search-field{display:flex;align-items:center;gap:9px;border:1.5px solid #e9dbe0;border-radius:13px;padding:0 11px;background:#fff}
.quick-search-field:focus-within{border-color:#df7982;box-shadow:0 0 0 3px #fbe8eb}
.quick-search-field>span{font-size:23px;color:#b65b65}
.quick-search-field input{border:0;box-shadow:none!important;outline:none;background:transparent;min-width:0;flex:1;min-height:46px;width:100%;font-size:14px;color:#1e293b}
.quick-search-results{display:grid;gap:4px;max-height:min(50vh,430px);overflow:auto;overscroll-behavior:contain;margin:12px 0 0;padding:1px 1px 3px}
.quick-search-item{display:flex;gap:11px;align-items:center;min-width:0;min-height:56px;border-radius:12px;padding:9px 11px;text-decoration:none;border:1px solid transparent}
.quick-search-item:is(.selected,:hover,:focus-visible){background:#fff3f3;border-color:#f3d7db}
.quick-search-item:focus-visible{outline:2px solid #d52a37;outline-offset:1px}
.quick-search-item-symbol{display:grid;place-items:center;background:#f7f1f2;color:#b72535;border-radius:12px;flex:0 0 35px;width:35px;height:35px;font-weight:850;font-size:18px}
.quick-search-item-body{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.quick-search-item-body strong{color:#263750;font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.quick-search-item-body small{color:#8190a4;font-size:10px}
.quick-search-item-arrow{color:#cb2a3b;font-weight:800}
.quick-search-empty{font-size:12px;color:#6b7385;text-align:center;padding:19px 9px}
.quick-search-footer{margin:12px 2px 0;font-size:10px;color:#9097a6;border-top:1px solid #eff0f3;padding-top:10px}
@media(max-width:600px){.quick-search-dialog{margin-top:7vh;border-radius:18px;padding:13px;max-height:85vh}.quick-search-results{max-height:56vh}.quick-search-heading strong{font-size:15px}.quick-search-field input{font-size:13px}.quick-search-footer{font-size:9px}.quick-search-item{min-height:51px}}

/* v58 — optional BeeHoc-managed account backup (no HanBeeGo login). */
.account-card{display:grid;gap:13px;min-width:0}
.account-intro h3{margin:0 0 7px;font-size:17px;color:#243046}
.account-intro p{font-size:12px;line-height:1.65;margin:0}
.account-form{display:grid;gap:10px;max-width:460px}
.account-form h4{margin:4px 0;font-size:15px}
.account-form label,.account-danger label{display:grid;gap:5px;color:#405068;font-size:12px;font-weight:700}
.account-form input,.account-danger input{display:block;max-width:100%;width:100%;min-height:42px;border-radius:12px;border:1px solid #dce1e9;padding:8px 11px;color:#263246;background:#fff}
.account-form input:focus-visible,.account-danger input:focus-visible{outline:3px solid #efb8bd;outline-offset:1px}
.account-form button{justify-self:start}
.account-active{display:flex;flex-direction:column;gap:6px;padding:13px 14px;border:1px solid #dfe9e2;background:#f5faf7;border-radius:13px}
.account-active strong{color:#21664a;font-size:13px;overflow-wrap:anywhere}
.account-active small{color:#536a60;font-size:11px}
.account-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.account-action-grid .btn{font-size:11px;min-height:43px;white-space:normal}
.account-register,.account-danger{border-top:1px solid #eaedf1;padding-top:11px}
.account-register summary,.account-danger summary{cursor:pointer;color:#b52f3a;font-size:12px;font-weight:800}
.account-register .account-form{margin-top:12px}
.account-danger{margin-top:7px}.account-danger p{font-size:11px;color:#7e8795}
.account-danger form{display:grid;gap:11px;max-width:460px}
.account-message{font-size:11px;line-height:1.5;color:#ac3844;white-space:pre-wrap;margin:0}
@media(max-width:620px){.account-action-grid{grid-template-columns:1fr}.account-form{width:100%}.account-active{padding:12px}}

/* v60 — verified public video information and direct YouTube thumbnail previews.
   Video/caption media is not mirrored; the original vector remains as fallback. */
.source-dashboard .dashboard-video-shelf{padding:16px 15px 13px;border-radius:23px;border-color:#e1e5e8;box-shadow:0 4px 0 #e6e8ea}
.source-dashboard .dashboard-shelf-head{margin-bottom:12px}
.source-dashboard .dashboard-video-grid{gap:8px}
.source-dashboard .dashboard-video-item{border-radius:12px;border-color:#ecedf1;box-shadow:none}
.source-dashboard .dashboard-video-cover{aspect-ratio:16/9;min-height:0;background:#b88062}
.source-dashboard .dashboard-video-cover .dashboard-cover-illustration{z-index:0}
.source-dashboard .dashboard-video-cover .dashboard-source-thumbnail{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;object-fit:cover;color:transparent}
.source-dashboard .dashboard-video-cover:before{z-index:1;pointer-events:none}
.source-dashboard .dashboard-video-cover:after{z-index:2;left:0;bottom:0;transform:none;width:100%;height:48%;border-radius:0;background:linear-gradient(180deg,transparent 0%,#161b2a91 100%);pointer-events:none}
.source-dashboard .dashboard-video-cover .dashboard-cover-level{z-index:3;top:7px;left:7px;max-width:94%;font-size:9px;line-height:1.25;color:#fff;font-weight:850;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:0 1px 4px #000a}
.source-dashboard .dashboard-video-cover .dashboard-cover-play{z-index:4;width:31px;height:31px;font-size:13px;background:#fff;color:#08a775;box-shadow:0 3px 12px #0005}
.source-dashboard .dashboard-video-title{background:#fff;font-size:10px;color:#18273c;font-weight:800;line-height:1.4;padding:8px 8px 9px;min-height:43px}
.source-dashboard .dashboard-video-note{font-size:9px;color:#6b7889;margin:9px 2px 0}
#app:has(#video-zone) .video-tile-art{position:relative;overflow:hidden;aspect-ratio:16/9;min-height:0;background:linear-gradient(135deg,#f6dcba,#d18e7e)}
#app:has(#video-zone) .video-tile-art .video-source-thumbnail{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;color:transparent}
#app:has(#video-zone) .video-tile-art>span{position:relative;z-index:2;width:40px;height:40px;flex:0 0 40px;color:#08a575;background:#fff;box-shadow:0 3px 12px #0004}
#app:has(#video-zone) .video-tile-art>small{position:absolute;z-index:2;left:8px;top:8px;letter-spacing:0;font-size:10px;color:white;background:#222a3d9c;border-radius:10px;padding:4px 8px}
#app:has(#video-zone) .video-tile-body{padding:14px;gap:8px}
#app:has(#video-zone) .video-tile-body h3{font-size:13px;min-height:0;line-height:1.5}
#app:has(#video-zone) .video-tile-body>small{font-size:10px;line-height:1.5}
@media(max-width:680px){.source-dashboard .dashboard-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.source-dashboard .dashboard-video-title{font-size:10px}}
@media(max-width:360px){.source-dashboard .dashboard-video-grid{grid-template-columns:1fr}.source-dashboard .dashboard-video-cover{min-height:0}}

/* v61 — desktop dashboard parity: right-rail order, compact challenge, and video region navigation.
 * Do not present local achievements as a multi-user leaderboard. */
@media(min-width:991px){
 .announcement{display:none}
 .sidebar{height:100vh}
}
.announcement[hidden]{display:none!important}
.source-dashboard .dashboard-jump-video{display:inline-flex;align-items:center;gap:6px;margin-left:9px;background:transparent;border:0;color:#ae2b35;font-size:11px;font-weight:850;cursor:pointer;padding:12px 5px;vertical-align:middle;text-align:left}
.source-dashboard .dashboard-jump-video:hover{text-decoration:underline}
.source-dashboard .dashboard-jump-video:focus-visible{outline:2px solid #ca2a37;outline-offset:2px;border-radius:8px}
.source-dashboard #dashboard-video-shelf{scroll-margin-top:102px}
.source-dashboard .dashboard-side{align-content:start}
.source-dashboard .dashboard-daily-card{padding:15px 17px 13px;border-radius:22px}
.source-dashboard .dashboard-daily-card .right-card-heading{margin-bottom:7px}
.source-dashboard .dashboard-daily-card .right-card-heading h2{font-size:17px}
.source-dashboard .dashboard-daily-card .challenge-row{padding:8px 0;min-height:57px;gap:9px}
.source-dashboard .dashboard-daily-card .checkmark{width:34px;height:34px;flex-basis:34px}
.source-dashboard .dashboard-daily-card>a.btn{margin-top:9px!important;min-height:36px;padding:9px 12px}
.source-dashboard .dashboard-personal-card{padding:17px 17px 14px;border-radius:22px}
.source-dashboard .dashboard-personal-card .right-card-heading h2{font-size:17px}
.source-dashboard .dashboard-personal-card .dashboard-result-list{margin-top:10px}
.source-dashboard .dashboard-personal-card .dashboard-result-row{min-height:53px}
.source-dashboard .dashboard-personal-card .dashboard-results-note{font-size:10px;line-height:1.5;color:#7a8494;margin:8px 0 0}
@media(max-width:620px){.source-dashboard .dashboard-jump-video{margin-left:0;display:flex;min-height:38px}.source-dashboard #dashboard-video-shelf{scroll-margin-top:80px}}

/* Keep the right study rail visible when comparing deeper dashboard content, as in desktop reference captures. */
@media(min-width:1261px) and (min-height:560px){
 .dashboard-grid.source-dashboard{align-items:start}
 .source-dashboard .dashboard-side{position:sticky;top:96px;max-height:calc(100dvh - 108px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:9px}
 .source-dashboard .dashboard-side::-webkit-scrollbar{width:5px}
 .source-dashboard .dashboard-side::-webkit-scrollbar-thumb{background:#dfe3ea;border-radius:9px}
}
@media(max-width:1260px){.source-dashboard .dashboard-side{position:static;max-height:none;overflow:visible}}

/* v62 — privacy-enhanced, click-to-load public YouTube player; media not mirrored. */
.source-dashboard button.dashboard-video-item{appearance:none;display:block;width:100%;padding:0;margin:0;text-align:left;font:inherit;color:inherit;cursor:pointer;background:#fff;border:1px solid #ecedf1;border-radius:12px;overflow:hidden;box-shadow:none}
.source-dashboard button.dashboard-video-item:is(:hover,:focus-visible){outline:2px solid #d3293c;outline-offset:2px}
#video-zone .video-tile-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
#video-zone .video-tile-actions .btn{white-space:nowrap;min-height:33px;font-size:10px;padding:7px 9px}
.beehoc-video-player{width:min(940px,calc(100vw - 28px));max-width:none;max-height:min(96dvh,900px);margin:auto;padding:20px;border:1px solid #dfe2e8;border-radius:22px;background:#fff;color:#273349;box-shadow:0 30px 90px #0e173f72;overflow-y:auto}
.beehoc-video-player:not([open]){display:none}
.beehoc-video-player::backdrop{background:#0b1221c7;backdrop-filter:blur(6px)}
.beehoc-player-heading{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}
.beehoc-player-heading>div{min-width:0;flex:1}
.beehoc-player-kicker{font-size:10px;font-weight:850;letter-spacing:.6px;color:#c82f3f}
.beehoc-player-heading h2{font-size:20px;color:#17273c;font-weight:830;line-height:1.4;margin:6px 0}
.beehoc-player-heading p{font-size:12px;color:#617085;margin:0}
.beehoc-player-close{display:grid;place-items:center;flex:0 0 36px;border:1px solid #e4e6ed;border-radius:12px;width:36px;height:36px;background:#fff;color:#586377;font-size:16px;cursor:pointer}
.beehoc-player-close:is(:hover,:focus-visible){color:#bb2435;background:#fff2f3;outline:2px solid #e9a2a9}
.beehoc-player-stage{width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:14px;background:#142033;display:grid;place-items:center}
.beehoc-player-iframe{display:block;width:100%;height:100%;border:0;background:#142033}
.beehoc-player-notice{margin:14px 0 10px;font-size:11px;color:#707b8a;line-height:1.6}
.beehoc-player-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.beehoc-player-actions a{display:inline-flex;padding:9px 13px;border:1px solid #f0d5d8;color:#b82e3a;border-radius:12px;background:#fff6f6;font-size:12px;text-decoration:none;font-weight:780}
.beehoc-player-actions a:is(:hover,:focus-visible){outline:2px solid #c72e3c;outline-offset:2px}
@media(max-width:620px){.beehoc-video-player{width:calc(100vw - 14px);padding:10px;border-radius:13px}.beehoc-player-heading h2{font-size:15px}.beehoc-player-notice{font-size:10px}.beehoc-player-actions a{font-size:10px;padding:9px}.beehoc-player-stage{border-radius:8px}}

/* v63 — source-linked video learning controls. Completion is self-reported, never XP awarded. */
#video-zone .video-tile-actions .video-watched-button[aria-pressed="true"],
.beehoc-player-actions #beehoc-player-watched[aria-pressed="true"]{background:#eaf9f1;border-color:#b0e0ca;color:#18784d}
.video-study-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:13px 0 16px;padding:12px 14px;background:#fafbfd;border:1px solid #e9edf1;border-radius:15px}
.video-study-filters label{display:grid;gap:5px;flex:1 1 160px;min-width:0;color:#566174;font-size:11px;font-weight:800}
.video-study-filters select{display:block;width:100%;min-width:0;min-height:39px;padding:8px 12px;border:1px solid #dae1e8;border-radius:11px;background:#fff;color:#27384b;font-size:12px}
.video-study-filters select:focus-visible{outline:2px solid #d83a45;outline-offset:2px}
#video-zone .video-tile-actions .video-watched-button{font-size:10px;min-height:33px}
.beehoc-player-actions #beehoc-player-watched{min-height:38px;padding:9px 13px;border:1px solid #a2d1b7;border-radius:12px;background:#f2fcf6;color:#1d764f;font-size:12px;font-weight:780;cursor:pointer}
.beehoc-player-actions #beehoc-player-watched:focus-visible{outline:2px solid #13865b;outline-offset:2px}
@media(max-width:620px){.video-study-filters{padding:10px;gap:8px}.video-study-filters label{flex-basis:calc(50% - 8px);font-size:10px}.video-study-filters select{font-size:11px;min-height:39px}.beehoc-player-actions #beehoc-player-watched{font-size:11px;min-height:37px}}

/* v64 — independent opt-in server-verified weekly check-in board; no fabricated ranks. */
.source-dashboard .dashboard-community-card{border-radius:22px;padding:17px 17px 14px;min-width:0}
.dashboard-community-card .right-card-heading{margin-bottom:8px}
.dashboard-community-card .right-card-heading h2{font-size:17px;line-height:1.4}
.dashboard-community-card .right-card-heading small{font-size:10px;color:#c22b3a;white-space:nowrap}
.community-description{font-size:10px;line-height:1.6;color:#718094;margin:6px 0}
.community-week{font-size:10px;color:#587086;font-weight:700;margin:8px 0 10px}
.community-rank-list{list-style:none;padding:0;margin:0;display:grid;gap:7px}
.community-rank-row{display:flex;align-items:center;gap:8px;min-width:0;padding:7px 4px;border-bottom:1px solid #eef1f5}
.community-rank-number{flex:0 0 25px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#eef1f5;color:#788293;font-size:12px;font-weight:900}
.community-rank-row:nth-child(1) .community-rank-number{background:#ffcb48;color:#684916}
.community-rank-row:nth-child(2) .community-rank-number{background:#dde2e9;color:#535c69}
.community-rank-row:nth-child(3) .community-rank-number{background:#efba8d;color:#754719}
.community-rank-avatar{display:grid;place-items:center;flex:0 0 33px;width:33px;height:33px;border-radius:50%;background:#cb3441;color:white;font-weight:850;font-size:15px}
.community-rank-name{flex:1;min-width:0;overflow-wrap:anywhere;font-size:12px;color:#28394e}
.community-rank-name small{display:block;font-size:10px;color:#7d8b9b;font-weight:500;margin-top:1px}
.community-rank-row b{color:#263a53;font-size:12px;white-space:nowrap}
.community-empty{padding:15px 8px;margin:8px 0 4px;text-align:center;color:#8390a1;font-size:12px;border:1px dashed #d7dfe8;border-radius:14px}
.community-self{display:grid;gap:10px;padding:12px 10px;margin:12px 0 4px;background:#fff4f5;border:1px solid #f0d1d4;border-radius:12px;color:#9b2737;font-size:12px}
.community-self .btn{white-space:normal;line-height:1.4;min-height:37px}
.community-leave{border:0;background:transparent;padding:10px 0 2px;color:#778398;font-size:11px;text-align:left;cursor:pointer;text-decoration:underline}
.community-optin-note{font-size:11px;color:#6d7c8c}
.community-login-link{display:inline-flex;margin-top:9px}
.community-notice{color:#2c7851;font-size:10px;line-height:1.5;margin:8px 0 0}
.community-rank-row:focus-within{outline:2px solid #cf3343}
@media(max-width:620px){.source-dashboard .dashboard-community-card{padding:14px}.community-rank-row{gap:7px}.community-rank-name{font-size:11px}}

/* v65 — server-graded three-question daily HSK challenge; not user-imported XP. */
.community-practice{margin:12px 0 5px;padding:12px 11px;background:#f9fbff;border:1px solid #dce5f5;border-radius:14px;color:#273c58}
.community-practice>strong{display:block;font-size:12px;font-weight:900}
.community-practice>small{display:block;margin-top:4px;color:#78879b;font-size:10px;line-height:1.5}
.community-practice-hanzi{margin:12px 0 5px;font-size:19px;line-height:1.5;text-align:center;font-weight:850;color:#c22337}
.community-practice-prompt{text-align:center;color:#526379;font-size:10px;font-weight:700}
.community-practice-choices{display:grid;gap:6px}
.community-practice-choices button{display:block;width:100%;padding:9px;text-align:left;background:#fff;color:#26374a;border:1px solid #dde3ee;border-radius:10px;font-size:11px;cursor:pointer;min-height:36px}
.community-practice-choices button:is(:hover,:focus-visible){border-color:#c42d40;outline:2px solid #f2cbd0;outline-offset:1px}
.community-practice-choices button:disabled{opacity:.6;cursor:wait}
.community-practice-done{font-size:11px;color:#16764d}
.community-practice-note{font-size:11px;color:#728096}


/* v74 — Original BeeHọc SVG assets and responsive, reference-aligned learning dashboard.
   Media fetched from YouTube still uses the public source; all local posters are our own work. */
.identity-icon{background:none!important;box-shadow:none!important;border-radius:50%!important;overflow:hidden;flex:0 0 44px;width:44px;height:44px}
.identity-icon img{width:100%;height:100%;object-fit:contain;display:block}
.nav-ico{color:#d73543}
.nav-svg{display:block;width:17px;height:17px;stroke:currentColor;fill:none;flex-shrink:0}
.topbar .nav-svg{width:18px;height:18px}
.nav-group a.active .nav-ico,.nav-group a:is(:hover,:focus-visible) .nav-ico{color:#c52b3e}
.topbar .header-icon:has(.nav-svg){display:inline-flex;align-items:center;justify-content:center}
.topbar .header-icon:has(.nav-svg) .nav-svg{width:17px;height:17px}
.topbar .header-icon:focus-visible,.nav-group a:focus-visible{outline:2px solid #c82f3d;outline-offset:2px}
.source-dashboard .hero-art{min-width:220px;min-height:185px;display:flex;align-items:center;justify-content:center;position:relative}
.source-dashboard .hero-study-image{width:min(100%,360px);max-height:248px;display:block;position:relative;z-index:2;object-fit:contain;filter:drop-shadow(0 8px 12px #c9808a29)}
.source-dashboard .hero-art>*:not(.hero-study-image){display:none!important}
.source-dashboard .dashboard-video-shelf{margin-top:0}
.source-dashboard .dashboard-video-grid{gap:10px}
.source-dashboard .dashboard-video-cover .dashboard-local-poster{position:absolute;inset:0;z-index:0;width:100%;height:100%;display:block;object-fit:cover}
.source-dashboard .dashboard-video-cover .dashboard-cover-illustration{display:none}
.source-dashboard .dashboard-video-cover .dashboard-source-thumbnail{background:transparent}
.source-dashboard .dashboard-video-item{transition:transform .16s ease,box-shadow .16s ease}
.source-dashboard .dashboard-video-item:is(:hover,:focus-visible){transform:translateY(-2px);box-shadow:0 7px 17px #17243a15}
.source-dashboard .dashboard-shelf-head{column-gap:10px}
.source-dashboard .shelf-feature{white-space:nowrap}
.source-dashboard .dashboard-cover-level{letter-spacing:.1px}
.source-dashboard .dashboard-video-title{min-height:35px}
@media (max-width:1120px){.source-dashboard .hero-study-image{max-height:195px}.source-dashboard .hero-art{min-width:170px}}
@media (max-width:700px){.source-dashboard .hero-art{min-width:120px;min-height:100px}.source-dashboard .hero-study-image{max-height:150px}.source-dashboard .dashboard-shelf-head .shelf-feature:nth-of-type(n+3){display:none}}
@media (max-width:420px){.source-dashboard .hero-art{min-width:105px}.source-dashboard .hero-study-image{max-height:110px}.source-dashboard .dashboard-video-title{font-size:11px}.source-dashboard .dashboard-video-cover .dashboard-cover-level{font-size:8px}}
@media (prefers-reduced-motion:reduce){.source-dashboard .dashboard-video-item{transition:none}.source-dashboard .dashboard-video-item:is(:hover,:focus-visible){transform:none}}

/* v76 — keyboard and screen-reader friendly Courses expand/collapse toggle. */
.sidebar .nav-hierarchy .nav-parent-row{display:flex;align-items:center;gap:2px;width:100%;min-width:0}
.sidebar .nav-hierarchy .nav-parent-row a.nav-parent{margin-bottom:0;flex:1;min-width:0;padding-right:4px}
.sidebar .nav-hierarchy .nav-children{display:grid;gap:0;min-width:0}
.sidebar .nav-hierarchy .nav-children[hidden]{display:none!important}
.sidebar .nav-hierarchy .nav-collapse-control{display:inline-grid;place-items:center;flex:0 0 31px;width:31px;height:33px;margin:0 2px 3px 0;padding:0;border:0;background:transparent;border-radius:10px;color:#8191a4;cursor:pointer}
.sidebar .nav-hierarchy .nav-collapse-control:hover{background:#fff0f1;color:#be2231}
.sidebar .nav-hierarchy .nav-collapse-control:focus-visible{outline:2px solid #be2231;outline-offset:2px}
.sidebar .nav-hierarchy .nav-collapse-control span{display:block;font-size:20px;line-height:1;transform-origin:center;transition:transform .16s ease}
.sidebar .nav-hierarchy .nav-collapse-control[aria-expanded="false"] span{transform:rotate(-90deg)}
@media (prefers-reduced-motion:reduce){.sidebar .nav-hierarchy .nav-collapse-control span{transition:none}}

/* v77 — accessible opt-in dark interface; default remains reference light theme. */
#theme-toggle{display:inline-grid;place-items:center;width:30px;height:32px;flex-shrink:0;border:0;background:transparent;color:#738096;border-radius:9px;padding:5px;cursor:pointer}
#theme-toggle:hover{color:#bd2839;background:#fff0f2}
#theme-toggle:focus-visible{outline:2px solid #d52c3e;outline-offset:2px}
#theme-toggle svg{display:block;width:19px;height:19px}
#theme-toggle .theme-icon-moon{display:none}
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] #theme-toggle .theme-icon-sun{display:none}
html[data-theme="dark"] #theme-toggle .theme-icon-moon{display:block}
html[data-theme="dark"] body,html[data-theme="dark"] .workspace{background:#101827!important;color:#eaf0fa!important}
html[data-theme="dark"] .announcement,html[data-theme="dark"] .sidebar,html[data-theme="dark"] .topbar,html[data-theme="dark"] .site-footer{background:#172235!important;color:#eaf0fa!important;border-color:#304059!important}
html[data-theme="dark"] .announcement a,html[data-theme="dark"] .site-footer a,html[data-theme="dark"] .subheading a,html[data-theme="dark"] .right-card-heading a{color:#ff8b96!important}
html[data-theme="dark"] .sidebar .identity strong,html[data-theme="dark"] .sidebar .nav-group a,html[data-theme="dark"] .user-label b,html[data-theme="dark"] .topbar b,html[data-theme="dark"] .crumb-label b{color:#eaf0fa!important}
html[data-theme="dark"] .sidebar .nav-group a:hover,html[data-theme="dark"] .sidebar .nav-group a.active{background:#402536!important;color:#ffbac2!important}
html[data-theme="dark"] .sidebar .nav-group a.nav-child,html[data-theme="dark"] .sidebar .identity small,html[data-theme="dark"] .sidebar .sidebar-caption,html[data-theme="dark"] .sidebar .sidebar-foot,html[data-theme="dark"] .topbar .date-pill,html[data-theme="dark"] .user-label small,html[data-theme="dark"] .crumb-label{color:#b0bfd4!important}
html[data-theme="dark"] .sidebar .sidebar-bottom{background:#2b273c!important;border:1px solid #5a4056!important}
html[data-theme="dark"] .sidebar .sidebar-bottom strong,html[data-theme="dark"] .sidebar .sidebar-start{color:#ffaab6!important}
html[data-theme="dark"] .sidebar .sidebar-bottom p{color:#bec9d9!important}
html[data-theme="dark"] .top-hsk,html[data-theme="dark"] .top-metric,html[data-theme="dark"] .top-streak,html[data-theme="dark"] .avatar{background:#28334a!important;border-color:#3d4961!important;color:#ebf1fb!important}
html[data-theme="dark"] .topbar .header-icon,html[data-theme="dark"] #theme-toggle{color:#d7e0ee}
html[data-theme="dark"] #theme-toggle:hover,html[data-theme="dark"] .sidebar .nav-hierarchy .nav-collapse-control:hover{background:#352e44;color:#ffbac2}
html[data-theme="dark"] .main-content h1,html[data-theme="dark"] .main-content h2,html[data-theme="dark"] .main-content h3,html[data-theme="dark"] .main-content h4,html[data-theme="dark"] .main-content .right-card-heading h2{color:#f2f5ff!important}
html[data-theme="dark"] .main-content p,html[data-theme="dark"] .main-content small,html[data-theme="dark"] .main-content label,html[data-theme="dark"] .main-content .muted{color:#b5c3d7}
html[data-theme="dark"] .card,html[data-theme="dark"] .stat-card,html[data-theme="dark"] .hsk-card,html[data-theme="dark"] .lesson-tile,html[data-theme="dark"] .unit-card,html[data-theme="dark"] .word-card,html[data-theme="dark"] .video-tile,html[data-theme="dark"] .dashboard-action-card,html[data-theme="dark"] .dashboard-recommendation-card,html[data-theme="dark"] .dashboard-word-of-day,html[data-theme="dark"] .dashboard-video-shelf,html[data-theme="dark"] .dashboard-video-item,html[data-theme="dark"] .source-dashboard .card{background:#1c293e!important;border-color:#37475e!important;color:#edf2fa!important;box-shadow:none!important}
html[data-theme="dark"] .source-dashboard .hero{background:linear-gradient(110deg,#323046,#262b46 70%,#432d42)!important;border-color:#504257!important}
html[data-theme="dark"] .source-dashboard .hero h1,html[data-theme="dark"] .source-dashboard .hero h1 em{color:#fff0ef!important}
html[data-theme="dark"] .source-dashboard .hero p{color:#e6d5da!important}
html[data-theme="dark"] .dashboard-action-card b,html[data-theme="dark"] .dashboard-action-card strong,html[data-theme="dark"] .dashboard-video-title,html[data-theme="dark"] .dashboard-recommendation-card strong,html[data-theme="dark"] .word-card .hanzi,html[data-theme="dark"] .video-tile-body h3{color:#f2f5ff!important}
html[data-theme="dark"] .dashboard-word-glyph,html[data-theme="dark"] .source-dashboard .dashboard-word-glyph{color:#ff96a7!important}
html[data-theme="dark"] .source-dashboard .dashboard-word-pinyin,html[data-theme="dark"] .source-dashboard .dashboard-word-definition strong{color:#ffb4b9!important}
html[data-theme="dark"] .source-dashboard .daily-task-row,html[data-theme="dark"] .source-dashboard .challenge-row,html[data-theme="dark"] .community-rank-row{border-color:#384860!important}
html[data-theme="dark"] .progress-summary,html[data-theme="dark"] .study-alert,html[data-theme="dark"] .notice,html[data-theme="dark"] .source-dashboard .notice,html[data-theme="dark"] .community-practice,html[data-theme="dark"] .exam-plan-card{background:#2c2b42!important;border-color:#514057!important;color:#f0d9e2!important}
html[data-theme="dark"] .dashboard-word-of-day small,html[data-theme="dark"] .dashboard-word-of-day strong,html[data-theme="dark"] .dashboard-video-shelf h2,html[data-theme="dark"] .dashboard-recommendations h2,html[data-theme="dark"] .dashboard-community-card strong,html[data-theme="dark"] .dashboard-personal-card strong,html[data-theme="dark"] .community-rank-row b{color:#f0f4fc!important}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .toolbar,html[data-theme="dark"] .video-study-filters,html[data-theme="dark"] .quick-search-dialog,html[data-theme="dark"] .quick-search-field,html[data-theme="dark"] .beehoc-video-player{background:#202e44!important;border-color:#43536b!important;color:#edf3fb!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#aebed2!important}
html[data-theme="dark"] .quick-search-item,html[data-theme="dark"] .quick-search-item strong,html[data-theme="dark"] .quick-search-heading strong,html[data-theme="dark"] .quick-search-dialog h2,html[data-theme="dark"] .beehoc-player-heading h2{color:#edf3fb!important}
html[data-theme="dark"] .quick-search-item:is(:hover,:focus-visible,.selected),html[data-theme="dark"] .community-practice-choices button{background:#30374e!important;color:#f6f8ff!important}
html[data-theme="dark"] .btn.outline,html[data-theme="dark"] .btn.muted-btn,html[data-theme="dark"] .icon-button,html[data-theme="dark"] .checkin-button{background:#30374e!important;border-color:#566078!important;color:#f6f8ff!important}
html[data-theme="dark"] .source-dashboard .day-mark{background:#27364e;color:#d5e1f2;border-color:#45516a}
html[data-theme="dark"] .source-dashboard .day-mark.done{background:#cf4757;color:#fff;border-color:#cf4757}
html[data-theme="dark"] .dashboard-video-cover,html[data-theme="dark"] .video-tile-art{background:#483246}
@media (max-width:700px){#theme-toggle{width:28px;height:30px;padding:4px}}
@media (prefers-reduced-motion:reduce){#theme-toggle{transition:none}}

/* v78: touch-first phone/tablet layout. Static origin and account storage unchanged. */
.mobile-nav-backdrop[hidden]{display:none!important}
@media(max-width:990px){
 .mobile-nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:48;background:rgba(17,27,43,.56);border:0;width:100%;height:100dvh;cursor:pointer;touch-action:manipulation}
 .sidebar{position:fixed;top:0;bottom:0;left:-320px;width:min(84vw,300px);max-width:300px;max-height:100dvh;height:100dvh!important;z-index:49;overflow-y:auto;overscroll-behavior:contain;box-shadow:12px 0 32px #0a152c26;padding-bottom:calc(26px + env(safe-area-inset-bottom,0px))}
 .sidebar.open{left:0}
 body.mobile-nav-open{overflow:hidden;touch-action:pan-y}
 .mobile-menu{display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin-right:3px;border-radius:12px;cursor:pointer;touch-action:manipulation}
 .mobile-menu:focus-visible{outline:3px solid #d83f51;outline-offset:2px}
 .sidebar .nav-group a{min-height:43px}
 .sidebar .nav-hierarchy .nav-children a.nav-child{min-height:39px;display:flex;align-items:center}
 .sidebar .nav-hierarchy .nav-child:before{top:50%!important}
 .sidebar .nav-collapse-control{width:44px!important;height:44px!important;flex-basis:44px!important;min-height:44px!important}
 .topbar{min-width:0;gap:5px}
 .top-left{flex:1 1 auto;min-width:0;overflow:hidden;gap:0}
 .top-right{flex:0 0 auto;min-width:0;gap:4px}
}
@media(max-width:700px){
 .topbar{height:60px;padding:0 10px!important;gap:2px}
 .top-left{gap:0}
 .top-hsk{flex:0 0 auto;min-height:34px!important;padding:7px 8px!important;font-size:11px!important;gap:3px!important}
 .top-left .top-metric{flex:0 0 auto;min-height:34px!important;padding:7px 6px!important;font-size:10px!important;gap:3px!important}
 .top-left .top-metric:nth-of-type(n+3){display:none!important}
 .top-right{gap:2px!important}
 .top-right .header-icon{display:none}
 .top-right .header-icon.quick-search-trigger,.top-right #theme-toggle,.top-right .header-icon[href="#progress"]{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 38px;width:38px;min-width:38px;height:44px;min-height:44px;padding:8px!important;border-radius:12px}
 .top-right .header-icon.quick-search-trigger:focus-visible,.top-right #theme-toggle:focus-visible,.top-right .header-icon[href="#progress"]:focus-visible{outline:2px solid #c92839;outline-offset:0}
 .top-right .header-icon .nav-svg{width:18px;height:18px}
 .top-right .user-label,.top-right .date-pill{display:none}
 .top-right .avatar{height:32px;width:32px;flex:0 0 32px;font-size:10px}
 .main-content{padding:14px 12px calc(44px + env(safe-area-inset-bottom,0px));min-width:0}
 .main-content>*{min-width:0;max-width:100%}
 .page-heading{gap:10px;flex-wrap:wrap}
 .page-heading h1{font-size:clamp(21px,6vw,27px);line-height:1.26;overflow-wrap:anywhere}
 .source-dashboard .col-stack{gap:14px}
 .source-dashboard .hero{min-height:218px;padding:20px 16px;border-radius:18px}
 .source-dashboard .hero h1{font-size:clamp(23px,6.6vw,28px)}
 .source-dashboard .hero .btn.dark{min-height:44px}
 .source-dashboard .dashboard-action-row{gap:10px}
 .source-dashboard .dashboard-action-card{min-height:0;padding:15px;border-radius:17px;gap:13px}
 .source-dashboard .dashboard-action-card>.dashboard-action-header{min-height:35px}
 .source-dashboard .dashboard-action-card>.continue-lesson{gap:10px}
 .source-dashboard .dashboard-video-shelf{border-radius:17px}
 .source-dashboard .dashboard-shelf-head{display:flex;align-items:flex-start;flex-wrap:wrap;gap:9px}
 .source-dashboard .dashboard-video-grid{gap:9px}
 .source-dashboard .dashboard-video-item{min-width:0;overflow:hidden}
 .source-dashboard .dashboard-video-title{font-size:12px!important;line-height:1.35;overflow-wrap:anywhere;padding:7px}
 .source-dashboard .dashboard-cover-level{max-width:95%;overflow:hidden;text-overflow:ellipsis}
 .source-dashboard .dashboard-side{gap:12px}
 .source-dashboard .source-card,.source-dashboard .card{min-width:0}
 .quick-search-dialog{width:calc(100vw - 20px);max-width:540px;margin-top:5vh;max-height:86dvh}
 input:not([type="checkbox"]):not([type="radio"]),textarea,select{font-size:16px}
 .video-study-filters select{font-size:16px}
 .video-study-filters label{min-width:0}
 .game-controls{flex-wrap:wrap}
 .game-controls>*{min-height:44px}
 .course-line,.reading-sentence,.story-line{min-width:0}
 .dashboard-video-cover{height:auto}
 .site-footer{padding:17px 15px calc(26px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:430px){
 .announcement{padding:4px 9px}
 .announcement-actions>a{display:none}
 .top-left .top-metric:nth-of-type(n+2){display:none!important}
 .top-hsk{padding:6px 8px!important}
 .top-right .header-icon[href="#progress"]{display:none!important}
 .source-dashboard .hero{min-height:205px}
 .source-dashboard .hero p{font-size:12px}
 .source-dashboard .dashboard-action-card>.continue-lesson .lesson-mascot{flex:0 0 60px;width:60px;height:63px;font-size:38px}
 .source-dashboard .dashboard-stats-quad>span{min-width:0;padding:7px}
 .source-dashboard .dashboard-stats-quad b{font-size:17px}
}
@media(max-width:350px){
 .topbar{padding:0 5px!important}
 .mobile-menu{flex-basis:42px;width:42px;margin-right:0}
 .top-right .header-icon.quick-search-trigger,.top-right #theme-toggle{flex-basis:40px;width:40px}
 .top-right .avatar{display:none}
 .source-dashboard .dashboard-video-grid{grid-template-columns:1fr}
 .source-dashboard .dashboard-video-title{font-size:13px!important}
}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}

/* v78: prevent long video settings labels from imposing a 399px layout viewport on 320px devices. */
@media(max-width:700px){
 #video-zone .toolbar{min-width:0;max-width:100%;flex-wrap:wrap;gap:10px}
 #video-zone .video-toggle,.toolbar .video-toggle{min-width:0;max-width:100%;width:100%;white-space:normal;overflow-wrap:anywhere;align-items:flex-start;line-height:1.45;gap:8px}
 #video-zone .video-toggle input,.toolbar .video-toggle input{flex:0 0 18px;margin:2px 0 0}
}

/* v78: dictionary/import toolbar buttons must wrap on 320px phones. */
@media(max-width:700px){
 .toolbar{min-width:0;max-width:100%;flex-wrap:wrap;gap:9px}
 .toolbar .btn,.toolbar label.btn,.toolbar .btn.outline.sm{max-width:100%;min-width:0;white-space:normal!important;overflow-wrap:anywhere;text-align:center;min-height:42px;line-height:1.35;justify-content:center}
 .toolbar label.btn{display:inline-flex;align-items:center}
}

/* v79 — persistent, finger-friendly mobile learning tabs. Desktop remains unchanged. */
.mobile-tabbar{display:none}
@media(max-width:990px){
  .mobile-tabbar{position:fixed;inset:auto 0 0;z-index:38;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:0;min-width:0;min-height:calc(66px + env(safe-area-inset-bottom,0px));padding:4px max(5px,env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px)) max(5px,env(safe-area-inset-left,0px));border-top:1px solid #e6e8ef;background:#fff;box-shadow:0 -9px 28px #10213b10}
  .mobile-tabbar>a{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:0;min-height:54px;padding:6px 2px;border-radius:13px;color:#65758b;font-size:10px;line-height:1.2;font-weight:750;text-align:center;white-space:nowrap;touch-action:manipulation}
  .mobile-tabbar>a .nav-svg{display:block;width:22px;height:22px;flex:none;stroke-width:1.9px}
  .mobile-tabbar>a span{display:block;overflow:hidden;max-width:100%;text-overflow:ellipsis}
  .mobile-tabbar>a[aria-current="page"]{color:#be2739;background:#fff0f2}
  .mobile-tabbar>a:is(:hover,:active){color:#bd2839;background:#fff0f2}
  .mobile-tabbar>a:focus-visible{outline:2px solid #cd2c40;outline-offset:-2px}
  .workspace{padding-bottom:calc(73px + env(safe-area-inset-bottom,0px))}
  html{scroll-padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
  html[data-theme="dark"] .mobile-tabbar{background:#172235;border-top-color:#34445d;box-shadow:0 -9px 28px #0002}
  html[data-theme="dark"] .mobile-tabbar>a{color:#bfcee0}
  html[data-theme="dark"] .mobile-tabbar>a[aria-current="page"],html[data-theme="dark"] .mobile-tabbar>a:is(:hover,:active){color:#ffc4cc;background:#443044}
}
@media(max-width:350px){
  .mobile-tabbar{padding-left:3px;padding-right:3px}
  .mobile-tabbar>a{font-size:9px;gap:2px}
  .mobile-tabbar>a .nav-svg{width:20px;height:20px}
}
@media(max-height:480px) and (orientation:landscape) and (max-width:990px){
  .mobile-tabbar{min-height:48px;padding-top:1px;padding-bottom:calc(1px + env(safe-area-inset-bottom,0px))}
  .mobile-tabbar>a{min-height:44px;gap:0}
  .mobile-tabbar>a .nav-svg{width:19px;height:19px}
}
@media(prefers-reduced-motion:reduce){.mobile-tabbar>a{transition:none}}

/* v80 — virtual-keyboard awareness and modal drawer focus on mobile. */
@media(max-width:990px){
  body:has(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):focus,textarea:focus,select:focus,[contenteditable="true"]:focus,dialog[open]) .mobile-tabbar{display:none}
  .sidebar[role="dialog"][aria-modal="true"]{outline:none;overscroll-behavior-y:contain}
  .sidebar[role="dialog"] a:focus-visible,.sidebar[role="dialog"] button:focus-visible{outline:2px solid #cb3144;outline-offset:-2px}
}

/* v82: opt-in PWA install help, never an automatic nag/popup. */
.sidebar-install{width:100%;display:flex;align-items:center;gap:10px;min-height:46px;margin:14px 0 10px;padding:10px 13px;border:1px solid #f1d3d6;border-radius:13px;background:#fff4f1;color:#b42d40;text-align:left;font:inherit;font-weight:750;font-size:12px;cursor:pointer}
.sidebar-install .nav-svg{width:20px;height:20px;flex:none}
.sidebar-install span:nth-of-type(1){flex:1}
.sidebar-install span:last-child{font-size:18px}
.sidebar-install:hover{background:#ffe9e7}
.sidebar-install:focus-visible{outline:3px solid #d93341;outline-offset:2px}
.pwa-install-dialog{width:min(430px,calc(100vw - 26px));max-width:100%;max-height:min(88dvh,680px);margin:auto;padding:0;border:1px solid #e6e1dc;border-radius:20px;background:#fff;color:#263144;box-shadow:0 22px 65px #18253b48;overflow:auto}
.pwa-install-dialog::backdrop{background:rgba(19,29,45,.65)}
.pwa-install-head{display:flex;gap:14px;align-items:center;padding:22px 19px 15px}
.pwa-install-head img{border-radius:16px;flex:0 0 56px}
.pwa-install-head>div{flex:1;min-width:0}
.pwa-install-head h2{font-size:19px;line-height:1.3;margin:0 0 4px}
.pwa-install-head p{font-size:12px;color:#657185;line-height:1.45;margin:0}
.pwa-install-close{width:44px;height:44px;flex:0 0 44px;border:0;border-radius:13px;color:#526477;background:#f1f3f5;font-size:26px;cursor:pointer}
.pwa-install-content{padding:4px 21px 8px}
.pwa-install-steps{font-size:14px;line-height:1.65;margin:4px 0 12px;color:#273749;overflow-wrap:anywhere}
.pwa-install-note{font-size:12px;line-height:1.5;margin:0;color:#67758a}
.pwa-install-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;padding:15px 19px 20px}
.pwa-install-actions .btn{min-height:44px;cursor:pointer}
.pwa-install-actions [hidden]{display:none!important}
.pwa-install-dialog :is(button,a):focus-visible{outline:3px solid #d93341;outline-offset:2px}
html[data-theme="dark"] .sidebar-install{background:#422b3d;border-color:#74505c;color:#ffbec9}
html[data-theme="dark"] .sidebar-install:hover{background:#4c3247}
html[data-theme="dark"] .pwa-install-dialog{background:#1c293e;border-color:#47566f;color:#f2f6fc}
html[data-theme="dark"] .pwa-install-head h2,html[data-theme="dark"] .pwa-install-steps{color:#f2f6fc}
html[data-theme="dark"] .pwa-install-head p,html[data-theme="dark"] .pwa-install-note{color:#b8c6da}
html[data-theme="dark"] .pwa-install-close{color:#e3ebf5;background:#364157}
@media(max-width:700px){.pwa-install-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 44px)}}
@media(prefers-reduced-motion:reduce){.pwa-install-dialog{scroll-behavior:auto}}

/* v84 - learner-consented PWA updates; non-modal and safe above mobile tabs. */
.pwa-update-notice[hidden]{display:none!important}
.pwa-update-notice{position:fixed;right:18px;bottom:18px;z-index:47;display:flex;align-items:center;gap:15px;width:min(510px,calc(100vw - 28px));max-width:calc(100vw - 28px);padding:14px 16px;border:1px solid #e1c3c4;border-radius:17px;background:#fffefa;color:#243348;box-shadow:0 12px 38px #111e3250}
.pwa-update-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.pwa-update-copy strong{font-size:14px;line-height:1.4}
.pwa-update-copy span{font-size:12px;line-height:1.5;color:#637085}
.pwa-update-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.pwa-update-actions button{min-height:44px;border:0;border-radius:11px;padding:8px 11px;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
#pwa-update-apply{background:#ce3345;color:#fff}
#pwa-update-dismiss{background:#edf0f5;color:#39485a}
.pwa-update-actions button:focus-visible{outline:3px solid #d93341;outline-offset:2px}
html[data-theme="dark"] .pwa-update-notice{background:#24334b;color:#f7fafc;border-color:#4b5671}
html[data-theme="dark"] .pwa-update-copy span{color:#c1ccde}
html[data-theme="dark"] #pwa-update-dismiss{background:#43516a;color:#f6f8fc}
@media(max-width:990px){.pwa-update-notice{bottom:calc(82px + env(safe-area-inset-bottom,0px));right:12px}}
@media(max-width:600px){.pwa-update-notice{left:12px;right:12px;width:auto;max-width:none;flex-wrap:wrap;padding:12px 13px;gap:10px}.pwa-update-actions{width:100%}.pwa-update-actions button{flex:1}}
@media(max-height:480px) and (orientation:landscape) and (max-width:990px){.pwa-update-notice{bottom:calc(55px + env(safe-area-inset-bottom,0px));max-height:65dvh;overflow:auto}}
