/*
 HSK Panda / Atelier V44
 Single brand-layer stylesheet. References consulted: Stitch taste-design,
 Taste Skill, Impeccable, Astryx and shadcn/ui. No component framework installed.
 One restrained accent, ink-on-paper text, asymmetric editorial hero,
 real navigation, generous spacing, and minimal compositor-safe motion.
*/
:root{
 --ink:#1b302b;--muted:#526a60;--green:#146c58;--dark:#0f4f44;
 --mint:#e8f4eb;--lime:#88c4a8;--line:#dce9df;--bg:#f5f6f2;
 --orange:#a76b37;--red:#b94f48;
 --shadow:0 10px 28px rgba(24,60,43,.045),0 2px 5px rgba(24,60,43,.025);
 --atelier-bg:#f5f6f2;--atelier-paper:#fffefa;--atelier-ink:#1b302b;
 --atelier-muted:#526a60;--atelier-jade:#146c58;--atelier-jade-dark:#0f4f44;
 --atelier-jade-pale:#e8f4eb;--atelier-line:#dce9df;
 --atelier-warm:#f5ead5;--atelier-gold:#a76b37;
 --atelier-ease:cubic-bezier(.2,.74,.22,1);
}
*{box-sizing:border-box}
html{scroll-behavior:auto}
body{
 background:var(--atelier-bg);color:var(--atelier-ink);
 font-family:"Be Vietnam Pro",system-ui,sans-serif;
 font-size:13px;line-height:1.65;-webkit-font-smoothing:antialiased;
 text-rendering:optimizeLegibility;
}
button,input,select,textarea{font:inherit}
button{touch-action:manipulation}
.app-shell{
 display:grid;grid-template-columns:246px minmax(0,1fr);
 min-height:100vh;background:var(--atelier-bg);
}
.app-shell .main{min-width:0;background:var(--atelier-bg)}
.app-shell .container{
 width:100%;max-width:1510px;margin:0 auto;
 padding:30px clamp(22px,3vw,48px) 70px;
 min-width:0;
}
.app-shell .footer{
 margin-top:35px;padding-top:23px;
 color:#53675b;border-top:1px solid #dfe9e0;
 font-size:11px;line-height:1.8;text-align:center;
}
.app-shell .footer strong{color:#184d3d}
.app-shell .panel{
 background:#fffefa;
 border:1px solid #e1e9df;border-radius:20px;
 box-shadow:var(--shadow);min-width:0;
}
.app-shell .panel-pad{padding:24px 25px}
.app-shell .section-head{
 display:flex;align-items:center;justify-content:space-between;
 flex-wrap:wrap;gap:12px;margin:0 0 20px;
}
.app-shell .section-head .lead{
 display:flex;align-items:center;gap:11px;
 min-width:0;
}
.app-shell .section-head .lead>.icon{
 width:20px;height:20px;flex:0 0 20px;
 color:#247a61;
}
.app-shell .section-head h2{
 margin:0 0 3px;font-size:15px;font-weight:800;
 line-height:1.45;letter-spacing:-.15px;color:#203d32;
}
.app-shell .section-head p{
 margin:0;font-size:11.5px;line-height:1.6;color:#5d7567;
}
.app-shell .page-head{
 padding:7px 0 27px;display:flex;flex-direction:column;gap:8px;
}
.app-shell .page-head .page-eyebrow{
 color:#2b7760;font-size:10px;font-weight:800;
 letter-spacing:1.3px;line-height:1.4;
}
.app-shell .page-head h1{
 margin:0;font-size:clamp(26px,2.6vw,36px);
 font-weight:800;line-height:1.3;letter-spacing:-.9px;color:#173e31;
}
.app-shell .page-head p{
 margin:0;max-width:790px;font-size:13px;
 line-height:1.8;color:#516b5e;
}

/* Product navigation. Sidebar remains light and low-contrast in area,
   but all text and current-route states are high-contrast. */
.app-shell .sidebar{
 position:sticky;top:0;z-index:25;height:100vh;
 display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;
 overscroll-behavior:contain;scrollbar-width:thin;
 scrollbar-color:#c9dbce transparent;
 background:#fffefa;border-right:1px solid #e0e9e1;
 box-shadow:none;color:#254739;
}
.app-shell .sidebar .brand{
 min-height:91px;display:flex;align-items:center;gap:12px;
 padding:19px 21px;border-bottom:1px solid #e8eee7;
}
.app-shell .sidebar .brand-logo{
 display:grid;place-items:center;
 width:48px;height:48px;flex:0 0 48px;
 border-radius:16px;padding:6px;
 background:linear-gradient(145deg,#e8f5eb,#d9eee2);
 border:1px solid #d4e8d9;box-shadow:0 2px 6px rgba(23,79,52,.07);
}
.app-shell .sidebar .brand-logo svg{width:100%;height:100%}
.app-shell .sidebar .brand b{
 display:block;font-size:17px;font-weight:800;letter-spacing:-.6px;
 line-height:1.45;color:#1c4335;
}
.app-shell .sidebar .brand small{
 display:block;margin:2px 0 0;color:#5c7365;
 font-size:9px;letter-spacing:.3px;font-weight:650;
}
.app-shell .sidebar .nav{padding:15px 12px;gap:4px}
.app-shell .sidebar .nav-label{
 padding:15px 12px 8px;color:#637c6d;
 text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.8px;
}
.app-shell .sidebar .nav-item{
 display:flex;align-items:center;justify-content:flex-start;
 gap:11px;width:100%;min-height:44px;padding:10px 12px;
 color:#3c594b;text-align:left;background:transparent;
 border:1px solid transparent;border-radius:11px;
 font-size:12px;font-weight:650;
 box-shadow:none;transform:none;
 transition:background-color 140ms ease,color 140ms ease,border-color 140ms ease;
}
.app-shell .sidebar .nav-item .icon{
 width:19px;height:19px;flex:0 0 19px;
 color:inherit;opacity:.95;
}
.app-shell .sidebar .nav-item:hover:not(.active){
 background:#f3f8f3;border-color:#e8f0e8;color:#174f3d;
}
.app-shell .sidebar .nav-item.active,
.app-shell .sidebar .nav-item[data-to="pro"].active{
 background:#e0f1e6;border:1px solid #c7dfcf;
 color:#105844;font-weight:800;box-shadow:none;
}
.app-shell .sidebar .nav-item[data-to="pro"]:not(.active){
 color:#76532c;background:#fbf6eb;border-color:#f0e4d0;
}
.app-shell .sidebar .nav-item.active::before{display:none}
.app-shell .sidebar .side-foot{
 margin:auto 13px 19px;padding:17px 15px 15px;
 background:linear-gradient(145deg,#f2f8f2,#e7f2e9);
 border:1px solid #dceade;border-radius:16px;box-shadow:none;
}
.app-shell .sidebar .side-foot-symbol{
 width:29px;height:29px;display:grid;place-items:center;
 border-radius:10px;background:#d8eade;color:#145d46;margin-bottom:9px;
}
.app-shell .sidebar .side-foot-symbol .icon{width:17px;height:17px}
.app-shell .sidebar .side-foot b{display:block;font-size:11px;color:#214d3a}
.app-shell .sidebar .side-foot p{
 color:#51695b;font-size:10.5px;line-height:1.7;margin:6px 0 0;
}

/* Header / real account and search routes */
.app-shell .topbar{
 position:sticky;top:0;z-index:20;
 height:75px;padding:0 clamp(22px,3vw,48px);
 display:flex;align-items:center;gap:20px;justify-content:space-between;
 background:rgba(255,254,250,.96);
 border-bottom:1px solid #e0e9df;box-shadow:none;
 backdrop-filter:none;
}
.app-shell .topbar-location{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
 flex:1 1 auto;min-width:0;gap:3px;
}
.app-shell .topbar-location-label{
 color:#5c7766;font-size:9.5px;font-weight:750;
 letter-spacing:1.15px;line-height:1.45;white-space:nowrap;
}
.app-shell .topbar-location strong{
 color:#1c4535;font-size:16px;line-height:1.4;
 font-weight:800;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;
}
.app-shell .top-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.app-shell .topbar-search{
 min-width:205px;width:min(24vw,300px);
 display:flex;align-items:center;gap:10px;justify-content:flex-start;
 padding:10px 12px;min-height:39px;
 color:#4b6557;background:#f4f7f1;border:1px solid #e3eae0;
 border-radius:11px;font-size:11px;text-align:left;font-weight:650;
 cursor:pointer;
 transition:background 140ms ease,border-color 140ms ease;
}
.app-shell .topbar-search:hover{background:#eaf3e9;border-color:#c6dacb}
.app-shell .topbar-search>span{
 flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.app-shell .topbar-search>.icon{width:17px;height:17px;flex:0 0 17px}
.app-shell .topbar-search>.icon:last-child{width:13px;height:13px;opacity:.7}
.app-shell .icon-btn{
 width:39px;height:39px;flex:0 0 39px;
 display:grid;place-items:center;min-height:39px;
 color:#35654c;background:#fffefa;border:1px solid #d9e5d9;
 border-radius:11px;box-shadow:none;
}
.app-shell .icon-btn:hover{color:#1a5d45;background:#edf6ee}
.app-shell .icon-btn .icon{width:18px;height:18px}
.app-shell .top-profile{
 display:flex;align-items:center;gap:10px;
 padding:0 0 0 17px;background:transparent;border:0;
 border-left:1px solid #e2eae0;border-radius:0;
 cursor:pointer;color:#294a3b;box-shadow:none;text-align:left;
}
.app-shell .top-profile>.icon{width:15px;height:15px;color:#618372}
.app-shell .profile-avatar{
 display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;
 border:1px solid #d5e9d9;border-radius:13px;
 color:#145e49;background:#e6f3e9;
}
.app-shell .profile-avatar .icon{width:20px;height:20px}
.app-shell .profile-meta{
 display:flex;flex-direction:column;gap:3px;
 color:#244a38;font-size:11.5px;font-weight:800;white-space:nowrap;
}
.app-shell .profile-meta small{
 display:block;color:#587565;font-weight:650;font-size:10px;
}
.app-shell .topbar-pro{
 display:inline-flex;gap:7px;align-items:center;
 background:#e8f3e8;color:#0f5d45;border:1px solid #c8e2d0;
 border-radius:10px;min-height:39px;font-weight:800;
}
.app-shell .topbar-pro:hover:not(:disabled){
 color:#104f3d;background:#d7eddd;border-color:#b5dbc3;
}

/* Buttons and focus */
.app-shell .btn{
 display:inline-flex;align-items:center;justify-content:center;gap:8px;
 min-height:42px;padding:10px 16px;
 color:white;background:#146c58;border:1px solid #146c58;
 border-radius:11px;box-shadow:none;
 font-size:12px;line-height:1.45;font-weight:800;
 white-space:nowrap;transform:none;filter:none;
 transition:background 145ms ease,border-color 145ms ease,color 145ms ease;
}
.app-shell .btn:hover:not(:disabled){
 color:white;background:#0e5444;border-color:#0e5444;
 transform:none;filter:none;
}
.app-shell .btn.secondary,.app-shell .btn.outline,
.app-shell .btn.ghost{
 background:#edf6ee;color:#15533e;border:1px solid #c9e0d0;
}
.app-shell .btn.secondary:hover:not(:disabled),
.app-shell .btn.outline:hover:not(:disabled),
.app-shell .btn.ghost:hover:not(:disabled){
 background:#dceddf;color:#104737;border-color:#bdd8c5;
}
.app-shell .btn.orange{
 background:#955c33;border-color:#955c33;color:#fff;
}
.app-shell .btn.orange:hover:not(:disabled){
 background:#774923;border-color:#774923;color:#fff;
}
.app-shell .btn.sm{min-height:36px;padding:8px 12px;font-size:11px}
.app-shell .btn.full{width:100%}
.app-shell :is(button,input,textarea,select,a):focus-visible{
 outline:2px solid #176c56;outline-offset:3px;
 box-shadow:0 0 0 4px rgba(33,113,83,.13);
}
.app-shell .icon{width:18px;height:18px;flex:0 0 18px}
.app-shell .btn .icon{width:16px;height:16px;flex:0 0 16px}
.app-shell .small-link{
 display:inline-flex;align-items:center;gap:7px;
 color:#245b46;background:transparent;
 border:1px solid #d5e4d9;border-radius:9px;
 min-height:34px;padding:7px 11px;font-size:11px;font-weight:750;
}
.app-shell .small-link:hover{color:#174a38;background:#edf5ed}

/* Home headline and original art */
.app-shell .welcome.atelier-welcome{
 display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
 align-items:center;gap:8px;min-height:338px;
 padding:31px 34px 30px 39px;margin:0 0 14px;
 overflow:hidden;isolation:isolate;
 background:radial-gradient(ellipse at 84% 42%,#e4f1e7 0%,transparent 53%),
 linear-gradient(117deg,#fffefa 0%,#fffefa 49%,#eff6ed 100%);
 border:1px solid #dbe7db;border-radius:23px;
 box-shadow:0 10px 28px rgba(38,79,49,.06);
 color:#19382d;
}
.app-shell .welcome.atelier-welcome::after{display:none}
.app-shell .welcome-copy{
 width:100%;min-width:0;max-width:560px;position:relative;z-index:2;
}
.app-shell .welcome-kicker{
 display:inline-flex;align-items:center;gap:9px;
 border:0;background:transparent;border-radius:0;padding:0;
 color:#276f54;font-size:10px;font-weight:800;
 letter-spacing:1.3px;line-height:1.5;
}
.app-shell .welcome-kicker-dot{
 width:9px;height:9px;display:inline-block;flex:0 0 9px;
 border-radius:50%;background:#5ba887;box-shadow:0 0 0 4px #e6f2e7;
}
.app-shell .welcome h1{
 margin:16px 0 13px;font-size:clamp(30px,3.5vw,49px);
 font-weight:800;line-height:1.20;letter-spacing:-1.65px;color:#1b332c;
}
.app-shell .welcome h1 span{color:#15755b}
.app-shell .welcome p{
 max-width:560px;margin:0;color:#4d685a;
 font-size:13px;line-height:1.85;
}
.app-shell .welcome-actions{
 display:flex;align-items:center;gap:10px;flex-wrap:wrap;
 margin:22px 0 21px;
}
.app-shell .welcome-actions .btn{
 min-height:47px;padding:11px 19px;
 border-radius:11px;font-size:12px;
}
.app-shell .welcome-actions .welcome-primary{
 color:#fff;background:#146c58;border-color:#146c58;
 box-shadow:0 4px 11px rgba(21,101,76,.12);
}
.app-shell .welcome-actions .welcome-primary:hover:not(:disabled){
 color:#fff;background:#0e5142;border-color:#0e5142;
}
.app-shell .welcome-actions .welcome-secondary{
 color:#205b45;background:#fff;border:1px solid #cadfce;
}
.app-shell .welcome-actions .welcome-secondary:hover:not(:disabled){
 background:#ecf5ec;color:#134c38;
}
.app-shell .welcome-meta{
 display:flex;align-items:center;flex-wrap:wrap;gap:22px;
 color:#5a705d;font-size:11px;
}
.app-shell .welcome-meta span{
 display:flex;flex-direction:column;gap:2px;
 padding:0;border:0;border-radius:0;background:transparent;
}
.app-shell .welcome-meta b{color:#1c4e3c;font-size:13px;font-weight:800}
.app-shell .welcome-meta small{color:#617c6b;font-size:10.5px;font-weight:650}
.app-shell .welcome-visual{
 display:flex;align-items:center;justify-content:center;
 width:100%;height:100%;min-width:0;overflow:visible;
 position:relative;right:auto;top:auto;bottom:auto;opacity:1;
}
.app-shell .atelier-mascot-art{
 display:block;width:100%;height:auto;
 max-width:570px;max-height:326px;object-fit:contain;
 user-select:none;pointer-events:none;
 filter:drop-shadow(0 8px 9px rgba(18,65,46,.045));
}
.app-shell .trial-strip{
 display:flex;align-items:center;flex-wrap:wrap;gap:8px;
 min-height:41px;padding:9px 14px;margin:0 0 24px;
 border:1px solid #dae9de;border-radius:11px;
 color:#4e6c59;background:#f0f7ef;
 font-size:11px;line-height:1.6;
}
.app-shell .trial-strip b{font-size:11px;color:#255840}
.app-shell .trial-strip-dot{
 width:7px;height:7px;background:#358e6b;
 border-radius:50%;flex:0 0 7px;
}
.app-shell .home-section-caption{
 display:flex;align-items:end;justify-content:space-between;
 gap:15px;margin:0 2px 15px;
}
.app-shell .home-eyebrow{
 color:#397c5b;letter-spacing:1.1px;
 font-weight:800;font-size:9.5px;
}
.app-shell .home-section-caption h2{
 margin:5px 0 0;font-size:21px;line-height:1.4;
 color:#1d3d2d;letter-spacing:-.5px;font-weight:800;
}
.app-shell .home-caption-note{font-size:11px;color:#5b7164}
.app-shell .overview{
 display:grid;grid-template-columns:minmax(0,1.65fr) repeat(3,minmax(0,1fr));
 gap:14px;margin:0 0 19px;
}
.app-shell .progress-card{
 min-height:154px;display:flex;align-items:center;
 gap:15px;padding:20px;
}
.app-shell .book-emoji{
 display:grid;place-items:center;
 width:62px;height:67px;min-width:62px;min-height:67px;
 border-radius:15px;border:1px solid #d4eadb;
 background:linear-gradient(135deg,#e6f4e9,#f7faf2);
}
.app-shell .book-emoji .icon{width:29px;height:29px;color:#1b7657}
.app-shell .progress-body{flex:1;min-width:0}
.app-shell .progress-label{
 display:block;margin:0 0 4px;color:#48715b;
 font-size:9px;font-weight:800;letter-spacing:.9px;
}
.app-shell .progress-body h2{
 margin:0 0 11px;font-size:16px;font-weight:800;
 line-height:1.35;letter-spacing:-.25px;color:#243f31;
}
.app-shell .progress-row{display:flex;align-items:center;gap:12px}
.app-shell .bar{height:8px;background:#e4ede5;border-radius:20px;overflow:hidden}
.app-shell .bar>span,.app-shell .bar.orange>span{
 display:block;height:100%;background:#238d70;border-radius:20px;
}
.app-shell .progress-row b{font-size:11px;color:#205b43}
.app-shell .progress-bottom{
 display:flex;align-items:center;justify-content:space-between;
 gap:9px;margin-top:11px;
}
.app-shell .progress-bottom small{color:#536a59;font-size:10px;line-height:1.6}
.app-shell .progress-bottom .btn{font-size:10px;min-height:33px;padding:6px 11px}
.app-shell .stat-card{min-height:154px;padding:19px}
.app-shell .stat-icon{
 display:grid;place-items:center;
 width:39px;height:39px;margin-bottom:12px;
 background:#eaf5eb;border:1px solid #dceee0;
 border-radius:12px;color:#176e55;
}
.app-shell .stat-icon .icon{width:20px;height:20px}
.app-shell .stat-card:nth-child(2) .stat-icon{
 background:#f9f2e5;border-color:#f0e2c7;color:#9b672d;
}
.app-shell .stat-card:nth-child(3) .stat-icon{
 background:#e9f2f7;border-color:#dbeaf2;color:#377384;
}
.app-shell .stat-card small{
 display:block;color:#53695a;font-size:10.5px;font-weight:750;line-height:1.5;
}
.app-shell .stat-card strong{
 display:block;margin:3px 0;font-size:clamp(19px,1.8vw,27px);
 line-height:1.4;color:#1d392e;font-weight:800;letter-spacing:-.5px;
 overflow-wrap:anywhere;
}
.app-shell .stat-card em{
 display:block;margin-top:3px;padding:0;border-radius:0;
 background:transparent;color:#59705d;font-size:10px;line-height:1.4;
}

/* The two functional study choices and day planner */
.app-shell .home-main-grid{
 display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);
 gap:17px;margin:0 0 18px;align-items:stretch;
}
.app-shell .home-learning,.app-shell .home-tasks{padding:24px}
.app-shell .home-learning .section-head,.app-shell .home-tasks .section-head{margin-bottom:18px}
.app-shell .focus-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.app-shell .focus-tile{
 position:relative;overflow:hidden;
 display:flex;flex-direction:column;align-items:flex-start;
 min-height:252px;padding:19px 19px 17px;
 background:#eff6ed;border:1px solid #dce9dc;border-radius:16px;
 text-align:left;color:#1c3d31;cursor:pointer;isolation:isolate;
 transition:border-color 140ms ease,transform 160ms var(--atelier-ease),box-shadow 140ms ease;
}
.app-shell .focus-tile:hover{
 transform:translateY(-2px);border-color:#bcd7c5;
 box-shadow:0 8px 18px rgba(21,73,45,.075);
}
.app-shell .focus-tile::after{
 content:"学";position:absolute;right:6px;top:30px;
 color:rgba(67,125,91,.075);font:700 118px/1 "Noto Sans SC",sans-serif;
 z-index:-1;pointer-events:none;
}
.app-shell .focus-flash{
 background:#fbf6ec;border-color:#efe3cd;
}
.app-shell .focus-flash::after{content:"记";color:rgba(159,119,51,.075)}
.app-shell .focus-tag{
 display:block;color:#3e7755;font-size:9.5px;
 font-weight:800;letter-spacing:.8px;
}
.app-shell .focus-flash .focus-tag{color:#8b6a3c}
.app-shell .focus-tile-icon{
 width:43px;height:43px;margin:17px 0 14px;
 border-radius:13px;display:grid;place-items:center;
 color:#226c52;background:#fffefa;border:1px solid #dce7db;
}
.app-shell .focus-flash .focus-tile-icon{color:#97672d;border-color:#f0e1c8}
.app-shell .focus-tile-icon .icon{width:22px;height:22px}
.app-shell .focus-tile strong{
 display:block;font-size:16px;font-weight:800;
 letter-spacing:-.35px;line-height:1.5;color:#1f3e30;
}
.app-shell .focus-description{
 display:block;max-width:260px;margin:7px 0 19px;
 color:#516b5d;font-size:11px;line-height:1.8;
}
.app-shell .focus-bottom{
 display:flex;align-items:center;justify-content:space-between;
 width:100%;gap:12px;margin-top:auto;
 color:#3b6c50;font-size:10.5px;font-weight:750;
}
.app-shell .focus-arrow{
 width:33px;height:33px;display:grid;place-items:center;
 border-radius:50%;background:#166c54;color:#fff;
}
.app-shell .focus-flash .focus-arrow{background:#896331}
.app-shell .focus-arrow .icon{width:17px;height:17px}
.app-shell .home-task-count{
 display:inline-flex;align-items:center;justify-content:center;
 min-width:46px;min-height:29px;padding:4px 10px;
 border-radius:9px;background:#e5f3e8;color:#236746;
 font-size:11px;font-weight:800;
}
.app-shell .home-task-progress{
 height:6px;background:#e8f0e9;border-radius:20px;
 overflow:hidden;margin:0 0 15px;
}
.app-shell .home-task-progress>span{
 display:block;height:100%;background:#2b9a73;border-radius:20px;
}
.app-shell .home-task-list{display:flex;flex-direction:column;gap:3px}
.app-shell .home-task{
 display:flex;align-items:center;gap:11px;
 width:100%;min-height:47px;padding:9px 7px;
 background:transparent;color:#2a473a;border:0;border-bottom:1px solid #edf1ec;
 border-radius:7px;text-align:left;cursor:pointer;
 transition:background-color 120ms ease;
}
.app-shell .home-task:hover{background:#f4f8f3}
.app-shell .home-task:last-child{border-bottom:0}
.app-shell .task-check{
 display:grid;place-items:center;
 flex:0 0 23px;width:23px;height:23px;border:1.7px solid #abc4b1;
 border-radius:8px;color:#fff;background:#fffefa;
}
.app-shell .home-task.done .task-check{background:#268764;border-color:#268764}
.app-shell .task-check .icon{width:15px;height:15px}
.app-shell .task-copy{display:flex;flex:1;flex-direction:column;gap:1px;min-width:0}
.app-shell .task-copy strong{
 font-size:11px;color:#30483a;font-weight:700;line-height:1.5;
}
.app-shell .home-task.done .task-copy strong{color:#4e6855;text-decoration:line-through}
.app-shell .task-copy small{font-size:9.5px;color:#5d7463}
.app-shell .task-cta .icon{width:15px;height:15px;color:#69917b}

/* Shortcuts / premium proposition */
.app-shell .home-bottom-grid{
 display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.85fr);
 gap:17px;margin:0;
}
.app-shell .home-methods{padding:24px}
.app-shell .home-methods .section-head{margin-bottom:19px}
.app-shell .home-methods .method-pills{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:10px;
}
.app-shell .home-methods .method-chip{
 display:flex;align-items:center;gap:11px;
 width:100%;min-height:46px;padding:10px 12px;
 border:1px solid #e0eae0;border-radius:11px;
 background:#fafcf8;color:#265740;
 cursor:pointer;font-size:11.5px;font-weight:750;
 text-align:left;box-shadow:none;transition:background-color 120ms ease,border-color 120ms ease;
}
.app-shell .home-methods .method-chip>span{flex:1}
.app-shell .home-methods .method-chip>.icon{width:17px;height:17px}
.app-shell .home-methods .method-chip>.icon:last-child{width:14px;height:14px;color:#6a977d}
.app-shell .home-methods .method-chip:hover{background:#eff7ef;border-color:#c6dfcb}
.app-shell .home-premium{
 position:relative;isolation:isolate;overflow:hidden;
 display:flex;flex-direction:column;align-items:flex-start;
 min-height:280px;padding:25px 26px;
 background:linear-gradient(145deg,#155e50,#0c3d36);
 border:1px solid #12493e;color:#fff;box-shadow:0 13px 23px rgba(15,61,47,.12);
}
.app-shell .home-premium::after{
 content:"";position:absolute;right:-80px;top:-83px;
 width:260px;height:260px;border-radius:50%;
 border:38px solid rgba(229,246,229,.045);z-index:-1;
}
.app-shell .home-premium-mark{
 width:39px;height:39px;display:grid;place-items:center;
 background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.19);
 border-radius:12px;color:#e9d19b;margin-bottom:18px;
}
.app-shell .home-premium-mark .icon{width:20px;height:20px}
.app-shell .premium-eyebrow{
 color:#d5dfca;font-size:9px;letter-spacing:1.1px;font-weight:750;
}
.app-shell .home-premium h2{
 color:#fff;font-size:22px;line-height:1.3;
 margin:7px 0 10px;font-weight:800;letter-spacing:-.5px;
}
.app-shell .home-premium p{
 color:#e1ece4;font-size:11px;line-height:1.8;margin:0 0 20px;
}
.app-shell .home-premium .home-premium-action{
 color:#214b37;background:#f7ecd3;border:1px solid #f7ecd3;
 width:100%;margin-top:auto;
}
.app-shell .home-premium .home-premium-action:hover:not(:disabled){
 color:#1a4934;background:#fff7e9;border-color:#fff7e9;
}


/* ------------------------------------------------------------
   ROUTE-LEVEL COMPONENTS
   One visual grammar from vocabulary through checkout and settings.
   ------------------------------------------------------------ */
.app-shell .top-actions .topbar-pro{
 min-height:39px;background:#e7f3e9;border:1px solid #cde3d3;
 color:#145841;font-size:11px;
}
.app-shell .top-actions .topbar-pro:hover:not(:disabled){
 color:#0d4b39;background:#d6eadc;border-color:#b9d7c2;
}
.app-shell .field,
.app-shell select.field,
.app-shell textarea.field{
 width:100%;min-height:44px;max-width:100%;
 border:1px solid #ccdfd1;border-radius:11px;
 background:#fff;color:#233d32;
 padding:11px 13px;font-size:12.5px;
 outline:0;box-shadow:none;
 transition:border-color 130ms ease,box-shadow 130ms ease;
}
.app-shell textarea.field{min-height:100px;resize:vertical}
.app-shell .field::placeholder{color:#64796b}
.app-shell .field:focus{
 border-color:#39916d;box-shadow:0 0 0 3px rgba(33,112,77,.13);
}
.app-shell .field-label{
 display:block;margin:13px 0 7px;
 color:#2a513d;font-size:12px;font-weight:750;
}
.app-shell .toolbar{
 display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 19px;
}
.app-shell .search-wrap{min-width:230px;flex:1}
.app-shell .search-wrap .icon{
 left:13px;top:13px;width:17px;height:17px;
 color:#5b7965;
}
.app-shell .search-wrap input{padding-left:42px}
.app-shell .tabs,.app-shell .study-level-tabs{
 display:flex;align-items:center;gap:9px;flex-wrap:wrap;
}
.app-shell .tabs .tab,.app-shell .study-level-tab{
 min-height:39px;padding:8px 14px;border-radius:10px;
 border:1px solid #d9e6dc;background:#fffefa;
 color:#2d664a;font-size:11.5px;font-weight:750;
 box-shadow:none;transform:none;
 transition:background 130ms ease,border-color 130ms ease;
}
.app-shell .tabs .tab:hover,
.app-shell .study-level-tab:hover{
 background:#eef6ed;border-color:#bdddc8;
}
.app-shell .tabs .tab.active,.app-shell .study-level-tab.active{
 background:#e1f1e5;border:1px solid #bddbc6;
 color:#124f3d;box-shadow:none;
}
.app-shell .study-level-tab{min-width:63px}
.app-shell .pill,.app-shell .badge,.app-shell .study-pill{
 display:inline-flex;align-items:center;
 border-radius:9px;padding:5px 9px;
 background:#e9f4e9;color:#205d45;
 font-size:10.5px;font-weight:750;
}
.app-shell .badge.warn{
 background:#fff3e4;color:#88572a;
}
.app-shell .badge.success{
 background:#e6f6ec;color:#166447;
}
.app-shell .notice,.app-shell .hsk-vocab-notice{
 padding:14px 16px;background:#f3f8f1;
 border:1px solid #d9e9dd;border-radius:13px;
 color:#3a5f4a;font-size:12px;line-height:1.8;
}
.app-shell .notice.warning,.app-shell .pay-warning{
 color:#795125;background:#fff6e9;border:1px solid #ecd9b6;
}
.app-shell .hint-text,.app-shell .small-note,
.app-shell .hsk-vocab-count,.app-shell .hsk-vocab-credit{
 color:#526c5d;font-size:11.5px;line-height:1.8;
}
.app-shell .exercise-control,.app-shell .bottom-actions{
 display:flex;align-items:center;justify-content:flex-start;
 gap:10px;flex-wrap:wrap;margin-top:14px;
}

/* Vocabulary collection */
.app-shell .hsk-vocab-banner{
 margin:0 0 21px;padding:25px 29px;
 background:linear-gradient(115deg,#ecf6ea,#f9fbf6);
 border:1px solid #d7e8d8;border-radius:20px;
}
.app-shell .hsk-vocab-banner>span{
 color:#2d7556;font-size:10px;font-weight:800;letter-spacing:1.2px;
}
.app-shell .hsk-vocab-banner h2{
 margin:9px 0;font-size:24px;font-weight:800;
 color:#1b4934;letter-spacing:-.5px;
}
.app-shell .hsk-vocab-banner>p{
 color:#4e6e58;font-size:12.5px;line-height:1.8;max-width:820px;
}
.app-shell .hsk-vocab-level-counts{gap:8px;flex-wrap:wrap}
.app-shell .hsk-vocab-level-count{
 padding:6px 11px;background:#fffefa;border:1px solid #d6e7da;
 border-radius:9px;color:#395f47;font-size:11px;
}
.app-shell .hsk-vocab-level-count b{color:#1d7050}
.app-shell .hsk-vocab-toolbar{gap:11px;margin:0 0 16px}
.app-shell .hsk-vocab-select{max-width:190px!important}
.app-shell .vocab-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;
}
.app-shell .word-card,.app-shell .grammar-card{
 min-width:0;padding:21px;
 background:#fffefa;border:1px solid #e0e9df;
 border-radius:17px;box-shadow:0 4px 13px rgba(23,60,41,.025);
 transform:none;transition:border-color 130ms ease,box-shadow 130ms ease;
}
.app-shell .word-card:hover,.app-shell .grammar-card:hover{
 border-color:#b8d5c2;transform:none;
 box-shadow:0 7px 19px rgba(23,65,41,.055);
}
.app-shell .hsk-vocab-card{min-height:202px}
.app-shell .word-char,.app-shell .hsk-vocab-card .word-char{
 font-family:"Noto Sans SC",sans-serif;
 color:#1d4533;font-size:34px;line-height:1.35;
 font-weight:650;
}
.app-shell .word-pinyin{color:#1c8060;font-size:12.5px;font-weight:750}
.app-shell .word-mean{color:#345c45;font-size:12px;line-height:1.7}
.app-shell .word-example{
 color:#526e59;font-size:11px;line-height:1.7;
 border-top:1px solid #e7eee7;
}
.app-shell .word-bottom{gap:10px}
.app-shell .word-bottom small{color:#587261;font-size:10px}
.app-shell .hsk-vocab-kind{color:#526c59;font-size:11px}
.app-shell .hsk-vocab-pages{
 display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;
}
.app-shell .hsk-vocab-pages span{color:#3e7458;font-size:12px}

/* Course roadmap and lessons */
.app-shell .study-level-summary{
 padding:23px 25px;margin:0 0 22px;
 border:1px solid #dce9dc;border-radius:18px;
 background:linear-gradient(110deg,#eaf5e9,#fafcf7);
}
.app-shell .study-level-summary h2{
 color:#1f5139;font-size:21px;
}
.app-shell .study-level-summary p{color:#4d6e58;font-size:12px;line-height:1.75}
.app-shell .study-roadmap-grid{gap:16px}
.app-shell .study-step{
 display:flex;flex-direction:column;gap:10px;
 min-height:217px;padding:22px;
 border-radius:18px;
}
.app-shell .study-step h3{color:#244635;font-size:17px;line-height:1.45}
.app-shell .study-step p{color:#4e6b56;font-size:12px;line-height:1.75}
.app-shell .study-step-meta{color:#54705d;font-size:11px}
.app-shell .study-step .btn{margin-top:auto}
.app-shell .study-word-card,
.app-shell .study-selector-btn,
.app-shell .study-pattern{
 background:#f7faf4;border:1px solid #dfeadf;
 border-radius:12px;color:#295c43;
}
.app-shell .study-lesson-section{
 padding:23px 25px;border-radius:18px;
}
.app-shell .study-lesson-head{gap:10px}
.app-shell .study-lesson-head .btn{margin-left:auto}
.app-shell .study-lesson-layout{gap:17px}
.app-shell .study-word-grid{gap:11px}
.app-shell .study-word-card strong{color:#24543a}

/* Calm flashcards, with existing two-card swipe engine unchanged. */
.app-shell .flash-layout{max-width:780px;margin:0 auto}
.app-shell .flash-central{
 padding:44px 27px;min-height:348px;
 background:#fffefa;border:1px solid #d7e6d9;border-radius:21px;
 box-shadow:0 12px 24px rgba(31,67,46,.06);
}
.app-shell .flash-layout .hsk-v39-viewport{
 border-radius:21px;background:#fffefa;
}
.app-shell .flash-layout .flash-central.hsk-v39-card{
 background:#fffefa;border:1px solid #d7e6d9;
 border-radius:21px;box-shadow:none;
}
.app-shell .flash-central .hanzi{
 font-family:"Noto Sans SC",sans-serif;color:#153f2e;
 font-weight:650;font-size:clamp(58px,6.4vw,76px);
 line-height:1.35;
}
.app-shell .flash-central .pinyin{color:#267e5e;font-size:22px}
.app-shell .flash-central .meaning{color:#2e4f3c;font-size:19px}
.app-shell .flash-central .hint{
 color:#516d5c;font-size:11px;line-height:1.7;
}
.app-shell .flash-count{color:#4b6956;font-size:12px;font-weight:700}
.app-shell .flash-swipe-actions{display:flex;gap:12px}
.app-shell .flash-layout .flash-swipe-actions .btn{
 min-height:51px;border-radius:12px;font-size:12px;font-weight:800;
}
.app-shell .flash-layout .flash-swipe-actions .flash-again{
 background:#fff4e7;color:#7c542b;border-color:#ead0aa;
}
.app-shell .flash-layout .flash-swipe-actions .flash-next{
 background:#146c58;border-color:#146c58;color:#fff;
}

/* Quizzes, writing practice, listening and speaking */
.app-shell .quiz-shell{max-width:900px;margin:0 auto}
.app-shell .quiz-head{gap:12px;flex-wrap:wrap}
.app-shell .quiz-question{padding:27px 29px;margin-bottom:15px}
.app-shell .quiz-question h2{color:#243f30;font-size:21px;line-height:1.6}
.app-shell .quiz-answers{gap:11px}
.app-shell .answer{
 min-height:58px;padding:15px 17px;
 background:#fffefa;color:#2b4f3b;
 border:1px solid #d9e7dc;border-radius:13px;
 font-size:12.5px;font-weight:700;
 transition:background 140ms ease,border-color 140ms ease;
}
.app-shell .answer:hover:not(:disabled){background:#eff7ef;border-color:#add4b9}
.app-shell .answer.selected{background:#e3f3e8;border-color:#7fb89a}
.app-shell .answer.correct{background:#e0f3e5;border-color:#5da47e;color:#1e6043}
.app-shell .answer.wrong{background:#fff0eb;border-color:#d99381;color:#974e3d}
.app-shell .feedback{
 color:#295b43;border-color:#c8e3d2;
 background:#f1faf2;border-radius:13px;
 font-size:12px;line-height:1.8;
}
.app-shell .feedback.error{color:#974737;background:#fff3ee;border-color:#e8bdae}
.app-shell .quiz-result{border-radius:20px}
.app-shell .big-number{color:#176d50;font-size:clamp(39px,4vw,56px)}
.app-shell .game-grid{gap:13px}
.app-shell .match-card{
 border:1px solid #d8e7dc;border-radius:13px;
 background:#fffefa;color:#2a4b38;
 min-height:77px;transform:none;
}
.app-shell .match-card:hover{transform:none;background:#f1f8ef}
.app-shell .match-card.selected{background:#e1f2e5}
.app-shell .match-card.matched{background:#e6f4e9}
.app-shell .grammar-grid{gap:15px}
.app-shell .grammar-card h3{color:#204a34}
.app-shell .grammar-card .example{
 border-radius:11px;background:#f3f8f2;
 color:#2f654a;
}
.app-shell .writing-board,.app-shell .speaking-box,
.app-shell .exercise-card{
 border-radius:19px;
}
.app-shell .speaking-box{padding:24px}
.app-shell .speaking-box .mic-circle.active{
 animation:none;box-shadow:0 0 0 5px rgba(172,106,59,.13);
}

/* Settings, account, checkout, Pro: never less polished than the home. */
.app-shell .settings-section{
 display:flex;flex-direction:column;gap:17px;
 width:100%;max-width:900px;margin:0 auto;
}
.app-shell .settings-section .panel{
 padding:25px 28px;margin:0;border-radius:18px;
}
.app-shell .settings-section h2{
 color:#1e4332;font-size:16px;margin:0 0 9px;
}
.app-shell .settings-section p{
 color:#4f6b59;font-size:12px;line-height:1.8;margin:8px 0 14px;
}
.app-shell .settings-section .field{
 max-width:610px;margin:0;
}
.app-shell .settings-section .field-label{margin:12px 0 7px}
.app-shell .settings-section .upload-label{
 display:inline-flex;align-items:center;justify-content:center;
 gap:8px;position:relative;cursor:pointer;min-height:42px;
}
.app-shell .settings-section .upload-label input[type="file"]{
 display:block!important;position:absolute!important;
 width:1px!important;height:1px!important;padding:0!important;
 margin:-1px!important;border:0!important;opacity:0!important;
 overflow:hidden!important;clip:rect(0 0 0 0)!important;
 clip-path:inset(50%)!important;
}
.app-shell .settings-section .upload-label:focus-within{
 outline:2px solid #176c56;outline-offset:3px;
}
.app-shell .settings-section .bottom-actions,
.app-shell .settings-section .exercise-control{
 display:flex;align-items:center;flex-wrap:wrap;gap:11px;
}
.app-shell .pro-hero{
 padding:29px 31px;border-radius:21px;
 background:linear-gradient(120deg,#eaf5e8,#fafbf4);
 border:1px solid #d9e7d9;box-shadow:none;
}
.app-shell .pro-hero h1,.app-shell .pro-hero h2{color:#21563d}
.app-shell .pro-panda{display:none}
.app-shell .pro-grid{gap:17px}
.app-shell .pro-plan{
 padding:24px;border:1px solid #dee8de;
 border-radius:19px;background:#fffefa;box-shadow:var(--shadow);
}
.app-shell .pro-plan.best{
 border:2px solid #398564;
 box-shadow:0 9px 24px rgba(30,97,58,.08);
}
.app-shell .pro-plan h3{color:#1e4532;font-size:17px}
.app-shell .pro-plan .pro-price{color:#165d44}
.app-shell .pro-checks{color:#46664f;line-height:1.9}
.app-shell .pay-layout{gap:17px}
.app-shell .pay-order,.app-shell .pay-qr-card{
 padding:25px;border:1px solid #dce7dc;
 background:#fffefa;border-radius:19px;
}
.app-shell .pay-order-title h2,.app-shell .pay-order h2{color:#1e4332}
.app-shell .pay-line{
 border-color:#e5ede3;color:#355a42;
}
.app-shell .pay-total b{color:#185e43}
.app-shell .pay-feature,.app-shell .pay-note{color:#4f6b59;font-size:11.5px;line-height:1.85}
.app-shell .pay-warning{padding:15px 17px;border-radius:13px}
.app-shell .pay-warning p{font-size:11.5px;line-height:1.8}
.app-shell .pay-qr-frame{border-color:#d7e4d7;border-radius:13px}
.app-shell .ranking-item{border-color:#e7eee5}
.app-shell .ranking-item.mine{background:#ecf5ed;border-radius:11px}
.app-shell .progress-bars{gap:13px}
.app-shell .progress-bars .bar{height:8px}

/* Responsive layouts: review 1440, 1024, 768, 390 and narrow phones. */
@media(max-width:1320px){
 .app-shell .overview{grid-template-columns:repeat(3,minmax(0,1fr))}
 .app-shell .progress-card{grid-column:1/-1;min-height:132px}
 .app-shell .stat-card{min-height:143px}
 .app-shell .welcome h1{font-size:clamp(31px,3vw,42px)}
 .app-shell .home-main-grid{grid-template-columns:minmax(0,1fr) minmax(285px,.82fr)}
 .app-shell .home-bottom-grid{grid-template-columns:minmax(0,1.25fr) minmax(280px,.85fr)}
}
@media(max-width:1110px){
 .app-shell{grid-template-columns:76px minmax(0,1fr)}
 .app-shell .sidebar .brand{padding:15px 12px;justify-content:center;min-height:73px}
 .app-shell .sidebar .brand-logo{width:45px;height:45px;flex-basis:45px;padding:6px}
 .app-shell .sidebar .brand b,
 .app-shell .sidebar .brand small,
 .app-shell .sidebar .nav-label,
 .app-shell .sidebar .nav-item span,
 .app-shell .sidebar .side-foot{display:none}
 .app-shell .sidebar .nav{padding:12px 7px;gap:3px}
 .app-shell .sidebar .nav-item{
  min-height:48px;padding:11px 10px;
  justify-content:center;border-radius:11px;
 }
 .app-shell .sidebar .nav-item .icon{width:21px;height:21px;flex:0 0 21px}
 .app-shell .container{padding:27px 27px 60px}
 .app-shell .topbar{padding:0 27px}
 .app-shell .welcome.atelier-welcome{padding:25px 22px 25px 29px}
 .app-shell .atelier-mascot-art{max-height:300px}
 .app-shell .home-main-grid,.app-shell .home-bottom-grid{grid-template-columns:1fr}
 .app-shell .focus-tile{min-height:221px}
 .app-shell .home-premium{min-height:255px}
 .app-shell .pro-grid{gap:12px}
}
@media(max-width:790px){
 .app-shell .topbar-search{min-width:0;width:42px;justify-content:center;padding:8px}
 .app-shell .topbar-search>span,
 .app-shell .topbar-search>.icon:last-child{display:none}
 .app-shell .topbar-location-label{font-size:9px}
 .app-shell .topbar-location strong{font-size:14px}
 .app-shell .welcome.atelier-welcome{grid-template-columns:minmax(0,1fr) minmax(190px,.67fr);gap:0}
 .app-shell .welcome h1{font-size:clamp(28px,4vw,35px)}
 .app-shell .welcome p{font-size:12px}
 .app-shell .atelier-mascot-art{max-height:245px}
 .app-shell .vocab-grid,.app-shell .grammar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .app-shell .pro-grid,.app-shell .pay-layout{grid-template-columns:1fr}
}
@media(max-width:680px){
 .app-shell{
  display:block;padding-bottom:calc(78px + env(safe-area-inset-bottom,0px));
 }
 .app-shell .sidebar{
  position:fixed;top:0;bottom:0;left:0;height:100dvh;z-index:60;
  width:min(284px,88vw);
  transform:translateX(-104%);
  background:#fffefa;
  box-shadow:10px 0 32px rgba(17,60,40,.16);
  transition:transform 200ms var(--atelier-ease);
 }
 .app-shell .sidebar.open{transform:translateX(0)}
 .app-shell .sidebar .brand{padding:20px 18px;justify-content:flex-start;min-height:83px}
 .app-shell .sidebar .brand-logo{width:46px;height:46px;flex:0 0 46px}
 .app-shell .sidebar .brand b,
 .app-shell .sidebar .brand small,
 .app-shell .sidebar .nav-label,
 .app-shell .sidebar .nav-item span,
 .app-shell .sidebar .side-foot{display:block}
 .app-shell .sidebar .nav{padding:12px 12px}
 .app-shell .sidebar .nav-item{
  min-height:44px;justify-content:flex-start;
  padding:10px 12px;font-size:12px;
 }
 .app-shell .sidebar .nav-item .icon{width:19px;height:19px;flex:0 0 19px}
 .app-shell .sidebar .side-foot{margin:10px 13px 17px}
 .app-shell .topbar{height:64px;padding:0 15px;gap:9px}
 .app-shell .topbar-location-label{font-size:8px;letter-spacing:.65px}
 .app-shell .topbar-location strong{font-size:13px;max-width:165px}
 .app-shell .topbar .mobile-menu{display:grid}
 .app-shell .top-actions{gap:7px}
 .app-shell .topbar-activity,
 .app-shell .top-actions .topbar-pro{display:none}
 .app-shell .topbar-search{
  height:38px;width:38px;min-height:38px;border-radius:11px;
 }
 .app-shell .top-profile{
  border:0;padding:0;gap:0;
 }
 .app-shell .profile-avatar{width:36px;height:36px;flex:0 0 36px}
 .app-shell .top-profile>.icon,.app-shell .profile-meta{display:none}
 .app-shell .container{padding:18px max(14px,env(safe-area-inset-right,0px)) 53px max(14px,env(safe-area-inset-left,0px))}
 .app-shell .welcome.atelier-welcome{
  grid-template-columns:1fr;gap:5px;
  padding:24px 21px 16px;min-height:0;border-radius:19px;
 }
 .app-shell .welcome h1{
  font-size:clamp(29px,8.3vw,39px);letter-spacing:-1.1px;
 }
 .app-shell .welcome-kicker{font-size:9px;letter-spacing:.9px}
 .app-shell .welcome p{font-size:12px;max-width:460px}
 .app-shell .welcome-actions{margin:19px 0 14px;gap:9px}
 .app-shell .welcome-actions .btn{min-height:42px;padding:9px 13px;font-size:11px}
 .app-shell .welcome-meta{gap:18px}
 .app-shell .welcome-meta b{font-size:12px}
 .app-shell .welcome-meta small{font-size:10px}
 .app-shell .welcome-visual{height:186px;min-height:0;overflow:hidden}
 .app-shell .atelier-mascot-art{
  width:auto;height:230px;max-width:100%;max-height:230px;object-fit:contain;
  transform:translateY(10px);
 }
 .app-shell .trial-strip{font-size:10.5px;margin:0 0 20px}
 .app-shell .home-section-caption{
  align-items:flex-start;gap:7px;margin-bottom:13px;
 }
 .app-shell .home-section-caption h2{font-size:18px}
 .app-shell .home-caption-note{font-size:9.5px;max-width:110px;text-align:right}
 .app-shell .overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .app-shell .progress-card{grid-column:1/-1;min-height:142px;padding:17px}
 .app-shell .book-emoji{min-width:52px;width:52px;min-height:57px;height:57px;border-radius:13px}
 .app-shell .book-emoji .icon{width:24px;height:24px}
 .app-shell .progress-body h2{font-size:15px}
 .app-shell .progress-bottom small{font-size:9.5px}
 .app-shell .stat-card{min-height:139px;padding:16px}
 .app-shell .stat-icon{width:34px;height:34px;margin-bottom:9px}
 .app-shell .stat-card small{font-size:10px}
 .app-shell .stat-card strong{font-size:21px}
 .app-shell .stat-card em{font-size:9.5px}
 .app-shell .overview>.stat-card:last-child{grid-column:1/-1;min-height:118px}
 .app-shell .home-main-grid,.app-shell .home-bottom-grid{gap:13px;margin-bottom:14px}
 .app-shell .home-learning,.app-shell .home-tasks,.app-shell .home-methods{padding:18px}
 .app-shell .focus-grid{grid-template-columns:1fr;gap:11px}
 .app-shell .focus-tile{min-height:200px;padding:17px}
 .app-shell .focus-tile-icon{margin:11px 0 10px}
 .app-shell .focus-description{margin-bottom:13px}
 .app-shell .home-methods .method-pills{gap:8px}
 .app-shell .home-methods .method-chip{font-size:10.5px;padding:9px;min-height:46px}
 .app-shell .home-premium{padding:23px;min-height:235px}
 .app-shell .page-head{padding:2px 0 20px}
 .app-shell .page-head h1{font-size:25px}
 .app-shell .page-head p{font-size:11.5px}
 .app-shell .section-head h2{font-size:14px}
 .app-shell .hsk-vocab-banner{padding:21px 18px;border-radius:17px}
 .app-shell .hsk-vocab-banner h2{font-size:21px}
 .app-shell .hsk-vocab-toolbar .search-wrap{width:100%;flex-basis:100%}
 .app-shell .hsk-vocab-select{flex:1;max-width:none!important}
 .app-shell .vocab-grid,.app-shell .grammar-grid{grid-template-columns:1fr;gap:12px}
 .app-shell .word-card,.app-shell .grammar-card{padding:18px}
 .app-shell .study-level-summary{padding:20px}
 .app-shell .study-step{min-height:180px;padding:19px}
 .app-shell .study-lesson-section{padding:19px}
 .app-shell .flash-central{min-height:320px}
 .app-shell .flash-central .hanzi{font-size:56px}
 .app-shell .quiz-question{padding:20px}
 .app-shell .quiz-answers{grid-template-columns:1fr}
 .app-shell .answer{min-height:51px;padding:13px 15px}
 .app-shell .settings-section{gap:12px}
 .app-shell .settings-section .panel{padding:20px 18px}
 .app-shell .settings-section .exercise-control,.app-shell .settings-section .bottom-actions{
  flex-direction:column;align-items:stretch;
 }
 .app-shell .settings-section .exercise-control>.btn,
 .app-shell .settings-section .bottom-actions>.btn,
 .app-shell .settings-section .upload-label{
  width:100%;
 }
 .app-shell .mobilenav{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  position:fixed;z-index:35;bottom:0;left:0;right:0;
  background:rgba(255,254,250,.98);
  padding:7px 6px calc(6px + env(safe-area-inset-bottom,0px));
  border-top:1px solid #d8e7d9;
  box-shadow:0 -3px 16px rgba(19,67,42,.055);
 }
 .app-shell .mobilenav button{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;min-height:49px;padding:6px 2px;margin:0 2px;
  border:0;border-radius:10px;background:transparent;
  color:#526a59;font-size:10px;font-weight:650;
 }
 .app-shell .mobilenav button .icon{height:19px;width:19px;flex:0 0 19px}
 .app-shell .mobilenav button span{display:block;white-space:nowrap;line-height:1.3}
 .app-shell .mobilenav button.active,
 .app-shell .mobilenav button[aria-current="page"]{
  background:#e1f1e6;color:#13573f;font-weight:800;
 }
}
@media(max-width:390px){
 .app-shell .topbar-location-label{display:none}
 .app-shell .topbar-location strong{max-width:125px}
 .app-shell .welcome.atelier-welcome{padding:22px 16px 12px}
 .app-shell .welcome h1{font-size:29px}
 .app-shell .welcome-actions{gap:7px}
 .app-shell .welcome-actions .btn{font-size:10.5px;padding:8px 10px}
 .app-shell .home-caption-note{display:none}
 .app-shell .progress-bottom{flex-wrap:wrap}
 .app-shell .progress-bottom .btn{margin-left:auto}
 .app-shell .stat-card{padding:14px 12px}
 .app-shell .stat-card strong{font-size:19px}
 .app-shell .home-methods .method-pills{grid-template-columns:1fr}
 .app-shell .topbar-search{width:35px;min-height:35px}
 .app-shell .topbar .mobile-menu{width:35px;min-height:35px}
}
@media(hover:none){
 .app-shell .focus-tile:hover{transform:none;box-shadow:none}
 .app-shell .word-card:hover,.app-shell .grammar-card:hover{box-shadow:none}
}
@media(prefers-reduced-motion:reduce){
 .app-shell :is(.btn,.nav-item,.icon-btn,.focus-tile,.method-chip,.word-card,.grammar-card,.answer,.sidebar,.field){
  transition:none!important;animation:none!important;
 }
 .app-shell .hsk-page-enter > :first-child{animation:none!important}
}


/* QA correction: menu toggle is a mobile control, not a desktop header icon. */
.app-shell .topbar .mobile-menu{display:none}
@media(max-width:680px){
 .app-shell .topbar .mobile-menu{display:grid}
}
