.template-app{min-height:100dvh;background:#16161e;color:#fff;padding:54px 0 75px;font-family:Arial,sans-serif}.template-app.light{background:#fffaf7;color:#514a43}.template-app>header{position:fixed;top:0;left:0;right:0;z-index:10;background:var(--demo-accent);height:42px;display:flex;align-items:center;gap:9px;padding:0 12px;color:#fff}.template-app>header button{background:none;border:0;padding:0;cursor:pointer}.template-app>header img{width:24px;height:24px;border-radius:5px;object-fit:cover}.template-app>header span{font-size:12px}.template-app>header small{margin-left:auto;font-size:10px;opacity:.8}.template-app>main{width:min(520px,calc(100% - 24px));margin:auto}.template-app-banner{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.template-app h1{font-size:14px;font-weight:600;margin:14px 0 10px}.template-app-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.template-app-grid>button{padding:0;border:1px solid #ffffff20;border-radius:9px;overflow:hidden;background:#23232f;color:var(--demo-accent);cursor:pointer;text-align:left;transition:transform .2s,box-shadow .2s}.template-app-grid>button:hover{transform:translateY(-3px);box-shadow:0 5px 20px #0004}.template-app-grid>button:active{transform:scale(.98)}.template-app-grid>button>img{width:100%;aspect-ratio:1;object-fit:cover;display:block}.template-app-grid>button>span{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:7px;font-size:11px;color:#eee}.template-app-grid svg{width:14px;height:14px;color:var(--demo-accent);flex-shrink:0}.template-app.light .template-app-grid>button{background:#fff;border-color:#d8cec6}.template-app.light .template-app-grid>button>span{color:#514a43}.template-app-back{display:flex;align-items:center;gap:6px;background:none;color:inherit;border:0;padding:8px 0;cursor:pointer;font-size:12px}.template-app-back svg{width:16px;height:16px}.template-module-art{position:relative}.template-module-art>img{width:100%;aspect-ratio:1;object-fit:cover;display:block;filter:brightness(.65)}.template-module-art>b{position:absolute;inset:0;display:grid;place-items:center;font-size:64px;color:white;text-shadow:0 3px 15px #0009}.template-example{border:1px solid #ffffff20;border-radius:9px;padding:16px;margin-top:14px;background:#ffffff05}.template-example>img{width:100%;max-height:270px;object-fit:cover;border-radius:6px}.template-example>small{display:flex;gap:6px;align-items:center;color:var(--demo-accent);margin-top:14px;font-size:12px}.template-example>small svg{width:16px}.template-example h2{font-size:20px}.template-example p{font-size:14px;line-height:1.8;opacity:.8}.template-app>nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;align-items:center;background:#23232f;border-top:1px solid #ffffff0a;height:55px;z-index:10}.template-app>nav button{display:flex;flex-direction:column;align-items:center;gap:5px;border:0;color:#90909d;background:none;padding:6px 18px;cursor:pointer}.template-app>nav svg{width:18px;height:18px}.template-app>nav span{font-size:9px}.template-app>nav button.active{color:var(--demo-accent)}.template-app.light>nav{background:#fff;border-color:#ddd}.template-app button:focus-visible{outline:2px solid var(--demo-accent);outline-offset:3px}@media(prefers-reduced-motion:reduce){.template-app-grid>button{transition:none}}.template-app>main.template-modules-page{width:min(1040px,calc(100% - 32px))}.template-subcards{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.template-subcards>button{border:0;background:none!important;border-radius:12px;overflow:visible}.template-subcards .template-module-art>img{filter:none;border:1px solid #ffffff25;border-radius:12px;aspect-ratio:1}.template-subcards>button>span{justify-content:center;color:var(--demo-accent)!important;padding:12px 5px}.template-modules-page>.template-app-back{display:inline-flex;border-radius:20px;background:#ffffff12;padding:7px 12px;margin:12px 0}.template-modules-page>h1{display:none}.alfa-dialog.template-reader{position:fixed!important;inset:0!important;left:0!important;top:0!important;transform:none!important;translate:none!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;padding:0!important;background:#202a38!important;display:flex!important;flex-direction:column!important;gap:0!important;overflow:hidden;color:#38323a}.template-reader>header{height:56px;flex-shrink:0;display:flex;align-items:center;justify-content:center;position:relative;border-bottom:1px solid #ffffff15;color:#e3e7ed}.template-reader>header h2{font-size:14px;color:#e3e7ed;margin:0}.template-reader>header>button{position:absolute;right:16px;background:none;color:#aeb7c5;border:0;cursor:pointer;padding:8px}.template-reader>header svg{width:17px;height:17px}.template-reader-scroll{overflow-y:auto;flex:1;padding:14px 12px 30px}.template-reading-page{max-width:400px;margin:0 auto;background:#fff9fb;padding:10px;min-height:100%}.template-reading-hero{background:linear-gradient(135deg,#3c1c30,var(--lesson-color));padding:30px 22px;text-align:center;border-radius:18px;color:#fff;box-shadow:0 15px 28px #54233f3b;margin:4px 0 22px}.template-reading-hero>span{display:block;font-size:40px;margin:10px 0 24px}.template-reading-hero>small{display:inline-block;border-radius:20px;background:#ffffff20;padding:9px 16px;font-size:10px;letter-spacing:.5px;font-weight:700;text-transform:uppercase}.template-reading-hero h1{font-size:27px;line-height:1.25;font-weight:800;margin:26px 0 16px;color:#fff}.template-reading-hero p{font-size:13px;line-height:1.8;color:#fff;margin:0}.template-reading-section{margin:20px 0;border:1px solid #efdfe7;border-radius:18px;padding:22px;background:white;box-shadow:0 4px 15px #6c264a0a}.template-reading-section h2{font-size:19px;color:#59424e;font-weight:800;display:flex;align-items:center;gap:10px;margin:0 0 14px}.template-reading-section h2>span{padding:9px;border-radius:12px;background:var(--lesson-color);font-size:22px}.template-reading-line{width:40px;height:2px;background:var(--lesson-color);margin-bottom:17px}.template-reading-section p{font-size:13px;color:#747985;line-height:1.8}.template-reading-tip{padding:14px;background:#fff1f7;border-radius:12px;font-size:12px;line-height:1.8;border-left:3px solid var(--lesson-color);margin-top:20px}.template-reading-hero.ending h2{color:white;font-size:22px}.template-reading-demo{display:block;text-align:center;color:#8b8190;font-size:11px;padding:12px}.template-reader.is-quiz .template-reader-scroll,.template-reader.is-quiz .template-reading-page{background:white}.template-quiz-progress{height:6px;background:#eee9ee;border-radius:5px;overflow:hidden;margin:20px 0}.template-quiz-progress>i{height:100%;display:block;background:var(--lesson-color);transition:width .25s}.template-question-number{text-align:center;color:var(--lesson-color);font-size:13px;margin:25px 0}.template-quiz-options{padding:20px;min-width:0}.template-quiz-options>legend{font-size:15px;line-height:1.5;font-weight:700;color:#38222e;max-width:100%;padding:0 8px;text-align:center}.template-quiz-options>button{border:1px solid transparent;display:flex;align-items:center;gap:10px;text-align:left;padding:15px;border-radius:12px;background:#fcf0f6;color:#42283a;width:100%;font-size:12px;line-height:1.7;margin:10px 0;cursor:pointer}.template-quiz-options>button>b{background:#f1cde1;color:var(--lesson-color);padding:2px 9px;border-radius:9px}.template-quiz-options>button:hover,.template-quiz-options>button[aria-pressed=true]{border-color:var(--lesson-color);background:#f9ddec}.template-quiz-actions{display:flex;justify-content:space-between;gap:12px}.template-quiz-actions button,.template-quiz-result button{display:flex;align-items:center;justify-content:center;gap:7px;background:var(--lesson-color);color:white;padding:11px 14px;border:0;border-radius:9px;cursor:pointer;font-size:12px}.template-quiz-actions button:disabled{opacity:.35;cursor:default}.template-quiz-actions svg,.template-quiz-result svg{width:15px;height:15px}.template-quiz-result{text-align:center}.template-quiz-result h2{display:block}.template-quiz-result>strong{color:var(--lesson-color);font-size:44px}.template-quiz-result button{margin:20px auto 0}@media(max-width:700px){.template-subcards{grid-template-columns:repeat(2,minmax(0,1fr))}.template-reading-page{padding:5px}}@media(max-width:400px){.template-subcards{grid-template-columns:1fr}.template-reader-scroll{padding:10px}.template-reading-hero{padding:25px 16px}}@media(prefers-reduced-motion:reduce){.template-quiz-progress>i{transition:none}}