/* App presentation. The existing practice data, protected endpoints and storage keys are retained. */
body.tme-box-page{background:radial-gradient(ellipse at 95% 0,#e9eaff 0,transparent 43%),#f6f7ff;color:#172348}
#tme-box-app{--blue:#5260ed;--ink:#172348;--muted:#6b7693;--line:#e2e6f4;--bg:#f6f7ff;--green:#329367;color:var(--ink)}
#tme-box-app svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#tme-box-app .app-rail{position:fixed;inset:0 auto 0 0;width:248px;padding:32px 23px;background:#fff;border-right:1px solid #e5e8f5;display:flex;flex-direction:column;z-index:15}
body.admin-bar #tme-box-app .app-rail{top:32px}
#tme-box-app .app-brand{padding:0;display:flex;align-items:center;gap:11px;border:0;background:none;text-align:left;font-family:system-ui,sans-serif}
#tme-box-app .app-brand b{font-size:16px;letter-spacing:.2px;line-height:1.4;display:block;font-weight:800}
#tme-box-app .app-brand small{display:block;font-size:9px;color:#7781a0;margin-top:2px;line-height:1.6;font-weight:400}
#tme-box-app .app-brandmark{width:42px;height:44px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#2767ff,#7943ed);color:#fff;box-shadow:0 5px 14px #5562ed25}
#tme-box-app .app-side-label{font:10px system-ui;letter-spacing:1.6px;color:#7782a0;margin:54px 12px 19px}
#tme-box-app .app-rail nav{display:grid;gap:9px}
#tme-box-app .app-rail nav button{display:flex;align-items:center;gap:13px;text-align:left;border:0;background:none;border-radius:12px;padding:13px;color:#697593;font-size:14px}
#tme-box-app .app-rail nav button.active{background:#eceeff;color:#4d50db;box-shadow:inset 3px 0 #6550f1;font-weight:700}
#tme-box-app .app-rail-bottom{margin-top:auto;padding:26px 6px 0;color:#7782a0}
#tme-box-app .app-rail-bottom>b{display:block;font-size:14px;color:#575b94}
#tme-box-app .app-rail-bottom>small{display:block;font-size:9px;margin-top:5px}
#tme-box-app .app-account-link{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#eff0ff;border:1px solid #e1e3fa;width:100%;padding:11px;border-radius:11px;margin-top:17px;color:#6656cf;font-size:11px}
#tme-box-app .app-account-link svg{width:16px;height:16px}
#tme-box-app .app-workspace{margin-left:248px;min-height:100vh}
#tme-box-app .app-topbar{height:93px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 48px;border:0;border-bottom:1px solid #e3e6f4;background:transparent}
#tme-box-app .app-desktop-caption{font-size:12px;color:#7781a0}
#tme-box-app .app-top-actions{display:flex;gap:13px;align-items:center}
#tme-box-app .app-avatar{border:1px solid #dbe1f6;background:#fff;width:39px;height:39px;border-radius:50%;display:grid;place-items:center;color:#5858d5}
#tme-box-app .app-avatar svg{width:18px;height:18px}
#tme-box-app .app-quota{background:#fff;border:1px solid #e1e5f5;border-radius:25px;padding:6px 11px;color:#777cab;font-size:10px}
#tme-box-app .app-quota.is-pro{background:#eeeaff;color:#7551d5;border-color:#dfd6fb;font-weight:700}
#tme-box-app .app-mobile-brand{display:none}
#tme-box-app .app-workspace>main{width:100%;max-width:1110px;margin:0 auto;padding:43px 48px 70px;outline:none}
#tme-box-app h1{font-size:29px;line-height:1.6;letter-spacing:-.4px;margin:9px 0 8px}
#tme-box-app h2{font-size:21px;line-height:1.7}
#tme-box-app .app-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}
#tme-box-app .app-heading p{font-size:13px;margin:8px 0 0;color:#6b7693}
#tme-box-app .app-eyebrow{font-size:10px;letter-spacing:.4px;color:#6757ce}
#tme-box-app .app-total{font:10px system-ui;white-space:nowrap;background:#fff;border:1px solid #dfe3fb;border-radius:25px;padding:10px 12px;color:#6755c7}
#tme-box-app .app-class-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}
#tme-box-app .app-class-card{position:relative;min-height:159px;padding:20px;border:1px solid #e1e5f5;border-radius:21px;background:#fff;text-align:left;box-shadow:0 3px 11px #4855a506;transition:transform .18s,box-shadow .18s}
#tme-box-app .app-class-card:hover{transform:translateY(-3px);border-color:#a3a7f4;box-shadow:0 10px 25px #5955cf14}
#tme-box-app .app-class-card.featured{background:linear-gradient(135deg,#edf2ff,#f3eeff);border-color:#c9d2ff}
#tme-box-app .app-class-num{display:grid;place-items:center;width:53px;height:53px;border-radius:16px;background:linear-gradient(145deg,#397cfe,#4c50ed);color:#fff;font:700 29px system-ui;box-shadow:0 5px 13px #4f6cf02a}
#tme-box-app .app-class-card:nth-child(2) .app-class-num,#tme-box-app .app-class-card:nth-child(6) .app-class-num{background:linear-gradient(145deg,#9664f9,#7141db);box-shadow:0 5px 13px #8452e72a}
#tme-box-app .app-class-card:nth-child(3) .app-class-num{background:linear-gradient(145deg,#19b7d9,#208bd5)}
#tme-box-app .app-class-card:nth-child(4) .app-class-num{background:linear-gradient(145deg,#f17cbd,#c651c6)}
#tme-box-app .app-class-card:nth-child(5) .app-class-num{background:linear-gradient(145deg,#f4ad49,#ed8748)}
#tme-box-app .app-class-card:nth-child(7) .app-class-num{background:linear-gradient(145deg,#5683ff,#7352eb)}
#tme-box-app .app-class-card b{display:block;font-size:13px;margin-top:14px}
#tme-box-app .app-class-card>svg{position:absolute;right:18px;bottom:20px;color:#9da8c6;width:17px;height:17px}
#tme-box-app .app-resume-card{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(115deg,#315cf0,#7345df);color:#fff;border-radius:22px;margin-top:27px;padding:24px 27px;box-shadow:0 10px 25px #6250db23}
#tme-box-app .app-resume-content{display:flex;gap:19px;align-items:center}
#tme-box-app .app-resume-icon{background:#ffffff17;width:47px;height:53px;border:1px solid #ffffff26;border-radius:14px;display:grid;place-items:center;color:#fff;flex-shrink:0}
#tme-box-app .app-resume-card small{display:block;font-size:10px;color:#e0e5ff;margin-bottom:5px}
#tme-box-app .app-resume-card strong{font-size:14px}
#tme-box-app .app-resume-card p{font-size:11px;color:#d5dbff;margin:5px 0 0}
#tme-box-app .app-resume-card button{border:0;background:#fff;color:#5d4ada;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;flex-shrink:0}
#tme-box-app .app-home-note{text-align:center;color:#8790ac;font:9px system-ui;letter-spacing:1px;margin-top:27px}
#tme-box-app .back{background:none;border:0;padding:0;color:#6c75a0;font-size:12px;margin-bottom:19px}
#tme-box-app .app-subject-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
#tme-box-app .app-subject-card{display:flex;align-items:center;gap:17px;text-align:left;background:#fff;border:1px solid #e1e5f5;border-radius:19px;padding:24px}
#tme-box-app .app-subject-card>span:nth-child(2){min-width:0;flex:1}
#tme-box-app .app-subject-icon{width:52px;height:54px;display:grid;place-items:center;background:#edf0ff;color:#6556d8;border-radius:15px;font-size:25px;flex-shrink:0}
#tme-box-app .app-subject-card strong{font-size:17px;line-height:1.7}
#tme-box-app .app-subject-card small{display:block;font-size:11px;color:#7a83a0;margin-top:4px}
#tme-box-app .app-subject-card .app-subject-progress{color:#7765c7;font-size:10px}
#tme-box-app .app-subject-card>svg{margin-left:auto;width:17px;color:#949ec0}
#tme-box-app .quiz{max-width:740px;margin:0 auto}
#tme-box-app .topics-screen .app-heading{margin-bottom:12px}
#tme-box-app .app-topic-hint{font-size:11px;color:#7b85a3;margin:8px 0 24px;line-height:1.9}
#tme-box-app .search{border-color:#e0e4f5;border-radius:13px;padding:13px 16px;background:white;font-size:13px}
#tme-box-app .row{position:relative;background:white;border-color:#e1e5f4;border-radius:16px;padding:17px 18px;gap:12px;margin:12px 0;align-items:center;flex-wrap:nowrap}
#tme-box-app .row>span{flex:1 1 auto;min-width:0}
#tme-box-app .row b{font-size:14px}
#tme-box-app .row small{display:block;font-size:11px;color:#8490aa;margin-top:4px}
#tme-box-app .app-topic-copy{flex:1;min-width:0}
#tme-box-app .app-mixed{background:linear-gradient(125deg,#edf2ff,#f3edff);border-color:#d2d5fd}
#tme-box-app .primary{background:linear-gradient(110deg,#3266f3,#7848e6);border:0;border-radius:13px;box-shadow:0 6px 16px #6355e324;color:#fff;min-height:45px;line-height:1.6}
#tme-box-app .primary:disabled{background:#e3e6f5;color:#8b95b5;box-shadow:none}
#tme-box-app .row .primary{width:41px;min-width:41px;height:41px;min-height:41px;flex:0 0 41px;padding:10px;display:grid;place-items:center;border-radius:12px}
#tme-box-app .row .primary svg{width:19px;height:19px}
#tme-box-app .app-topic-extra{position:relative;background:none;border:0;margin:0;flex-shrink:0}
#tme-box-app .app-topic-extra>summary{list-style:none;padding:7px 2px;color:#8790ad;cursor:pointer;font:20px system-ui}
#tme-box-app .app-topic-extra>summary::-webkit-details-marker{display:none}
#tme-box-app .app-topic-extra .secondary{position:absolute;right:0;top:36px;width:150px;background:#fff;border:1px solid #dce0f6;z-index:5;box-shadow:0 5px 20px #52589022;font-size:11px;padding:12px}
#tme-box-app .secondary{border-color:#dde2f4;border-radius:11px;color:#73769b}
#tme-box-app .panel{background:#fff;border-color:#e1e5f4;border-radius:21px;box-shadow:0 6px 25px #4649aa05}
#tme-box-app .study-label{background:#eeeaff;color:#7a5cd5;font-size:10px;letter-spacing:.3px}
#tme-box-app .study-call{background:transparent;border:0;padding:15px 0 0;margin-top:15px}
#tme-box-app .study-call>p:first-child{display:none}
#tme-box-app .study-call .primary{display:block;width:100%;min-height:55px;font-size:14px}
#tme-box-app .study-hint{font-size:10px;color:#8d96b1}
#tme-box-app .source-shine{background:linear-gradient(115deg,#4a79f7,#baa8ff,#eff0ff,#926ae9,#4878ec);background-size:300% 300%;box-shadow:0 0 14px #8160e92b}
#tme-box-app .source-shine:after{background:#f6f5ff;color:#7b7d9f;font-size:10px}
#tme-box-app .question{font-size:23px;line-height:1.9}
#tme-box-app details{background:#f0f2ff;border-color:#e0e3f8;border-radius:13px}
#tme-box-app summary{color:#6a6d9d;font-size:12px}
#tme-box-app .question-tools{gap:9px;margin:15px 0 20px}
#tme-box-app .question-tools .secondary{font-size:11px;padding:8px 11px;min-height:35px}
#tme-box-app .option{background:#fff;border-color:#e0e4f4;border-radius:14px;font-size:14px;padding:15px 17px}
#tme-box-app .letter{border-color:#e1e4f2;color:#8a91ad;border-radius:10px;font-size:11px;min-width:31px;height:31px}
#tme-box-app .option.correct{background:#eaf7f0;border-color:#80b59b}
#tme-box-app .option.correct .letter{background:#329367;border-color:#329367;color:white}
#tme-box-app .option.wrong{background:#fff0f3;border-color:#e1a2b3}
#tme-box-app .feedback{background:#edf7f0;border-color:#8bbf9d;border-radius:13px;font-size:13px;padding:17px 19px}
#tme-box-app .feedback.error{background:#fff4eb;border-color:#e9be9f}
#tme-box-app .feedback p{font-size:12px;line-height:1.9}
#tme-box-app .progress,#tme-box-app .mini-progress{background:#e5e7f5}
#tme-box-app .progress>div,#tme-box-app .mini-progress>span{background:linear-gradient(90deg,#3e70f5,#9564f1)}
#tme-box-app .stat{background:#fff;border:1px solid #e2e6f5;border-radius:17px;color:#7b83a1;font-size:12px}
#tme-box-app .stat b,#tme-box-app .score,#tme-box-app .result-percent{color:#6251d8}
#tme-box-app .stat small{color:#9098b2;font-size:10px}
#tme-box-app .result-counts{color:#7b83a1}
#tme-box-app .app-account-tools{display:grid;gap:12px;margin-top:25px}
#tme-box-app .app-account-tools button{display:flex;align-items:center;gap:13px;text-align:left;background:#fff;padding:17px}
#tme-box-app .access-banner{border-color:#dfdef7;background:#f0eeff;border-radius:17px;gap:13px}
#tme-box-app .access-banner small{font-size:11px;color:#7d80a4}
#tme-box-app .access-banner.pro{background:#eeeaff;border-color:#d9d1f7;color:#7053c9}
#tme-box-app .buy-pro{background:linear-gradient(110deg,#426af4,#8b4adf);border-radius:12px;color:#fff}
#tme-box-app .box-pro-badge{background:#eeeaff;color:#7954d4}
#tme-box-app .box-pro-price{color:#7750d4}
#tme-box-app .box-pro-buy{box-shadow:0 5px 14px #7457df33}
#tme-box-app .app-bottom{display:none}
#tme-box-app button:focus-visible,#tme-box-app a:focus-visible,#tme-box-app summary:focus-visible,#tme-box-app input:focus-visible{outline:3px solid #a25afa;outline-offset:3px}
@media(max-width:1100px){#tme-box-app .app-rail{width:210px;padding:26px 17px}#tme-box-app .app-brand b{font-size:14px}#tme-box-app .app-brand small{font-size:8px}#tme-box-app .app-workspace{margin-left:210px}#tme-box-app .app-topbar{margin:0 30px}#tme-box-app .app-workspace>main{padding:35px 30px 70px}#tme-box-app .app-class-grid{grid-template-columns:repeat(3,1fr)}#tme-box-app h1{font-size:25px}}
@media(max-width:782px){body.admin-bar #tme-box-app .app-rail{top:46px}}
@media(max-width:720px){
 #tme-box-app .app-rail{display:none}#tme-box-app .app-workspace{margin:0}#tme-box-app .app-topbar{height:87px;margin:0 23px;border:0}#tme-box-app .app-mobile-brand{display:block}#tme-box-app .app-desktop-caption{display:none}#tme-box-app .app-brand b{font-size:16px}#tme-box-app .app-brand small{font-size:8px;margin:0}#tme-box-app .app-brandmark{width:37px;height:40px;border-radius:12px}#tme-box-app .app-brand{gap:9px}#tme-box-app .app-avatar{width:32px;height:32px}#tme-box-app .app-top-actions{gap:8px}#tme-box-app .app-quota{font-size:8px;padding:5px 7px;white-space:nowrap}
 #tme-box-app .app-workspace>main{padding:18px 23px 112px}#tme-box-app h1{font-size:24px;line-height:1.7}#tme-box-app .app-heading{display:block;margin-bottom:25px}#tme-box-app .app-heading p{font-size:11px}#tme-box-app .app-eyebrow{font-size:9px}#tme-box-app .app-total{display:none}#tme-box-app .app-class-grid{grid-template-columns:1fr 1fr;gap:12px}#tme-box-app .app-class-card{min-height:108px;padding:13px 18px;border-radius:18px}#tme-box-app .app-class-num{width:45px;height:42px;border-radius:13px;font-size:25px}#tme-box-app .app-class-card b{font-size:12px;margin-top:10px}#tme-box-app .app-class-card>svg{width:15px;height:15px;right:14px;bottom:17px}#tme-box-app .app-class-card:last-child:nth-child(odd){grid-column:span 2;min-height:75px;display:flex;align-items:center;gap:17px}#tme-box-app .app-class-card:last-child:nth-child(odd) b{margin:0}#tme-box-app .app-class-card:last-child:nth-child(odd)>svg{bottom:28px}
 #tme-box-app .app-resume-card{padding:18px;border-radius:19px;margin-top:17px;gap:10px}#tme-box-app .app-resume-content{gap:12px}#tme-box-app .app-resume-card small{font-size:9px}#tme-box-app .app-resume-card strong{font-size:12px}#tme-box-app .app-resume-card p{font-size:10px}#tme-box-app .app-resume-icon{width:36px;height:44px;border-radius:11px}#tme-box-app .app-resume-card button{width:34px;height:34px}#tme-box-app .app-resume-card button svg{width:17px;height:17px}#tme-box-app .app-home-note{font-size:8px;margin-top:20px}
 #tme-box-app .app-bottom{position:fixed;bottom:0;left:0;right:0;height:calc(75px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-around;gap:5px;padding:9px 13px calc(10px + env(safe-area-inset-bottom));background:#ffffffed;border-top:1px solid #e4e8f6;box-shadow:0 -5px 24px #4b4da608;backdrop-filter:blur(14px);z-index:20}#tme-box-app .app-bottom .nav{display:grid;place-items:center;gap:4px;border:0;background:none;color:#8c94ad;min-width:60px;padding:0;font-weight:400}#tme-box-app .app-bottom .nav>svg{width:21px;height:21px}#tme-box-app .app-bottom .nav>span{display:block;font-size:9px;line-height:1.5;margin-top:3px}#tme-box-app .app-bottom .nav.active{color:#5750d8}#tme-box-app .app-bottom .nav.active>svg{background:#eeebff;box-shadow:0 0 0 6px #eeebff;border-radius:5px}
 #tme-box-app .app-subject-grid{grid-template-columns:1fr;gap:12px}#tme-box-app .app-subject-card{padding:19px 17px}#tme-box-app .app-subject-card strong{font-size:14px}#tme-box-app .app-subject-card small{font-size:10px}#tme-box-app .app-subject-icon{width:44px;height:47px;font-size:22px}#tme-box-app .back{font-size:11px;margin-bottom:18px}#tme-box-app .row{padding:16px 13px;gap:9px}#tme-box-app .row b{font-size:12px}#tme-box-app .row small{font-size:10px}#tme-box-app .row .primary{width:35px;height:37px;min-height:37px;padding:8px;border-radius:10px}#tme-box-app .panel{padding:19px 15px}#tme-box-app .question{font-size:20px}#tme-box-app .option{padding:14px;font-size:13px}#tme-box-app .study-call .primary{font-size:12px}#tme-box-app .foot{bottom:75px}#tme-box-app .foot>small{font-size:9px}#tme-box-app .foot .primary{font-size:12px;padding:11px 14px}#tme-box-app .stats{gap:8px}#tme-box-app .stat{padding:18px 6px;font-size:10px}#tme-box-app .stat b{font-size:25px}#tme-box-app .stat small{font-size:9px}#tme-box-app .quizhead .muted{font-size:10px}#tme-box-app .quizhead{gap:8px}#tme-box-app .quizhead+div>.muted{font-size:11px}#tme-box-app .quizhead+div>b{font-size:12px}
}
@media(max-width:370px){#tme-box-app .app-topbar{margin:0 16px}#tme-box-app .app-workspace>main{padding-left:16px;padding-right:16px}#tme-box-app .app-brand b{font-size:14px}#tme-box-app .app-quota{font-size:7px;padding:4px 5px}}
@media(prefers-reduced-motion:reduce){#tme-box-app .app-class-card{transition:none}}

#tme-box-app .app-history-soon{border:1px dashed #b6a6eb;background:#f6f3ff;cursor:default}#tme-box-app .app-history-soon .history-soon-badge{font-size:9px;letter-spacing:.4px;color:#7653c5;background:#eae3fb;border-radius:20px;padding:6px 8px;white-space:nowrap}#tme-box-app .app-history-soon small{color:#7653c5}

#tme-box-app .app-practice-loading{text-align:center;padding:35px 22px;max-width:720px;margin:20px auto}#tme-box-app .app-practice-loading h1{font-size:22px;line-height:1.8}#tme-box-app .app-practice-loading small{display:block;color:#737d9b;line-height:1.9}#tme-box-app .practice-spinner{display:inline-block;width:34px;height:34px;border:3px solid #e8e2fa;border-top-color:#7754da;border-radius:50%;animation:practice-spin .8s linear infinite}#tme-box-app .practice-skeleton{height:170px;border-radius:15px;background:linear-gradient(110deg,#f3f0fb,#eae5fa,#f3f0fb);margin:25px auto 0;max-width:420px}@keyframes practice-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#tme-box-app .practice-spinner{animation:none}}

#tme-box-app .app-random-card{width:100%;display:flex;align-items:center;gap:15px;text-align:left;padding:18px 20px;margin:0 0 22px;border:1px solid #d9cff5;border-radius:17px;background:linear-gradient(110deg,#f1ecff,#edf4ff);color:#52429e}#tme-box-app .app-random-card>span:nth-child(2){flex:1;min-width:0}#tme-box-app .app-random-card strong{font-size:16px;line-height:1.8}#tme-box-app .app-random-card small{display:block;font-size:11px;line-height:1.8;color:#7c729d}#tme-box-app .app-random-card>svg{width:20px;height:20px;flex:none}#tme-box-app .random-dice{display:grid;place-items:center;width:46px;height:46px;background:#fff;border-radius:13px;font-size:26px;flex:none}@media(max-width:650px){#tme-box-app .app-random-card{padding:15px 16px;gap:12px;margin-bottom:16px}#tme-box-app .app-random-card strong{font-size:14px}#tme-box-app .app-random-card small{font-size:10px}}
