:root{--green:#285f45;--dark:#183f30;--lime:#d6ed95;--ink:#263c31;--muted:#7d877e;--line:#e7ebe4;--bg:#f8f9f5;--white:#fff;--gold:#d89b37}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Tajawal,Arial,sans-serif;color:var(--ink);font-size:16px}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #d99c39;outline-offset:4px}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}button{border:0;background:none}.app{min-height:100vh}.sidebar{position:fixed;right:0;top:0;bottom:0;width:242px;border-left:1px solid var(--line);background:#fff;padding:39px 23px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:10px;color:var(--green);font-size:24px;font-weight:900;white-space:nowrap;letter-spacing:-.7px}.brand-mark{width:42px;height:48px;display:grid;place-items:center;background:#edf3e7;border-radius:15px 15px 20px 20px}.brand-mark svg{width:31px;height:31px}.brand small{display:block;font-size:12px;font-weight:500;letter-spacing:0;color:var(--muted);margin-top:4px}.nav-label{font-size:13px;color:#a0a69e;margin:48px 15px 14px}.nav-item{display:flex;align-items:center;gap:13px;width:100%;padding:15px 14px;margin-bottom:7px;border-radius:11px;text-align:right;font-weight:600;color:#798278;white-space:nowrap;font-size:16px}.nav-item.active{background:#eaf3e2;color:var(--green);font-weight:800}.nav-item:hover{background:#f1f5ed}.nav-dot{width:7px;height:7px;background:#d3ac55;border-radius:50%;margin-right:auto}.sidebar-bottom{margin-top:auto;padding-top:30px}.wisdom{text-align:center;background:#f6f8f1;border:1px solid #e9eede;border-radius:15px;padding:24px 10px}.wisdom>span{display:block;color:#6e8f57;margin-bottom:10px}.wisdom b{font-size:15px}.wisdom p{font-size:14px;line-height:1.8;color:var(--muted);margin-top:8px}.profile-link{display:flex;gap:10px;align-items:center;text-align:right;padding:22px 0 0;width:100%}.avatar,.mini-avatar{background:#ede9da;border:3px solid #fff;color:#7c795e;border-radius:50%;display:grid;place-items:center;font-size:20px;font-weight:800;width:43px;height:43px}.profile-link b{font-size:14px}.profile-link small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.profile-link>span:last-child{margin-right:auto;color:#8b9289}.profile-link svg{width:19px}.workspace{margin-right:242px}.topbar{height:88px;padding:0 42px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#ffffffb0}.breadcrumb{font-size:14px;color:#90978d}.breadcrumb span{margin:0 12px;color:#c5cabf}.breadcrumb b{color:#54624f;font-weight:500}.top-stats{display:flex;align-items:center;gap:23px}.top-stats>span{display:flex;gap:7px;align-items:center;font-size:14px;color:#8a8e82}.top-stats b{color:#5e624b;font-size:18px}.top-stats i{height:22px;width:1px;background:var(--line)}.fire{font-size:22px}.xp-star{color:#d3a34b;font-size:30px}.content-layout{max-width:1450px;margin:auto;display:grid;grid-template-columns:minmax(420px,1fr) 290px;gap:30px;padding:33px 40px 10px}.welcome{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.eyebrow{font-size:14px;color:var(--muted);margin-bottom:9px}.welcome h1{font-size:28px;line-height:1.4;font-weight:800}.welcome p{color:var(--muted);font-size:15px;margin-top:8px}.date-badge{font-size:13px;color:var(--green);background:#edf2e6;border:1px solid #e4eadb;border-radius:8px;padding:9px 12px;white-space:nowrap}.hero{min-height:215px;border-radius:20px;background:var(--green);color:white;display:flex;align-items:center;justify-content:space-between;padding:28px 29px;position:relative;overflow:hidden}.hero:before{content:"";position:absolute;width:310px;height:310px;border:1px solid #ffffff0c;border-radius:50%;left:-35px;top:-80px}.hero:after{content:"";position:absolute;width:230px;height:230px;border:1px solid #ffffff12;border-radius:50%;left:0;top:-40px}.hero-copy{position:relative;z-index:1}.hero-tag{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#e0ecca;background:#ffffff13;border:1px solid #ffffff15;padding:6px 10px;border-radius:6px;margin-bottom:12px}.hero h2{font-size:28px;line-height:1.5;max-width:320px}.hero p{color:#c2d6c5;line-height:1.8;font-size:14px;margin:6px 0 19px}.primary{background:var(--green);color:white;padding:13px 25px;border-radius:10px;font-size:16px;font-weight:800;box-shadow:0 3px 0 #173e2b;transition:transform .15s,background .15s}.primary:hover{background:#34744f;transform:translateY(-1px)}.primary:active{transform:translateY(2px);box-shadow:none}.primary:disabled{background:#ccd2c8;box-shadow:0 3px 0 #b1b9ac;color:#f7f8f5}.hero .primary{background:var(--lime);color:#2a512e;box-shadow:0 3px 0 #a4bf6c;min-width:162px}.mascot{width:177px;height:180px;flex-shrink:0;z-index:1}.mascot svg{width:100%;height:100%;stroke:none;overflow:visible}.quick-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:20px 0 30px;border:1px solid var(--line);border-radius:14px;background:white;padding:18px 6px}.quick-stat{display:flex;align-items:center;justify-content:center;gap:11px;border-left:1px solid var(--line)}.quick-stat:last-child{border:0}.stat-icon{height:40px;width:40px;border-radius:12px;display:grid;place-items:center;background:#f0f5e8;color:#66863f}.stat-icon.gold{background:#faf3e2;color:#c29540}.stat-icon.blue{background:#ebf0f6;color:#7391aa}.quick-stat strong{font-size:21px}.quick-stat small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-head h2{font-size:20px}.section-head small{font-size:13px;color:var(--muted)}.unit{border:1px solid var(--line);background:white;border-radius:16px;overflow:hidden}.unit-heading{padding:22px 24px;display:flex;align-items:center;gap:15px;background:#f1f5e9;border-bottom:1px solid #e6ecdd}.unit-symbol{width:46px;height:46px;background:#e2edce;border:1px solid #d5e2bf;border-radius:13px;display:grid;place-items:center;color:#61813d}.unit-heading h3{font-size:18px}.unit-heading p{font-size:13px;color:#829073;margin-top:6px}.unit-count{margin-right:auto;color:#7d906d;font-size:13px;white-space:nowrap}.learning-path{min-height:485px;position:relative;padding:26px 25px 20px;display:flex;flex-direction:column;align-items:center;gap:18px;overflow:hidden}.learning-path:before{position:absolute;content:"";top:45px;bottom:50px;left:50%;border-right:3px dashed #e6ebdf}.path-row{position:relative;display:flex;align-items:center;width:100%;justify-content:center;min-height:77px}.lesson-node{position:relative;z-index:1;display:grid;place-items:center;width:66px;height:66px;border-radius:50%;background:#f1f3ed;color:#b8c0b0;border:5px solid white;box-shadow:0 5px 0 #dce2d5,0 0 0 1px #e6eade}.lesson-node.current{background:#8db849;color:white;box-shadow:0 5px 0 #5d852b,0 0 0 6px #edf4e3}.lesson-node.done{background:#dcebc1;color:#628436;box-shadow:0 5px 0 #b8cf91,0 0 0 1px #dce5ce}.lesson-node svg{width:28px;height:28px;stroke-width:2.4}.path-row:nth-child(2){transform:translateX(-48px)}.path-row:nth-child(3){transform:translateX(-72px)}.path-row:nth-child(4){transform:translateX(-25px)}.path-row:nth-child(5){transform:translateX(35px)}.path-row:nth-child(6){transform:translateX(58px)}.lesson-label{position:absolute;right:calc(50% + 53px);width:180px;text-align:left}.lesson-label b{font-size:15px;font-weight:700}.lesson-label small{display:block;color:#9aa391;font-size:12px;margin-top:6px}.lesson-label.locked{color:#9ba593}.path-row:nth-child(2n) .lesson-label{right:auto;left:calc(50% + 53px);text-align:right}.current-badge{position:absolute;left:calc(50% + 51px);white-space:nowrap;padding:6px 10px;border-radius:8px;background:#eef5e3;color:#759741;font-size:12px;font-weight:700}.path-decoration{position:absolute;left:22px;top:50px;color:#d7e3c8;transform:rotate(-25deg)}.path-decoration svg{width:60px;height:60px;stroke-width:1}.path-footer{display:flex;gap:9px;justify-content:center;padding:14px;background:#fcfcfa;color:#8e9983;font-size:12px;border-top:1px solid #eff1e9}.path-footer svg{width:16px;height:16px}.right-rail{padding-top:4px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;margin-bottom:20px}.card-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.card-title h3{font-size:17px}.card-title>span{color:#a7b394}.card-title .text-btn{font-size:12px;color:#788a61;font-weight:700;padding:0}.daily-progress{display:flex;align-items:center;gap:16px}.progress-ring{--p:0;flex-shrink:0;width:73px;height:73px;border-radius:50%;background:conic-gradient(#86ad47 calc(var(--p)*1%),#eef1e8 0);position:relative;display:grid;place-items:center}.progress-ring:before{position:absolute;inset:7px;background:#fff;content:"";border-radius:50%}.progress-ring strong{z-index:1;font-size:21px;color:#678d3a;direction:ltr}.daily-progress b{font-size:16px}.daily-progress p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:5px}.days{display:flex;justify-content:space-between;margin-top:23px;gap:5px}.day{text-align:center;font-size:11px;color:#939a8c}.day span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#f0f3e9;margin-top:8px;color:#b3bea2;font-size:14px}.day span.active{background:#8baf54;color:white}.day span.today{outline:1px solid #97b46f;outline-offset:2px}.mini-quest{display:flex;align-items:center;gap:11px;margin-bottom:20px}.mini-quest:last-child{margin:0}.quest-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#f8f3e7;color:#c3984d;flex-shrink:0}.quest-icon svg{width:20px}.quest-details{flex:1}.quest-details p{font-size:13px;font-weight:600}.quest-meta{display:flex;justify-content:space-between;font-size:11px;color:#a3a897;margin-top:6px}.bar{height:5px;border-radius:10px;background:#eef1e8;overflow:hidden;margin-top:8px}.bar i{display:block;height:100%;background:#a6c36c;border-radius:10px}.tip-card{background:#f7f3e9;border-color:#ece6d7}.tip-title{display:flex;gap:9px;color:#9b8553;font-size:14px;align-items:center}.tip-title svg{width:20px}.tip-card p{font-size:15px;line-height:1.9;margin:12px 0;color:#746b52}.tip-card small{font-size:12px;color:#a99a78}.review-callout{padding:20px 8px;display:flex;gap:12px;align-items:center}.review-callout>span{color:#8da66c}.review-callout b{font-size:14px}.review-callout p{font-size:12px;color:#97a08c;line-height:1.8;margin-top:5px}footer{font-size:12px;color:#9aa28f;padding:28px 40px 22px;max-width:1450px;margin:auto}footer>span{margin:0 8px}.demo-label{float:left}dialog{border:1px solid var(--line);border-radius:22px;width:min(620px,calc(100% - 28px));padding:0;box-shadow:0 25px 100px #153b3440;color:var(--ink);max-height:90vh}dialog::backdrop{background:#1c342b80;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:center;padding:22px 26px;gap:18px;border-bottom:1px solid var(--line)}.close-btn{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#f2f4ed;color:#7e8875;font-size:24px;flex-shrink:0}.dialog-head .bar{height:9px;flex:1;margin:0}.dialog-head small{color:#7c8c6f;font-size:14px;white-space:nowrap}.dialog-body{padding:30px}.dialog-body h2{font-size:25px;line-height:1.6;margin:9px 0 16px}.lesson-reading{background:#f3f6ed;border:1px solid #e4ebd8;padding:23px;border-radius:14px;line-height:2;font-size:17px}.lesson-reading p+p{margin-top:12px}.dialog-foot{border-top:1px solid var(--line);padding:20px 28px;display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-foot small{color:var(--muted);font-size:13px}.question-kicker{font-size:13px;color:#8b9c76}.answers{display:grid;gap:12px}.answer{border:2px solid #e7ebe1;border-bottom-width:4px;border-radius:12px;padding:17px;text-align:right;display:flex;gap:12px;align-items:center;background:white;font-size:16px;line-height:1.6}.answer:hover:not(:disabled){background:#f5f8f0;border-color:#ccdcb6}.answer.selected{border-color:#8eac66;background:#f0f6e7}.answer.correct{border-color:#83ac57;background:#eef7e6}.answer.wrong{border-color:#d39b89;background:#fcf1ed}.answer-letter{width:28px;height:28px;border:1px solid #dbe2d1;border-radius:7px;display:grid;place-items:center;flex-shrink:0;color:#8b987b;font-size:13px}.feedback{margin-top:18px;border-radius:12px;padding:16px;line-height:1.8;background:#edf5e3;color:#52752f;font-size:15px}.feedback.wrong{background:#fcf1ed;color:#95654c}.result{text-align:center;padding:32px 20px}.result .mascot{margin:auto;height:150px}.result h2{font-size:28px;margin:20px 0 10px}.result p{color:var(--muted);line-height:1.8}.result-stats{display:flex;justify-content:center;gap:15px;margin:25px 0}.result-stats>div{background:#f2f6e9;border-radius:12px;padding:18px;width:140px}.result-stats strong{display:block;font-size:26px;color:#6f923e;margin-bottom:8px}.result-stats small{color:#8e9c78}.page-heading{margin-bottom:25px}.page-heading h1{font-size:29px;margin-bottom:10px}.page-heading p{color:var(--muted);line-height:1.8;font-size:15px}.search-box{display:flex;align-items:center;gap:12px;background:white;border:1px solid var(--line);border-radius:12px;padding:12px 15px;margin:20px 0}.search-box svg{color:#8b9a7d}.search-box input{border:0;background:transparent;outline:none;flex:1;min-width:0;font-size:16px}.filters{display:flex;gap:9px;margin-bottom:22px;flex-wrap:wrap}.chip{border:1px solid #e1e7d8;border-radius:20px;padding:8px 17px;color:#8c987e;font-size:14px;background:white}.chip.active{background:var(--green);border-color:var(--green);color:white}.product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:17px}.product{background:white;border:1px solid var(--line);border-radius:16px;padding:15px;text-align:right;transition:transform .2s}.product:hover{transform:translateY(-4px)}.product-art{height:138px;background:#f0f4e6;border-radius:11px;display:grid;place-items:center;margin-bottom:15px}.product-art svg{width:110px;height:125px}.product h3{font-size:19px}.product p{font-size:13px;color:var(--muted);margin:8px 0;line-height:1.6}.product small{font-size:12px;color:#8ca36b}.notice{padding:12px 16px;background:#f2f4e9;border:1px solid #e5eadb;border-radius:10px;font-size:13px;line-height:1.9;color:#82916f;margin-bottom:20px}.empty{text-align:center;padding:50px;color:var(--muted);grid-column:1/-1;line-height:1.8}.review-list{display:grid;gap:12px}.review-item{display:flex;align-items:center;gap:15px;padding:20px;border:1px solid var(--line);border-radius:14px;background:white}.review-item h3{font-size:17px;margin-bottom:7px}.review-item p{font-size:13px;color:var(--muted)}.review-item button{margin-right:auto;white-space:nowrap;font-size:13px}.achievement-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.achievement{padding:30px 15px;background:white;border:1px solid var(--line);border-radius:16px;text-align:center}.achievement .medal{margin:0 auto 18px;width:75px;height:75px;background:#f6efdc;color:#c1a365;border-radius:50%;display:grid;place-items:center;border:5px double #e5d7ae}.achievement .medal svg{width:35px;height:35px}.achievement.locked{filter:grayscale(1);opacity:.6}.achievement h3{font-size:18px}.achievement p{font-size:14px;color:var(--muted);line-height:1.8;margin-top:10px}.achievement small{display:block;color:#849665;margin-top:12px}.goal-card{padding:24px;margin-bottom:16px;background:white;border:1px solid var(--line);border-radius:15px}.goal-card h3{margin-bottom:12px;font-size:18px}.goal-card p{color:var(--muted);font-size:14px;line-height:1.8}.goal-card .bar{height:8px;margin:18px 0 10px}.goal-bottom{display:flex;justify-content:space-between;font-size:13px;color:#8f9b80}.field{display:block;margin:20px 0}.field span{display:block;margin-bottom:10px;font-weight:700}.field input{width:100%;padding:14px;border:1px solid #dfe6d6;border-radius:10px}.profile-panel{padding:26px}.secondary{border:1px solid #d9e3cc;color:var(--green);padding:11px 20px;border-radius:9px;font-weight:700}.profile-actions{display:flex;justify-content:space-between;gap:15px}.danger{color:#a27860;font-size:13px}.product-detail .product-art{height:180px}.product-detail dl{line-height:1.9}.product-detail dt{font-weight:800;margin-top:16px}.product-detail dd{margin:4px 0;color:#7e8974;font-size:15px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(100px);background:var(--dark);color:white;padding:15px 25px;border-radius:12px;z-index:200;opacity:0;transition:.25s;pointer-events:none;text-align:center;max-width:90vw;font-size:15px}#toast.show{transform:translateX(-50%) translateY(0);opacity:1}@media(min-width:1600px){.hero{min-height:235px}.mascot{width:205px;height:200px}.hero h2{font-size:32px}}@media(max-width:1250px){.sidebar{width:215px;padding-left:15px;padding-right:15px}.workspace{margin-right:215px}.content-layout{padding:28px 25px;gap:22px;grid-template-columns:minmax(350px,1fr) 255px}.topbar{padding:0 25px}.brand{font-size:21px}.hero{padding:24px 22px}.hero h2{font-size:24px}.mascot{width:140px}.card{padding:18px}.date-badge{display:none}.lesson-label{width:145px}.current-badge{display:none}}@media(max-width:1050px){.content-layout{grid-template-columns:1fr;max-width:780px}.right-rail{display:grid;grid-template-columns:1fr 1fr;gap:20px}.right-rail .card{margin:0}.review-callout{display:none}.right-rail .tip-card{grid-column:1/-1}.hero h2{font-size:30px}.mascot{width:190px}.learning-path{min-height:510px}.lesson-label{width:185px}.demo-label{float:none;display:block;margin:10px 0 0}footer{max-width:780px}}@media(max-width:700px){.sidebar{height:70px;top:auto;bottom:0;width:100%;padding:0;border-left:0;border-top:1px solid var(--line)}.sidebar .brand,.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;height:100%;justify-content:space-around;align-items:center}.nav-item{width:auto;flex:1;font-size:10px;display:flex;flex-direction:column;gap:6px;padding:9px 3px;margin:0;border-radius:0;font-weight:700}.nav-item svg{width:21px;height:21px}.nav-dot{display:none}.workspace{margin:0;padding-bottom:70px}.topbar{height:71px;padding:0 19px}.breadcrumb{font-size:12px}.breadcrumb span{margin:0 7px}.top-stats{gap:11px}.top-stats>span{gap:4px}.desktop-text,.top-stats i{display:none}.mini-avatar{width:34px;height:34px;font-size:17px}.fire{font-size:18px}.xp-star{font-size:23px}.top-stats b{font-size:16px}.content-layout{padding:24px 17px 8px;gap:24px;display:block}.welcome h1{font-size:25px}.welcome p{font-size:14px}.hero{min-height:218px;padding:23px 19px}.hero h2{font-size:24px}.hero p{font-size:13px;max-width:220px}.hero-tag{font-size:11px}.mascot{width:125px;height:160px;margin-left:-5px}.hero .primary{min-width:135px;padding:11px 17px;font-size:15px}.quick-stats{padding:15px 0;margin-bottom:25px;gap:2px}.quick-stat{gap:7px}.stat-icon{width:29px;height:33px;border-radius:8px}.stat-icon svg{width:19px}.quick-stat strong{font-size:18px}.quick-stat small{font-size:10px}.section-head h2{font-size:19px}.unit-heading{padding:18px 16px;gap:12px}.unit-heading h3{font-size:16px}.unit-heading p{font-size:11px}.unit-symbol{width:38px;height:38px}.unit-count{font-size:11px}.learning-path{padding:22px 10px;gap:13px}.lesson-label{width:126px;right:calc(50% + 43px)}.lesson-label b{font-size:13px}.lesson-label small{font-size:11px}.path-row:nth-child(2n) .lesson-label{left:calc(50% + 43px)}.path-row:nth-child(2){transform:translateX(-22px)}.path-row:nth-child(3){transform:translateX(-30px)}.path-row:nth-child(4){transform:translateX(-12px)}.path-row:nth-child(5){transform:translateX(23px)}.path-row:nth-child(6){transform:translateX(30px)}.lesson-node{width:57px;height:57px}.path-decoration{left:6px;top:30px}.path-decoration svg{width:37px}.right-rail{margin-top:24px;gap:13px}.card{padding:15px}.card-title h3{font-size:15px}.card-title{margin-bottom:16px}.daily-progress{gap:10px;flex-wrap:wrap}.progress-ring{width:58px;height:58px}.progress-ring strong{font-size:17px}.daily-progress b{font-size:14px}.daily-progress p{font-size:11px}.days{gap:3px}.day{font-size:9px}.day span{width:18px;height:18px;font-size:11px}.mini-quest{gap:7px}.quest-icon{width:28px;height:28px}.quest-details p{font-size:11px}.quest-meta{font-size:10px}.card-title .text-btn{font-size:10px}.tip-card p{font-size:14px}.page-heading h1{font-size:26px}.product-grid{gap:12px}.product{padding:12px}.product-art{height:120px}.product h3{font-size:18px}.review-item{padding:16px;gap:10px;flex-wrap:wrap}.review-item h3{font-size:16px}.dialog-body{padding:24px 20px}.dialog-body h2{font-size:22px}.dialog-foot{padding:18px 20px}.dialog-foot small{font-size:11px}.lesson-reading{font-size:16px;padding:18px}.answer{padding:13px;font-size:15px}.dialog-head{padding:17px 20px}footer{padding:25px 20px}.achievement-grid{gap:12px}.achievement{padding:23px 10px}.achievement h3{font-size:16px}.achievement p{font-size:13px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:420px){.hero{min-height:258px;padding:23px 19px}.hero .mascot{position:absolute;left:0;bottom:25px;width:102px;height:145px}.hero-copy{width:100%}.hero h2{font-size:23px;max-width:220px}.hero p{max-width:205px}.hero-tag svg{width:18px;height:18px}.hero-tag{margin-bottom:14px}}
/* Multiple journeys and imported product knowledge */
.text-link{color:var(--green);font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:4px;padding:4px 0}.journey-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:0 0 27px}.journey-card{display:grid;grid-template-columns:42px 1fr;column-gap:12px;row-gap:12px;align-items:center;text-align:right;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;transition:border-color .15s,transform .15s}.journey-card:hover{transform:translateY(-2px);border-color:#abbf92}.journey-card.selected{background:#f0f5e8;border:2px solid #91af69;padding:17px}.journey-icon{width:42px;height:42px;color:var(--track-color);background:color-mix(in srgb,var(--track-color) 12%,white);border-radius:12px;display:grid;place-items:center}.journey-copy b{display:block;font-size:17px}.journey-copy small{display:block;font-size:13px;line-height:1.7;color:#8a977d;margin-top:4px}.journey-count{grid-column:1/-1;font-size:13px;color:#8e9b82}.journey-card .bar{grid-column:1/-1;margin:0;width:100%}.journey-card .bar i{background:var(--track-color)}#selected-journey{scroll-margin-top:20px}.journey-description{padding:17px 23px 7px;color:#849375;font-size:15px;line-height:1.8}.unit-picker{display:flex;gap:8px;padding:13px 20px 17px;flex-wrap:wrap}.unit-chip{font-size:13px;border:1px solid #e2e9d8;border-radius:8px;padding:8px 12px;color:#8b997e;background:white}.unit-chip.active{background:var(--green);border-color:var(--green);color:white}.unit-range{padding:12px 20px;border-top:1px solid #eff1e9;border-bottom:1px solid #eff1e9;background:#fcfcfa;font-size:13px;text-align:center;color:#81946b}.unit-range span{margin:0 9px;color:#b0bba4}.path-row:nth-child(7){transform:translateX(30px)}.path-row:nth-child(8){transform:translateX(-20px)}.source-card{background:#edf3e6;border-color:#e0e9d4}.source-card>strong{display:block;font-size:23px;color:#567b38;margin:17px 0 10px}.source-card p{font-size:14px;color:#819570;line-height:1.9;margin-bottom:12px}.source-card .text-link{font-size:12px}.source-explanation h2{font-size:23px;margin-bottom:14px}.source-explanation h3{font-size:18px;margin:24px 0 12px}.source-explanation p{font-size:16px;line-height:2;color:#77856b}.source-explanation small{color:#8c9982;font-size:13px}.source-links{padding-right:20px;margin:15px 0 25px;line-height:2.2}.source-links a{font-size:15px;color:var(--green);text-decoration:underline}.library-notice{display:flex;gap:12px;align-items:center}.library-notice>span:first-child{flex-shrink:0;color:#8ca66e}.library-notice .text-link{white-space:nowrap;font-size:12px;margin-right:auto}.filters .chip span{font-size:12px;opacity:.75;margin-right:5px}.library-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 20px;color:#88967b;font-size:14px}.library-controls select{appearance:none;-webkit-appearance:none;border:1px solid #e0e7d6;border-radius:8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b8b69' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat 12px center;padding:9px 12px 9px 35px;color:#5d704f;font:inherit;margin-right:7px;max-width:240px}.product{position:relative;overflow:hidden;display:flex;flex-direction:column;padding:13px;cursor:default}.product-open{width:100%;padding:0;text-align:right;flex:1}.product-art{position:relative;height:140px}.product-art .category-label{position:absolute;bottom:10px;right:10px;font-size:11px;background:#ffffffc9;color:#69834f;border-radius:6px;padding:5px 8px}.product h3{font-size:18px;line-height:1.5}.product p{font-size:13px;line-height:1.9;min-height:48px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.favorite-btn{position:absolute;top:22px;left:22px;z-index:1;width:32px;height:32px;display:grid;place-items:center;color:#95a684;border-radius:50%;background:#ffffffb3}.favorite-btn svg{width:19px;height:19px}.favorite-btn.saved{color:#b18c4c;background:#fff6dc}.favorite-btn.saved svg{fill:#e6d5a6}.product-state{font-size:11px;display:inline-block;padding:5px 8px;border-radius:5px;color:#859674;background:#f2f5eb;margin:4px 0 12px}.product-state.attention,.product-detail-tags .attention{color:#aa7c4e;background:#faf0e3}.product-state.incomplete{color:#969687;background:#f2f2eb}.product-study{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;border-top:1px solid var(--line);padding:13px 0 3px;color:#5c8140;font-weight:700}.product-study svg{width:19px;height:19px}.product-study:hover{color:#284b2b}.pagination{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:25px}.pagination span{color:#8d9c80;font-size:13px;text-align:center}.pagination .secondary{font-size:13px;padding:10px 17px}.pagination button:disabled{opacity:.4}.product-detail-tags{display:flex;gap:8px;flex-wrap:wrap;margin:5px 0 18px}.product-detail-tags span{font-size:12px;border-radius:6px;background:#f0f4e9;color:#889d70;padding:7px 9px}.product-summary{font-size:17px;line-height:1.9;color:#728363}.product-detail dl{margin-top:25px}.product-detail dt{font-size:17px}.product-detail dd{font-size:16px}.product-detail dd ul{padding-right:20px;margin:8px 0;line-height:1.9}.product-detail dd li{margin-bottom:9px}.product-detail dd small{display:block;font-size:13px;line-height:1.9;margin-top:10px;color:#9b9d8b}.topic-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.topic-tags span{background:#f5f5ee;border:1px solid #e8eade;border-radius:7px;padding:6px 9px;color:#899773;font-size:13px}.verified-note{background:#f0f4e8;border:1px solid #e1e9d5;border-radius:11px;padding:16px}.verified-note a{display:block;color:#58783e;text-decoration:underline;font-size:13px;margin-top:10px}.detail-journey{display:flex;align-items:center;gap:13px;background:#f8f8f1;border-radius:10px;padding:16px;margin-top:23px;color:#7a945d}.detail-journey small{display:block;font-size:12px;margin-bottom:6px;color:#a0aa91}.detail-journey b{font-size:15px}.detail-actions{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}.detail-actions button{font-size:14px}.lesson-product{display:flex;gap:12px;align-items:center;margin:0 0 20px}.lesson-product b{font-size:16px}.lesson-product small{display:block;font-size:12px;margin-top:5px;color:#9aaa89}.lesson-source-note{font-size:13px;color:#99a289;line-height:1.9;margin-top:17px}.lesson-source-note a{color:var(--green);text-decoration:underline}.dialog-head small{font-size:13px;max-width:160px;white-space:normal;line-height:1.6}.learning-path{min-height:0}.learning-path .path-row{flex-shrink:0}.review-callout{text-align:right;width:100%}button.review-callout:hover{background:#f1f4e9;border-radius:12px}
@media(max-width:1050px){.right-rail .tip-card{grid-column:auto}.right-rail .source-card{margin:0}}@media(max-width:700px){.journey-grid{gap:10px}.journey-card{grid-template-columns:1fr;padding:15px;gap:9px}.journey-card.selected{padding:14px}.journey-icon{width:36px;height:36px}.journey-copy b{font-size:16px;line-height:1.6}.journey-copy small{font-size:11px}.journey-count{font-size:12px}.journey-description{padding:15px 16px 5px;font-size:14px}.unit-picker{padding:12px;gap:7px}.unit-chip{font-size:12px;padding:8px 10px}.unit-range{font-size:12px;line-height:1.7}.path-row:nth-child(7){transform:translateX(13px)}.path-row:nth-child(8){transform:translateX(-15px)}.learning-path .lesson-label{width:127px}.lesson-label b{line-height:1.6}.library-notice{align-items:flex-start;gap:8px}.library-notice>span:first-child{display:none}.library-notice .text-link{font-size:11px}.library-controls{font-size:12px}.library-controls select{font-size:12px;max-width:185px}.filters{gap:7px}.filters .chip{font-size:12px;padding:8px 12px}.filters .chip span{font-size:10px}.product{padding:10px}.product-art{height:123px}.product h3{font-size:17px}.product p{font-size:12px;min-height:44px}.product-study{font-size:12px}.product-state{font-size:10px}.favorite-btn{top:17px;left:17px;width:29px;height:29px}.pagination .secondary{padding:9px 13px}.pagination span{font-size:12px}.source-explanation p{font-size:15px}.source-card>strong{font-size:19px}.source-card p{font-size:13px}.source-card .text-link{font-size:11px}.product-detail dl{margin-top:20px}.product-detail dd{font-size:15px}.product-summary{font-size:16px}.product-detail dt{font-size:16px}.detail-actions .primary,.detail-actions .secondary{padding:12px 16px}.dialog-head small{max-width:110px;font-size:12px}.lesson-product b{font-size:15px}}
/* Keep alternating labels inside the path at every viewport width. */
.learning-path .path-row{transform:none}.learning-path .lesson-label{width:min(180px,calc(50% - 55px));overflow-wrap:anywhere}.learning-path .lesson-label b{line-height:1.65}.learning-path .lesson-label small{line-height:1.6}
@media(max-width:700px){.learning-path .lesson-label{width:calc(50% - 49px)}.learning-path .path-row{min-height:85px}.learning-path .lesson-label b{font-size:13px}}

/* ---------- Additions: quiz, mistakes, theme picker ---------- */
:root{--faint:#a5af9a;--surface:#fff}
.theme-toggle{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#7d8a6e;border:1px solid var(--line);background:var(--surface);transition:background .15s,transform .15s}
.theme-toggle:hover{background:#f1f5ed;transform:rotate(-12deg)}
.theme-toggle svg{width:19px;height:19px}
.quiz-card{display:flex;align-items:center;gap:16px;padding:20px 22px;margin-bottom:20px;border-radius:16px;background:linear-gradient(135deg,#f4f8ec,#fbf6e8);border:1px solid #e3ead6}
.quiz-card>div{flex:1}
.quiz-card h3{font-size:18px;margin-bottom:6px}
.quiz-card p{font-size:13px;color:var(--muted);line-height:1.8}
.quiz-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#e2edce;color:#5f803c;flex-shrink:0}
.quiz-card .primary{white-space:nowrap;font-size:14px;padding:11px 18px}
.mistakes-card .card-title{margin-bottom:10px}
.mistakes-card h3{display:flex;align-items:center;gap:8px}
.mistakes-card h3 svg{width:19px;height:19px;color:#c3984d}
.count-pill{font-size:12px;font-weight:800;background:#faf0e3;color:#aa7c4e;border-radius:20px;padding:4px 10px}
.mistakes-hint{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:14px}
.mistake-chips{display:flex;flex-wrap:wrap;gap:8px}
.mistake-chips .chip{font-size:13px;padding:7px 14px}
.mistake-chips .chip:hover{border-color:#abbf92}
.result-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.muted-dd{font-size:14px!important;color:var(--faint)!important}
.theme-field{border:0;padding:0;margin:4px 0 22px}
.theme-field legend{font-weight:700;margin-bottom:10px;padding:0}
.theme-options{display:flex;gap:8px;flex-wrap:wrap}
.theme-options label{cursor:pointer}
.theme-options input{position:absolute;opacity:0;pointer-events:none}
.theme-options span{display:block;padding:9px 16px;border:1px solid #e1e7d8;border-radius:9px;font-size:14px;color:#7d8a6e;background:var(--surface)}
.theme-options input:checked+span{background:var(--green);border-color:var(--green);color:#fff;font-weight:700}
.theme-options input:focus-visible+span{outline:3px solid #d99c39;outline-offset:2px}
.answer:focus-visible,.chip:focus-visible,.journey-card:focus-visible,.lesson-node:focus-visible{outline:3px solid #d99c39;outline-offset:3px}
.nav-dot[hidden]{display:none}
dialog{background:var(--surface)}
@media(max-width:700px){.quiz-card{flex-wrap:wrap;padding:16px}.quiz-card .primary{width:100%}.theme-toggle{width:32px;height:32px}.theme-toggle svg{width:17px;height:17px}}

/* ---------- Dark theme ---------- */
html[data-theme="dark"]{--green:#3f8a63;--dark:#0b1410;--ink:#e3eae2;--muted:#9eac9f;--faint:#77867a;--line:#2a372f;--bg:#0f1512;--white:#18211c;--surface:#18211c;--surface2:#1f2a24;--surface3:#26332b;--accent:#a9d27c;--gold:#e0ad55;color-scheme:dark}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .sidebar,html[data-theme="dark"] .card,html[data-theme="dark"] .unit,html[data-theme="dark"] .quick-stats,html[data-theme="dark"] .product,html[data-theme="dark"] .review-item,html[data-theme="dark"] .achievement,html[data-theme="dark"] .goal-card,html[data-theme="dark"] .journey-card,html[data-theme="dark"] .search-box,html[data-theme="dark"] dialog{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .topbar{background:#131b16e6;backdrop-filter:blur(8px)}
html[data-theme="dark"] .brand{color:var(--accent)}
html[data-theme="dark"] .brand-mark,html[data-theme="dark"] .unit-symbol,html[data-theme="dark"] .stat-icon,html[data-theme="dark"] .quiz-icon{background:#24352a;border-color:#2f4335;color:var(--accent)}
html[data-theme="dark"] .stat-icon.gold,html[data-theme="dark"] .quest-icon{background:#33291a;color:var(--gold)}
html[data-theme="dark"] .stat-icon.blue{background:#1f2a35;color:#8fb0cb}
html[data-theme="dark"] .nav-label,html[data-theme="dark"] .breadcrumb,html[data-theme="dark"] .top-stats>span,html[data-theme="dark"] footer{color:var(--faint)}
html[data-theme="dark"] .breadcrumb b,html[data-theme="dark"] .top-stats b{color:var(--ink)}
html[data-theme="dark"] .breadcrumb span{color:#4a584e}
html[data-theme="dark"] .nav-item{color:var(--muted)}
html[data-theme="dark"] .nav-item:hover,html[data-theme="dark"] button.review-callout:hover,html[data-theme="dark"] .theme-toggle:hover{background:var(--surface2)}
html[data-theme="dark"] .nav-item.active{background:#22331f;color:var(--accent)}
html[data-theme="dark"] .wisdom,html[data-theme="dark"] .detail-journey,html[data-theme="dark"] .path-footer,html[data-theme="dark"] .unit-range{background:var(--surface2);border-color:var(--line);color:var(--muted)}
html[data-theme="dark"] .wisdom>span,html[data-theme="dark"] .review-callout>span,html[data-theme="dark"] .detail-journey{color:var(--accent)}
html[data-theme="dark"] .avatar,html[data-theme="dark"] .mini-avatar{background:#2f2b20;border-color:var(--surface);color:#d8c89a}
html[data-theme="dark"] .date-badge{background:var(--surface2);border-color:var(--line);color:var(--accent)}
html[data-theme="dark"] .hero{background:linear-gradient(135deg,#1d4a35,#163a2a)}
html[data-theme="dark"] .primary{background:var(--green);color:#fff;box-shadow:0 3px 0 #1b4430}
html[data-theme="dark"] .primary:hover{background:#4a9a70}
html[data-theme="dark"] .primary:disabled{background:#2c3a31;box-shadow:0 3px 0 #222d26;color:#6f7d72}
html[data-theme="dark"] .hero .primary{background:var(--lime);color:#21401f;box-shadow:0 3px 0 #8fab55}
html[data-theme="dark"] .quick-stat{border-color:var(--line)}
html[data-theme="dark"] .unit-heading{background:var(--surface2);border-color:var(--line)}
html[data-theme="dark"] .unit-heading p,html[data-theme="dark"] .journey-description,html[data-theme="dark"] .unit-range,html[data-theme="dark"] .journey-copy small,html[data-theme="dark"] .journey-count,html[data-theme="dark"] .lesson-label small,html[data-theme="dark"] .quest-meta,html[data-theme="dark"] .day,html[data-theme="dark"] .goal-bottom,html[data-theme="dark"] .pagination span,html[data-theme="dark"] .library-controls,html[data-theme="dark"] .question-kicker,html[data-theme="dark"] .lesson-product small,html[data-theme="dark"] .lesson-source-note,html[data-theme="dark"] .review-callout p,html[data-theme="dark"] .detail-journey small{color:var(--muted)}
html[data-theme="dark"] .unit-range span{color:var(--faint)}
html[data-theme="dark"] .learning-path:before{border-color:#2c3a31}
html[data-theme="dark"] .lesson-node{background:var(--surface3);color:#5f6e63;border-color:var(--surface);box-shadow:0 5px 0 #111813,0 0 0 1px var(--line)}
html[data-theme="dark"] .lesson-node.current{background:#7fae43;color:#fff;box-shadow:0 5px 0 #4b6e25,0 0 0 6px #1f2e1a}
html[data-theme="dark"] .lesson-node.done{background:#2d4224;color:var(--accent);box-shadow:0 5px 0 #1c2b16,0 0 0 1px #34492b}
html[data-theme="dark"] .lesson-label.locked{color:var(--faint)}
html[data-theme="dark"] .current-badge{background:#22331f;color:var(--accent)}
html[data-theme="dark"] .path-decoration{color:#2c3d2f}
html[data-theme="dark"] .card-title>span,html[data-theme="dark"] .card-title .text-btn,html[data-theme="dark"] .text-link,html[data-theme="dark"] .secondary,html[data-theme="dark"] .product-study,html[data-theme="dark"] .source-links a,html[data-theme="dark"] .lesson-source-note a,html[data-theme="dark"] .verified-note a{color:var(--accent)}
html[data-theme="dark"] .product-study:hover{color:#c8ea9f}
html[data-theme="dark"] .progress-ring{background:conic-gradient(#8dbb4e calc(var(--p)*1%),var(--surface3) 0)}
html[data-theme="dark"] .progress-ring:before{background:var(--surface)}
html[data-theme="dark"] .progress-ring strong,html[data-theme="dark"] .result-stats strong{color:var(--accent)}
html[data-theme="dark"] .day span{background:var(--surface3);color:#5f6e63}
html[data-theme="dark"] .day span.active{background:#7fae43;color:#fff}
html[data-theme="dark"] .bar{background:var(--surface3)}
html[data-theme="dark"] .bar i{background:#8dbb4e}
html[data-theme="dark"] .tip-card{background:#221e14;border-color:#3a3222}
html[data-theme="dark"] .tip-title{color:var(--gold)}
html[data-theme="dark"] .tip-card p{color:#d6c9a6}
html[data-theme="dark"] .tip-card small{color:#9b8f70}
html[data-theme="dark"] .source-card{background:#1a2a1e;border-color:#2b4030}
html[data-theme="dark"] .source-card>strong{color:var(--accent)}
html[data-theme="dark"] .source-card p,html[data-theme="dark"] .source-explanation p,html[data-theme="dark"] .source-explanation small,html[data-theme="dark"] .product-summary,html[data-theme="dark"] .product-detail dd,html[data-theme="dark"] .product-detail dd small{color:var(--muted)}
html[data-theme="dark"] dialog{box-shadow:0 25px 100px #00000080}
html[data-theme="dark"] dialog::backdrop{background:#050806b3}
html[data-theme="dark"] .close-btn{background:var(--surface3);color:var(--muted)}
html[data-theme="dark"] .dialog-head small{color:var(--muted)}
html[data-theme="dark"] .lesson-reading{background:var(--surface2);border-color:var(--line)}
html[data-theme="dark"] .answer{background:var(--surface2);border-color:#2f3d34;color:var(--ink)}
html[data-theme="dark"] .answer:hover:not(:disabled){background:var(--surface3);border-color:#4a6340}
html[data-theme="dark"] .answer.selected{background:#22331f;border-color:#7fae43}
html[data-theme="dark"] .answer.correct{background:#1f3320;border-color:#76b34f}
html[data-theme="dark"] .answer.wrong{background:#3a221c;border-color:#b5715c}
html[data-theme="dark"] .answer-letter{border-color:#3a4a3f;color:var(--muted)}
html[data-theme="dark"] .feedback{background:#1f3320;color:#bfe39a}
html[data-theme="dark"] .feedback.wrong{background:#3a221c;color:#f0b8a3}
html[data-theme="dark"] .result-stats>div{background:var(--surface2)}
html[data-theme="dark"] .result-stats small{color:var(--muted)}
html[data-theme="dark"] .search-box svg{color:var(--muted)}
html[data-theme="dark"] .search-box input,html[data-theme="dark"] .field input{color:var(--ink)}
html[data-theme="dark"] .field input{background:var(--surface2);border-color:var(--line)}
html[data-theme="dark"] input::placeholder{color:var(--faint)}
html[data-theme="dark"] .chip,html[data-theme="dark"] .unit-chip,html[data-theme="dark"] .theme-options span{background:var(--surface2);border-color:var(--line);color:var(--muted)}
html[data-theme="dark"] .chip.active,html[data-theme="dark"] .unit-chip.active,html[data-theme="dark"] .theme-options input:checked+span{background:var(--green);border-color:var(--green);color:#fff}
html[data-theme="dark"] .product-art{background:var(--surface2)}
html[data-theme="dark"] .product-art .category-label{background:#0f1512cc;color:var(--accent)}
html[data-theme="dark"] .favorite-btn{background:#0f1512b3;color:var(--muted)}
html[data-theme="dark"] .favorite-btn.saved{background:#33291a;color:var(--gold)}
html[data-theme="dark"] .favorite-btn.saved svg{fill:#7a6332}
html[data-theme="dark"] .product-state,html[data-theme="dark"] .product-detail-tags span,html[data-theme="dark"] .topic-tags span{background:var(--surface3);border-color:var(--line);color:var(--muted)}
html[data-theme="dark"] .product-state.attention,html[data-theme="dark"] .product-detail-tags .attention,html[data-theme="dark"] .count-pill{background:#33261a;color:#e3a86b}
html[data-theme="dark"] .product-state.incomplete{background:#2a2a24;color:#a5a592}
html[data-theme="dark"] .notice{background:var(--surface2);border-color:var(--line);color:var(--muted)}
html[data-theme="dark"] .library-notice>span:first-child{color:var(--accent)}
html[data-theme="dark"] .library-controls select{background-color:var(--surface2);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .verified-note{background:#1a2a1e;border-color:#2b4030}
html[data-theme="dark"] .achievement .medal{background:#2e2717;border-color:#5a4a26;color:var(--gold)}
html[data-theme="dark"] .achievement small{color:var(--accent)}
html[data-theme="dark"] .achievement.locked{opacity:.45}
html[data-theme="dark"] .secondary{border-color:#34473a}
html[data-theme="dark"] .danger{color:#e0a084}
html[data-theme="dark"] .journey-card:hover{border-color:#4a6340}
html[data-theme="dark"] .journey-card.selected{background:#1c2a1f;border-color:#6f9a4a}
html[data-theme="dark"] .journey-icon{background:color-mix(in srgb,var(--track-color) 22%,var(--surface))}
html[data-theme="dark"] .quiz-card{background:linear-gradient(135deg,#1a2a1e,#241f14);border-color:#2f4030}
html[data-theme="dark"] .theme-toggle{color:var(--gold);border-color:var(--line)}
html[data-theme="dark"] #toast{background:#e3eae2;color:#0f1512}
html[data-theme="dark"] .mascot ellipse:first-child{opacity:.2}
html[data-theme="dark"] .product-art svg rect[fill="#f9f8ee"]{fill:#e8e6d6}
html[data-theme="dark"] .product-art svg{color:#46564b}

/* ---------- Real product photos ---------- */
.product-art.has-photo{padding:0;overflow:hidden;background:#fff}
.product-art .product-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.product-art.has-photo .category-label{z-index:1}
.product-detail .product-art.has-photo{height:auto;max-height:340px;background:#f6f7f2}
.product-detail .product-art.has-photo .product-photo{position:static;height:auto;max-height:340px;object-fit:contain}
.lesson-photo,.question-photo{margin:0 0 18px;border-radius:14px;overflow:hidden;background:#f6f7f2;border:1px solid var(--line);display:grid;place-items:center}
.lesson-photo img{width:100%;max-height:260px;object-fit:contain;display:block}
.question-photo img{width:100%;max-height:230px;object-fit:contain;display:block}
html[data-theme="dark"] .product-art.has-photo,html[data-theme="dark"] .product-detail .product-art.has-photo,html[data-theme="dark"] .lesson-photo,html[data-theme="dark"] .question-photo{background:#e9ebe4}
@media(max-width:700px){.lesson-photo img{max-height:200px}.question-photo img{max-height:170px}}

/* ---------- Accounts & administration ---------- */
:root{--warn:#b5653f;--warn-bg:#fbefe7;--ok-bg:#eaf3e2}
html[data-theme="dark"]{--warn:#e39a74;--warn-bg:#3a2a22;--ok-bg:#24362a}
.sidebar{overflow-y:auto}
.admin-nav .nav-item{padding:12px 14px}
.nav-label.admin-nav{margin-top:6px}
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px 16px;background:var(--bg)}
.auth-card{width:min(430px,100%);background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:34px 30px;box-shadow:0 20px 60px #153b3418}
.auth-card h1{font-size:25px;margin:26px 0 8px}
.auth-card p{color:var(--muted);line-height:1.8;font-size:14px}
.auth-card .primary{width:100%;margin-top:6px}
.auth-card .field{margin:16px 0}
.auth-brand{display:flex;align-items:center;gap:12px}
.auth-brand b{display:block;font-size:18px}
.auth-brand small{color:var(--muted)}
.form-error{color:var(--warn);font-size:13px;font-weight:700;min-height:20px;margin:6px 0}
.field select,.field textarea,.report-toolbar select,.report-toolbar input{width:100%;padding:12px 14px;border:1px solid #dfe6d6;border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:15px}
.field textarea{resize:vertical;line-height:1.8}
.field input[readonly]{background:var(--bg);color:var(--muted)}
html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .report-toolbar select,html[data-theme="dark"] .report-toolbar input{background:var(--surface2);border-color:var(--line)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.form-grid .field{margin:12px 0}
.check-field{display:flex;align-items:center;gap:10px;margin:14px 0;font-size:14px;font-weight:600;cursor:pointer}
.check-field input{width:18px;height:18px;accent-color:var(--green)}
.hint{color:var(--muted);font-size:13px;line-height:1.7;margin:4px 0 10px}
.danger.text-link,.text-link.danger{color:var(--warn)!important}
.admin-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 14px;margin:0 0 16px;border:1px dashed #c9d8b8;border-radius:12px;background:var(--ok-bg);font-size:13px;font-weight:700;color:var(--green)}
html[data-theme="dark"] .admin-bar{color:var(--accent);border-color:var(--line)}
.admin-bar>span{display:flex;align-items:center;gap:8px}
.admin-bar svg,.account-links svg,.toolbar-actions svg,.card-title h3 svg,.tab svg,.primary svg,.secondary svg{width:17px;height:17px;vertical-align:-3px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.admin-bar .primary{min-width:0;padding:9px 16px;font-size:14px}
.account-card h3{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.account-card h3 svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.account-links{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.account-card{margin:20px 0}
.loading-card,.empty-note{color:var(--muted);text-align:center;padding:30px;font-size:14px}
/* toolbar + KPIs */
.report-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:18px}
.report-toolbar label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:var(--muted);min-width:140px}
.report-toolbar label.grow{flex:1;min-width:180px}
.report-toolbar select,.report-toolbar input{padding:9px 12px;font-size:14px}
.toolbar-actions{display:flex;gap:8px;margin-inline-start:auto}
.toolbar-actions .secondary{padding:9px 13px}
.toolbar-actions .primary{min-width:0}
.scope-pill{display:flex;align-items:center;gap:6px;padding:9px 14px;border-radius:20px;background:var(--ok-bg);color:var(--green);font-weight:800;font-size:13px}
.scope-pill svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.kpi-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}
.kpi-grid.small{grid-template-columns:repeat(4,1fr);margin:18px 0}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.kpi small{color:var(--muted);font-weight:700;font-size:12px}
.kpi strong{font-size:26px;line-height:1.2}
.kpi strong.txt{font-size:18px}
.kpi span{color:var(--faint);font-size:12px}
.kpi.warn{background:var(--warn-bg);border-color:transparent}
.kpi.warn strong{color:var(--warn)}
.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}
.report-grid .card{margin:0}
.card-title h3{display:flex;align-items:center;gap:8px;font-size:17px}
.card-title small{color:var(--faint);font-size:12px}
.bar-chart{display:flex;align-items:flex-end;gap:6px;height:170px;padding-top:18px}
.bar-col{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px;min-width:0}
.bar-col i{display:block;width:100%;max-width:26px;min-height:3px;border-radius:6px 6px 2px 2px;background:linear-gradient(var(--green),#6e934c)}
.bar-col small{font-size:10px;color:var(--faint)}
.bar-val{font-size:10px;font-weight:800;color:var(--muted);min-height:13px}
.meter{display:block;height:8px;border-radius:8px;background:var(--line);overflow:hidden;flex:1;min-width:50px}
.meter i{display:block;height:100%;border-radius:8px;background:var(--green)}
.branch-list{display:flex;flex-direction:column;gap:6px}
.branch-row{display:grid;grid-template-columns:minmax(0,1.3fr) 1fr 46px;align-items:center;gap:12px;padding:9px 6px;border-radius:10px;text-align:right;width:100%;color:inherit}
button.branch-row:hover{background:var(--bg)}
.branch-row b{display:block;font-size:14px}
.branch-row small{color:var(--faint);font-size:11px}
.branch-row strong{font-size:14px;text-align:left}
.hard-list,.follow-list,.attempt-list{list-style:none;display:flex;flex-direction:column;gap:4px;padding:0;margin:0}
.hard-list{counter-reset:h}
.hard-list li{display:flex;align-items:center;gap:12px;padding:9px 4px;border-bottom:1px solid var(--line);counter-increment:h}
.hard-list li::before{content:counter(h);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--bg);font-size:12px;font-weight:800;color:var(--muted);flex-shrink:0}
.hard-list li>span{flex:1;min-width:0}
.hard-list b{display:block;font-size:14px}
.hard-list small{color:var(--faint);font-size:11px}
.late{color:var(--warn)!important;font-weight:800}
.follow-list button{display:flex;align-items:center;gap:10px;width:100%;padding:8px;border-radius:10px;text-align:right;color:inherit}
.follow-list button:hover{background:var(--bg)}
.follow-list b{display:block;font-size:14px}
.follow-list small{color:var(--faint);font-size:12px}
.follow-list .avatar,.trainee-head .avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--ok-bg);color:var(--green);font-weight:800;flex-shrink:0}
/* tables */
.table-wrap{overflow-x:auto;margin:0 -6px}
.data-table{width:100%;border-collapse:collapse;font-size:14px;min-width:720px}
.data-table th{text-align:right;font-size:12px;color:var(--muted);font-weight:800;padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.data-table td{padding:11px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
.data-table td b{display:block;font-weight:700}
.data-table td small{color:var(--faint);font-size:12px;display:block}
.data-table tbody tr[data-r-user]{cursor:pointer}
.data-table tbody tr[data-r-user]:hover,.data-table tbody tr[data-r-user]:focus{background:var(--bg);outline:none}
.data-table tr.inactive td{opacity:.55}
.sort{font:inherit;color:inherit;font-weight:800}
.sort.on{color:var(--green)}
html[data-theme="dark"] .sort.on{color:var(--accent)}
.pct-cell{display:flex;align-items:center;gap:8px;min-width:150px}
.pct-cell span{font-size:12px;color:var(--muted);white-space:nowrap}
.acc{font-weight:800;padding:2px 8px;border-radius:12px;background:var(--bg);font-size:13px}
.acc.low{color:var(--warn);background:var(--warn-bg)}
.acc.high{color:var(--green);background:var(--ok-bg)}
.status{font-size:12px;font-weight:800;padding:3px 10px;border-radius:12px;background:var(--warn-bg);color:var(--warn)}
.status.on{background:var(--ok-bg);color:var(--green)}
.row-actions{white-space:nowrap}
.row-actions .text-link{margin:0 0 0 14px}
.you{display:inline!important;color:var(--green)!important}
/* trainee dialog */
.admin-dialog{width:min(760px,calc(100% - 28px))}
.trainee-head{display:flex;align-items:center;gap:14px}
.trainee-head .avatar.big{width:52px;height:52px;font-size:22px}
.trainee-head h2{font-size:22px}
.trainee-head small{color:var(--muted)}
.trainee-report h3{font-size:15px;margin:20px 0 10px}
.attempt-list li{display:grid;grid-template-columns:1fr auto 80px;gap:10px;align-items:center;padding:8px 4px;border-bottom:1px solid var(--line);font-size:14px}
.attempt-list small{color:var(--faint);font-size:12px;text-align:left}
/* settings */
.tabs{display:flex;gap:8px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.tab{display:flex;align-items:center;gap:8px;padding:12px 16px;font-weight:800;color:var(--muted);border-bottom:3px solid transparent;margin-bottom:-1px}
.tab.active{color:var(--green);border-color:var(--green)}
html[data-theme="dark"] .tab.active{color:var(--accent);border-color:var(--accent)}
.roles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px}
.role-card{margin:0;display:flex;flex-direction:column}
.role-card:last-child{border-style:dashed}
.role-head{display:flex;align-items:flex-end;gap:10px}
.role-head .field{flex:1;margin:0 0 12px}
.role-head .count-pill{margin-bottom:22px;white-space:nowrap}
.lock-badge{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:800;color:var(--muted);margin-bottom:24px}
.lock-badge svg,.perm-base svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
.perm-list{display:flex;flex-direction:column;gap:4px;flex:1}
.perm{display:flex;gap:10px;align-items:flex-start;padding:8px;border-radius:10px;cursor:pointer}
.perm:hover{background:var(--bg)}
.perm.locked{cursor:default;opacity:.8}
.perm input{width:18px;height:18px;margin-top:2px;accent-color:var(--green);flex-shrink:0}
.perm b{display:block;font-size:14px}
.perm small{color:var(--faint);font-size:12px;line-height:1.6}
.perm-base{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);padding:6px 8px}
.role-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:6px}
.role-actions small{color:var(--faint);font-size:12px;flex:1}
.role-actions .primary{min-width:0;padding:10px 20px}
/* editors */
.admin-dialog .dialog-body{max-height:none}
.admin-dialog .dialog-foot .text-link{margin:0}
.journey-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.journey-list li{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.journey-list li.is-hidden{opacity:.5;border-style:dashed}
.j-num{width:28px;text-align:center;font-weight:800;color:var(--faint);font-size:13px}
.j-title{flex:1;min-width:0}
.j-title b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.j-title small{color:var(--faint);font-size:11px}
.j-actions{display:flex;gap:4px}
.icon-btn{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;color:var(--muted);border:1px solid var(--line);background:var(--surface)}
.icon-btn:hover:not(:disabled){color:var(--green);border-color:var(--green)}
.icon-btn:disabled{opacity:.3}
.icon-btn.on{color:var(--green)}
.icon-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.q-editor{border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:20px 0 6px}
.q-editor legend{font-weight:800;padding:0 6px}
.q-list{display:flex;flex-direction:column;gap:12px;margin-bottom:12px}
.q-block{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--bg)}
.q-block .field{margin:10px 0}
.q-head{display:flex;justify-content:space-between;align-items:center}
.q-head .text-link{margin:0}
.q-answers{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.q-answer{display:flex;align-items:center;gap:8px}
.q-answer input[type=radio]{width:18px;height:18px;accent-color:var(--green);flex-shrink:0}
.q-answer input[data-q-a]{flex:1;min-width:0;padding:10px 12px;border:1px solid #dfe6d6;border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:14px}
html[data-theme="dark"] .q-answer input[data-q-a]{border-color:var(--line);background:var(--surface2)}
.q-answer:has(input:checked) input[data-q-a]{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}
.photo-field{display:flex;gap:18px;align-items:center;margin-bottom:10px}
.photo-field .product-art{width:120px;height:120px;flex-shrink:0;border-radius:14px;position:relative;overflow:hidden;background:var(--bg)}
.photo-field .product-art svg{width:100%;height:100%}
.photo-field .hint{margin:4px 0 10px}
.file-btn{display:inline-flex;align-items:center;gap:6px;cursor:pointer;margin-left:10px}
.topic-pick{border:0;padding:0;margin:14px 0;display:flex;flex-wrap:wrap;gap:8px}
.topic-pick legend{font-weight:700;margin-bottom:10px;padding:0}
.chip-check input{position:absolute;opacity:0;pointer-events:none}
.chip-check span{display:inline-block;padding:7px 14px;border-radius:20px;border:1px solid var(--line);font-size:13px;color:var(--muted);cursor:pointer}
.chip-check input:checked+span{background:var(--green);border-color:var(--green);color:#fff}
.chip-check input:focus-visible+span{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:1250px){.kpi-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1050px){.admin-nav{display:none!important}}
@media(max-width:700px){.form-grid,.report-grid,.q-answers{grid-template-columns:1fr}.kpi-grid,.kpi-grid.small{grid-template-columns:1fr 1fr}.kpi strong{font-size:22px}.toolbar-actions{width:100%;margin:0}.toolbar-actions .primary{flex:1}.report-toolbar label{min-width:calc(50% - 6px);flex:1}.photo-field{flex-direction:column;align-items:flex-start}.roles-grid{grid-template-columns:1fr}.attempt-list li{grid-template-columns:1fr auto}.attempt-list small{display:none}.auth-card{padding:28px 20px}}
.wide-page .right-rail{display:none}
.wide-page .content-layout{grid-template-columns:minmax(0,1fr);max-width:1400px}
/* settings: journeys, sections, domains */
.track-dot{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 18%,transparent);color:var(--c);flex-shrink:0}
.track-dot svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.danger-btn{color:var(--warn);font-size:18px;font-weight:700}
.danger-btn:hover:not(:disabled){color:var(--warn)!important;border-color:var(--warn)!important}
.primary.danger-fill{background:var(--warn);box-shadow:none;color:#fff}
.save-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:10px 14px;border-radius:12px;background:var(--ok-bg)}
.save-row .primary{min-width:0}
.tag-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.tag-item{display:inline-flex;align-items:center;gap:8px;padding:6px 8px 6px 12px;border:1px solid var(--line);border-radius:20px;background:var(--bg);font-size:14px}
.tag-item small{color:var(--faint);font-size:11px}
.tag-item button{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:var(--warn);font-size:15px;line-height:1}
.tag-item button:hover{background:var(--warn-bg)}
.add-row{display:flex;gap:10px}
.add-row input{flex:1;min-width:0;padding:10px 14px;border:1px solid #dfe6d6;border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:14px}
html[data-theme="dark"] .add-row input{background:var(--surface2);border-color:var(--line)}
.trash-list{list-style:none;padding:0;margin:0}
.trash-list li{display:flex;align-items:center;justify-content:space-between;padding:10px 4px;border-bottom:1px solid var(--line)}
.trash-list b{display:block;font-size:14px}
.trash-list small{color:var(--faint);font-size:12px}
.trash-list .text-link{margin:0}
.foot-links{display:flex;gap:16px;flex-wrap:wrap}
.foot-links .text-link{margin:0}
.look-pick{border:0;padding:0;margin:14px 0}
.look-pick legend{font-weight:700;margin-bottom:10px;padding:0}
.icon-pick,.color-pick{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.icon-pick input,.color-pick input{position:absolute;opacity:0;pointer-events:none}
.icon-pick span{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;color:var(--muted);cursor:pointer}
.icon-pick svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.icon-pick input:checked+span{border-color:var(--green);color:var(--green);box-shadow:0 0 0 1px var(--green)}
.color-pick span{display:block;width:30px;height:30px;border-radius:50%;cursor:pointer;border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line)}
.color-pick input:checked+span{box-shadow:0 0 0 2px var(--ink)}
.icon-pick input:focus-visible+span,.color-pick input:focus-visible+span{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:700px){.add-row{flex-direction:column}}
/* store product card */
.product-detail dd ol{padding-inline-start:20px;line-height:1.9}
.product-detail dd.cross-sell{background:var(--ok-bg);border-radius:12px;padding:10px 14px;color:var(--ink)}
.product-detail dd.cross-sell ul{margin:0}
.faq-list details{border:1px solid var(--line);border-radius:10px;padding:9px 12px;margin-bottom:6px;background:var(--surface)}
.faq-list summary{cursor:pointer;font-weight:700;font-size:14px}
.faq-list details p{margin:8px 0 0;color:var(--muted);font-size:14px;line-height:1.8}
/* user guide */
.help-btn{font-weight:900;font-size:17px}
.profile-links{display:flex;gap:10px;flex-wrap:wrap}
.guide-banner{margin-bottom:18px}
.guide-banner-actions{display:flex;align-items:center;gap:12px}
.guide-banner .primary{min-width:0;padding:8px 16px;font-size:14px}
.guide-banner .text-link{margin:0}
.guide-role{display:flex;gap:16px;align-items:flex-start;margin-bottom:16px}
.guide-role>svg{width:30px;height:30px;flex-shrink:0;fill:none;stroke:var(--green);stroke-width:2}
.guide-role>div{flex:1}
.guide-role p{margin:0 0 8px;line-height:1.8}
.guide-can{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px}
.guide-can li{display:flex;align-items:center;gap:6px}
.guide-can svg{width:16px;height:16px;fill:none;stroke:var(--green);stroke-width:2.5}
.guide-toc{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.guide-section{margin-bottom:12px;padding:0}
.guide-section summary{display:flex;align-items:center;gap:14px;padding:16px 20px;cursor:pointer;list-style:none}
.guide-section summary::-webkit-details-marker{display:none}
.guide-section summary::after{content:'+';margin-inline-start:auto;font-size:22px;color:var(--muted)}
.guide-section[open] summary::after{content:'−'}
.guide-section summary b{display:block;font-size:16px}
.guide-section summary small{color:var(--faint);font-size:12px}
.guide-section>:not(summary){margin-inline:20px}
.guide-intro{color:var(--muted);line-height:1.9;margin-top:0}
.guide-steps{padding-inline-start:22px;line-height:2;margin:8px 20px 14px}
.guide-steps li{margin-bottom:6px}
.guide-tip{display:flex;gap:10px;padding:12px 14px;border-radius:12px;background:var(--ok-bg);font-size:14px;line-height:1.8;margin-bottom:14px}
.guide-tip svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:var(--green);stroke-width:2;margin-top:3px}
.guide-links{display:flex;flex-wrap:wrap;gap:18px;padding-bottom:16px}
.guide-links .text-link{margin:0}
@media print{.sidebar,.topbar,.right-rail,footer,.guide-toc,#guide-print,.guide-links,.guide-banner{display:none!important}.workspace{margin:0!important}.content-layout{display:block;padding:0}.guide-section{break-inside:avoid;border:1px solid #ccc}.guide-section summary::after{content:''}body{background:#fff}}
@media(max-width:700px){.guide-role{flex-direction:column}.guide-banner-actions{width:100%;justify-content:space-between}}
