@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
:root{--bg:#f6f7f4;--paper:#fff;--ink:#202d29;--muted:#7d8984;--line:#e6eae5;--green:#236b50;--green2:#e7f2eb;--mint:#dcece2;--purple:#7763b5;--shadow:0 5px 22px #20372a08}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:"IBM Plex Sans Arabic",Tahoma,sans-serif;font-size:14px;line-height:1.7}button,input,select,textarea{font:inherit}button{cursor:pointer}.return-app-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;box-sizing:border-box;padding:11px 20px;margin:0 0 12px;border:1px solid #1d6047;border-radius:12px;background:linear-gradient(135deg,#287a58 0%,#174f3c 100%);color:#fff!important;text-decoration:none!important;text-align:center;font-weight:700;font-size:14px;line-height:1.35;box-shadow:0 4px 12px rgba(35,107,80,.18);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.return-app-btn:hover{background:linear-gradient(135deg,#318a65 0%,#1b6048 100%);box-shadow:0 7px 18px rgba(35,107,80,.25);transform:translateY(-1px)}.return-app-btn:focus-visible{outline:3px solid #a9d7bc;outline-offset:3px}.return-app-btn:active{transform:translateY(0);box-shadow:0 2px 6px rgba(35,107,80,.18)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #86bca3;outline-offset:2px}.app-shell{min-height:100vh}.sidebar{width:250px;background:#fff;border-left:1px solid var(--line);position:fixed;inset:0 0 0 auto;display:flex;flex-direction:column;padding:27px 18px 14px;z-index:5}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);padding:0 6px 30px}.brand-icon,.paper-mark{background:var(--green);color:white;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-size:24px;font-weight:700}.brand b{display:block;font-size:18px;line-height:1.4}.brand small,.profile small{display:block;color:var(--muted);font-size:11px}.nav-label{font-size:11px;color:#9aa49e;padding:0 12px 10px}.nav{border:0;background:transparent;text-align:right;width:100%;padding:11px 12px;border-radius:9px;color:#66746d;display:flex;gap:12px;align-items:center;margin-bottom:4px}.nav>span{font-size:19px;width:23px;text-align:center}#ownerAdminNav [data-owner-admin-label]{width:auto;flex:1;white-space:nowrap;text-align:inherit;font-size:inherit}.nav.active{background:#eaf3ed;color:var(--green);font-weight:700}.nav i{font-size:11px;font-style:normal;background:#fff;border:1px solid var(--line);border-radius:6px;padding:0px 7px;margin-right:auto}.side-bottom{margin-top:auto}.help-card{background:#f5f8f3;border:1px solid #e7eee5;border-radius:12px;padding:15px;margin-bottom:16px}.help-icon{color:var(--green);display:block;font-size:20px}.help-card b{font-size:13px}.help-card p{font-size:11px;color:var(--muted);margin:4px 0 0;line-height:1.9}.profile{border-top:1px solid var(--line);margin-top:12px;padding:15px 3px 0;display:flex;align-items:center;gap:10px}.avatar{height:36px;width:36px;border-radius:50%;display:grid;place-items:center;background:#dcebe0;color:var(--green);font-weight:700}.profile b{font-size:12px}.dots{margin-right:auto;color:#9aa49e}.main{margin-right:250px;min-height:100vh;padding:0 34px;max-width:1800px}.topbar{min-height:70px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.usage-indicator{display:flex;align-items:center;justify-content:center;gap:8px;max-width:560px;border:0;background:transparent;padding:0;color:#245b40;font-size:11px;line-height:1.45;white-space:normal;text-align:start}.usage-card{display:flex;align-items:center;gap:9px;min-width:0;padding:7px 12px;border:1px solid #dce8df;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(29,76,50,.04)}.usage-plan{background:linear-gradient(135deg,#f7fbf7,#edf6ef)}.usage-wallet{background:linear-gradient(135deg,#fbfaff,#f3f0fb);border-color:#e4ddf2;color:#5d4a91}.usage-orb{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:#dceee1;color:#236b50;font-size:15px;box-shadow:inset 0 0 0 1px rgba(35,107,80,.08)}.usage-wallet .usage-orb{background:#e8e0f7;color:#6a55a1}.usage-card-copy{display:flex;flex-direction:column;gap:1px;min-width:0}.usage-card-copy small{font-size:10px;color:#718078;font-weight:600}.usage-card-copy strong{font-size:12px;line-height:1.35;color:#245b40;white-space:nowrap}.usage-wallet .usage-card-copy strong{color:#5d4a91;font-size:13px}.usage-card-copy strong i{font-style:normal;font-size:10px;font-weight:500}.usage-card-copy em{font-size:10px;font-style:normal;color:#64776a;white-space:nowrap}.usage-indicator.is-empty .usage-plan{border-color:#f0d5c9;background:#fff8f5}.usage-indicator.is-empty .usage-plan .usage-orb{background:#f9e4dc;color:#9b4938}.usage-indicator[hidden]{display:none!important}.crumb{font-size:12px;color:var(--muted)}.crumb span,.eyebrow span{padding:0 7px;color:#b4bcb6}.crumb b{color:#48574f;font-weight:500}.top-actions{display:flex;gap:12px;align-items:center}.demo-pill{border:1px solid #e4e9e3;background:#fff;border-radius:20px;padding:4px 10px;font-size:11px;color:#718078}.demo-pill i,.status-dot{display:inline-block;width:7px;height:7px;background:#49a477;border-radius:50%;margin-left:5px}.icon-btn{border:1px solid var(--line);background:white;border-radius:9px;width:35px;height:35px;color:#6f7c74}.avatar.small{width:32px;height:32px}.page{padding:28px 0 40px}.hidden{display:none!important}.welcome{min-height:210px;background:linear-gradient(125deg,#dcebe0 0%,#e8f1e8 55%,#d4e6d9 100%);border:1px solid #c6dccd;border-radius:17px;padding:28px 32px;display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative}.eyebrow{color:#174f3b;font-size:13px;font-weight:700;margin-bottom:9px}.welcome h1,.page-title h1{font-size:29px;line-height:1.45;margin:0 0 9px;font-weight:750;letter-spacing:-.5px;color:#173f30}.welcome p,.page-title p{color:#344f41;margin:0;font-size:15px;font-weight:500;line-height:1.9}.top-actions .small-action{font-size:12px;font-weight:700;padding:8px 12px;border-color:#236b50;color:#1b5a42}.top-actions #accountAction:not([href=\"#\"]),.top-actions #logoutAction{background:#236b50;color:#fff;border-color:#174f3b}.top-actions #accountAction[href=\"#\"]{background:#fff;color:#174f3b;border-color:#b9d2c1;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.welcome-art{width:210px;height:165px;position:relative;flex-shrink:0;margin-left:35px}.art-sheet{position:absolute;width:105px;height:135px;background:white;border-radius:9px;box-shadow:0 8px 25px #294f3214;top:20px;left:46px}.sheet-back{transform:rotate(-12deg);left:27px;top:27px;background:#cbded0}.sheet-front{padding:16px 13px}.sheet-front>span{background:#e2f0e5;color:var(--green);border-radius:5px;padding:2px 8px;font-weight:bold}.sheet-front>div:not(.art-check){height:4px;background:#e7ece6;border-radius:4px;margin-top:10px;width:75%}.sheet-front .art-lines{height:28px!important;width:100%!important;background:repeating-linear-gradient(to bottom,#e7ece6 0 3px,transparent 3px 9px)!important}.art-check{position:absolute;background:var(--green);color:white;border-radius:50%;width:31px;height:31px;display:grid;place-items:center;bottom:12px;left:-13px;box-shadow:0 4px 10px #236b5033}.art-spark{position:absolute;top:0;right:25px;color:#8caf8f;font-size:26px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:29px 0 13px}.section-heading h2{font-size:17px;margin:0 0 2px}.section-heading p{margin:0;color:var(--muted);font-size:12px}.create-card{display:flex;align-items:center;gap:19px;padding:22px 24px;background:white;border:1px solid #e4eae3;border-radius:14px;box-shadow:var(--shadow)}.create-symbol{width:48px;height:48px;flex-shrink:0;display:grid;place-items:center;background:var(--green2);color:var(--green);font-size:28px;border-radius:12px}.create-copy{flex:1}.create-copy h3{margin:0 0 3px;font-size:16px}.create-copy p{margin:0;color:var(--muted);font-size:12px}.feature-chips{display:flex;gap:7px;margin-top:11px;flex-wrap:wrap}.feature-chips span{background:#f6f8f5;color:#617267;padding:3px 9px;border-radius:6px;font-size:10px}.primary-btn{border:1px solid var(--green);background:var(--green);color:white;border-radius:8px;padding:10px 17px;font-size:12px;font-weight:600;white-space:nowrap;transition:.15s}.primary-btn:hover{background:#18553e}.primary-btn span{padding-right:8px}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.stat-card{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px}.stat-icon{width:39px;height:39px;border-radius:10px;display:grid;place-items:center;font-size:19px}.stat-icon.green{background:#e6f2e9;color:#377c57}.stat-icon.blue{background:#e8eff8;color:#5e81b2}.stat-icon.amber{background:#fbf0dd;color:#b4873d}.stat-card small,.stat-card em{display:block;font-size:11px;color:var(--muted);font-style:normal}.stat-card strong{font-size:23px;line-height:1.5;display:block}.stat-card em{font-size:10px}.recent-head{margin-top:30px}.text-btn{border:0;background:transparent;color:var(--green);font-size:12px;font-weight:600;padding:8px}.recent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.empty-state{background:white;border:1px dashed #d9e2da;border-radius:12px;padding:26px;text-align:center;color:var(--muted);font-size:12px;grid-column:1/-1}.lesson-card{background:white;border:1px solid var(--line);border-radius:11px;padding:15px;display:flex;gap:12px;align-items:center}.lesson-icon{width:40px;height:42px;background:#e9f3eb;color:var(--green);border-radius:9px;display:grid;place-items:center;font-size:19px;flex-shrink:0}.lesson-info{flex:1;min-width:0}.lesson-info b{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:13px}.lesson-info small{display:block;color:var(--muted);font-size:10px}.small-action{background:#fff;border:1px solid var(--line);border-radius:7px;padding:6px 10px;color:var(--green);font-size:11px}.small-action.danger{color:#a34e45;border-color:#efd5d1;background:#fff8f7}.small-action.danger:hover{background:#fbe9e6}.bottom-note{display:flex;gap:12px;background:#f0f4ed;border-radius:10px;padding:15px 18px;margin-top:24px}.bottom-note>span{font-size:21px;color:var(--green)}.bottom-note b{font-size:12px}.bottom-note p{font-size:11px;color:var(--muted);margin:2px 0 0}.app-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#9aa49d;font-size:10px;padding:17px 0 20px}.app-footer b{color:#b36c6c}.page-title{display:flex;gap:14px;align-items:center;margin-bottom:25px}.page-title>div{flex:1}.page-title h1{font-size:24px}.back-btn{height:38px;width:38px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#526359;font-size:18px}.stepper{display:flex;align-items:center;gap:12px;margin-bottom:22px;padding:14px 20px;background:white;border:1px solid var(--line);border-radius:12px}.step{display:flex;align-items:center;gap:10px}.step>span{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#edf0ec;color:#7c8880}.step.active>span{background:var(--green);color:#fff}.step b,.step small{display:block;font-size:11px}.step small{color:var(--muted);font-size:10px}.step-line{height:1px;background:var(--line);flex:1}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:18px;align-items:start}.form-column{min-width:0}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:15px;box-shadow:0 3px 14px #20372a04}.panel-heading{display:flex;gap:11px;align-items:center;margin-bottom:19px}.panel-icon{width:36px;height:36px;border-radius:9px;background:#e8f2e9;color:var(--green);display:grid;place-items:center;font-size:19px;flex-shrink:0}.panel-icon.violet{background:#f0ecfa;color:var(--purple)}.panel-icon.amber{background:#fbf0df;color:#b4873d}.panel-heading h3,.panel h3{margin:0;font-size:14px}.panel-heading p{margin:2px 0 0;color:var(--muted);font-size:11px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 13px}label{display:block;color:#47574d;font-size:11px;font-weight:600}input,select,textarea{display:block;width:100%;margin-top:6px;border:1px solid #e0e6df;border-radius:7px;padding:10px 11px;background:#fff;color:var(--ink);font-size:12px;outline:none}input:focus,select:focus,textarea:focus{border-color:#7caf91}textarea{resize:vertical;line-height:1.8}.full{grid-column:1/-1}.required{color:#bc5b50}.optional{color:#a2aaa3;font-weight:400;margin-right:5px}.block-label{display:block;margin-top:15px}.source-tabs{display:flex;gap:5px;padding:4px;background:#f5f7f4;border-radius:8px;margin-bottom:14px}.source-tab{flex:1;border:0;border-radius:6px;background:transparent;color:#718078;padding:8px 4px;font-size:11px}.source-tab.active{background:#fff;color:var(--green);box-shadow:0 1px 5px #20372a12;font-weight:700}.source-content textarea{margin-top:0}.source-hint{font-size:10px;color:#8b968e;margin:8px 0 0;line-height:1.8}.upload-zone{border:1px dashed #cddbd0;border-radius:10px;background:#fafcf9;padding:24px 12px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;cursor:pointer}.upload-icon{width:39px;height:39px;border-radius:50%;display:grid;place-items:center;background:#e5f0e7;color:var(--green);font-size:21px}.upload-zone b{font-size:12px}.upload-zone small{font-weight:400;color:var(--muted)}.outline-btn{border:1px solid #dce4dc;background:white;border-radius:7px;padding:8px 12px;color:#53655a;font-size:11px;white-space:nowrap}.upload-zone .outline-btn{margin-top:7px}.file-list{margin-top:8px}.file-item{padding:8px 10px;border:1px solid var(--line);border-radius:7px;font-size:11px;margin-top:5px;display:flex;justify-content:space-between}.notice,.warning-banner{display:flex;gap:10px;background:#fdf7e9;border:1px solid #f3e7c9;border-radius:8px;padding:12px;color:#8d713e}.notice>span{font-size:17px}.notice p,.warning-banner p{font-size:11px;margin:0;line-height:1.8}.error-msg{color:#9e423a;background:#fff0ee;border:1px solid #f2d3cf;border-radius:8px;padding:10px;margin-bottom:10px;font-size:12px}.wide{width:100%;padding:13px}.fine-print{text-align:center;color:#9ba59e;font-size:10px}.tips-column .tip-card{background:white;border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:13px}.tip-icon{width:32px;height:32px;border-radius:9px;background:#e6f2e8;color:var(--green);display:grid;place-items:center;margin-bottom:10px}.tip-card h3{font-size:13px;margin:0 0 15px}.tip-step{display:flex;gap:10px;margin:14px 0}.tip-step>span{background:#f0f4ef;border-radius:7px;width:27px;height:27px;display:grid;place-items:center;color:var(--green);flex-shrink:0}.tip-step p{margin:0}.tip-step b,.tip-step small{display:block;font-size:11px}.tip-step small{font-size:10px;color:var(--muted);margin-top:2px}.tip-card.warm{background:#fcf8ef;border-color:#f0e9d9}.tip-card.warm .tip-icon{background:#f7edd5;color:#a78338}.tip-card.warm p{font-size:11px;color:#81785f;line-height:2;margin:0}.save-top{margin-right:auto}.warning-banner{align-items:center;margin-bottom:17px;background:#fff9eb}.warning-banner>span{font-size:20px}.result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;flex-wrap:wrap}.doc-tabs{display:flex;gap:5px;background:#e9ede8;padding:4px;border-radius:9px}.doc-tab{border:0;background:transparent;border-radius:7px;padding:8px 13px;font-size:12px;color:#69776d}.doc-tab.active{background:white;color:var(--green);font-weight:700;box-shadow:0 1px 5px #20372a12}.toolbar-actions{display:flex;gap:7px;flex-wrap:wrap}.document-meta{display:flex;gap:9px;align-items:center;color:#76847a;font-size:11px;margin-bottom:12px}.draft-label{margin-right:auto;background:#f8f0dd;color:#997638;padding:3px 9px;border-radius:5px;font-size:10px}.doc-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:17px;align-items:start}.doc-sheet{background:white;border:1px solid #e4e8e1;border-radius:3px;box-shadow:0 4px 20px #263a2b08;padding:30px 34px;min-height:600px}.paper-brand{display:flex;align-items:center;gap:10px;border-bottom:2px solid var(--green);padding-bottom:14px;margin-bottom:23px}.paper-mark{width:33px;height:33px;border-radius:8px;font-size:19px}.paper-brand>span:nth-child(2){font-weight:700;font-size:13px}.paper-brand small{display:block;font-weight:400;font-size:9px;color:var(--muted)}.paper-date{margin-right:auto;font-size:10px;color:var(--muted)}#docContent{min-height:430px;outline:none;line-height:2.05;font-size:13px}#docContent h1{font-size:21px;color:#234e3a;text-align:center;margin:8px 0 20px}#docContent h2{font-size:16px;color:#2d684c;border-bottom:1px solid #e3ebe3;padding-bottom:5px;margin:22px 0 8px}#docContent h3{font-size:13px;color:#3c5947;margin:15px 0 5px}#docContent p{margin:8px 0}#docContent ul{padding-right:22px}#docContent table{width:100%;border-collapse:collapse;margin:13px 0;font-size:11px}#docContent td,#docContent th{border:1px solid #dce5dc;padding:7px;vertical-align:top}#docContent th{background:#edf4ed;color:#315c42}.paper-footer{border-top:1px solid var(--line);padding-top:10px;margin-top:25px;color:#a0aaa2;font-size:9px;text-align:center}.doc-bottom-actions{display:flex;justify-content:space-between;padding:10px 0}.doc-side .panel{padding:16px}.muted{color:var(--muted);font-size:11px;line-height:1.8}.linked-doc{display:flex;align-items:center;gap:9px;padding:10px 7px;border-radius:8px;margin-top:5px;color:#748078;cursor:pointer}.linked-doc.active{background:#edf4ed;color:var(--green)}.linked-doc>span{font-size:19px}.linked-doc div{flex:1}.linked-doc b,.linked-doc small{display:block;font-size:11px}.linked-doc small{font-size:9px;color:#8b978e}.linked-doc:not(.active)>span:last-child{color:transparent}.status-row{display:flex;gap:8px;align-items:center;font-size:11px;color:#67776c;margin-top:11px}.amber-dot{background:#d5a448}.tiny{font-size:10px;margin-top:15px}.lesson-list{display:grid;gap:10px}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.template-card{text-align:right;background:white;border:1px solid var(--line);border-radius:12px;padding:20px;display:flex;flex-direction:column;align-items:flex-start}.template-card:hover{border-color:#8eb79a}.template-card.selected{border:2px solid var(--green);background:#f1f8f2;box-shadow:0 0 0 3px rgba(35,107,80,.14),0 8px 22px rgba(35,107,80,.10);position:relative}.template-card.selected::after{content:'✓ تم الاختيار';position:absolute;top:12px;inset-inline-end:12px;padding:5px 9px;border-radius:20px;background:var(--green);color:#fff;font-size:11px;font-weight:700}.template-card.selected .template-select{color:var(--green)}.template-preview{width:46px;height:46px;border-radius:10px;background:#e8f2e9;color:var(--green);display:grid;place-items:center;font-size:24px;margin-bottom:14px}.template-preview.purple{background:#f0ecfa;color:var(--purple)}.template-preview.amber-bg{background:#fbf0df;color:#b4873d}.template-card>b{font-size:14px}.template-card p{font-size:11px;color:var(--muted);line-height:1.9;min-height:42px}.template-select{font-size:11px;color:var(--green);font-weight:700;margin-top:5px}.settings-panel{max-width:620px}.settings-panel label{max-width:360px;margin-top:15px}.settings-panel .primary-btn{margin-top:15px}.divider{height:1px;background:var(--line);margin:24px 0}.danger{color:#a34e45}.language-flags{display:flex;gap:4px;align-items:center}.language-flag{width:35px;height:32px;padding:2px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:19px;line-height:1;display:grid;place-items:center}.language-flag:hover{border-color:#9bbba3;background:#f7faf7}.language-flag.active{border-color:var(--green);background:#e8f2e9;box-shadow:0 0 0 1px var(--green)}.language-select-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.toast{position:fixed;bottom:24px;left:24px;z-index:20;background:#203b2c;color:white;padding:12px 18px;border-radius:9px;box-shadow:0 6px 25px #0002;font-size:12px;max-width:calc(100vw - 40px)}
/* Visible progress feedback for long-running actions */
button.is-loading{opacity:.88;cursor:progress;pointer-events:none}
button.is-loading::before{content:"";display:inline-block;width:1em;height:1em;margin-inline-end:8px;vertical-align:-.16em;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:ostad-spin .7s linear infinite}
button:disabled{cursor:progress}
@keyframes ostad-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){button.is-loading::before{animation-duration:1.8s}}
/* Direction-aware layout: Arabic docks navigation to the right; French/English dock it to the left. */
html[dir="rtl"]{direction:rtl}html[dir="ltr"]{direction:ltr}html[dir="ltr"] body{direction:ltr;text-align:left}html[dir="ltr"] .sidebar{left:0;right:auto;border-left:0;border-right:1px solid var(--line)}html[dir="ltr"] .main{margin-right:0;margin-left:250px}html[dir="ltr"] .nav{text-align:left}html[dir="ltr"] .nav i{margin-right:0;margin-left:auto}html[dir="ltr"] .dots,html[dir="ltr"] .save-top,html[dir="ltr"] .draft-label{margin-right:0;margin-left:auto}html[dir="ltr"] .optional{margin-right:0;margin-left:5px}html[dir="ltr"] .doc-date{margin-right:0;margin-left:auto}html[dir="ltr"] .template-card{text-align:left;align-items:flex-start}html[dir="ltr"] #docContent ul{padding-right:0;padding-left:22px}html[dir="ltr"] .welcome-art{margin-left:0;margin-right:35px}html[dir="ltr"] .art-sheet{left:auto;right:46px}html[dir="ltr"] .sheet-back{left:auto;right:27px}html[dir="ltr"] .art-check{left:auto;right:-13px}html[dir="ltr"] .art-spark{right:auto;left:25px}html[dir="ltr"] .toast{left:auto;right:24px}html[dir="ltr"] .demo-pill i,html[dir="ltr"] .status-dot{margin-left:0;margin-right:5px}html[dir="ltr"] .primary-btn span{padding-right:0;padding-left:8px}
@media(min-width:1500px){.main{padding-left:55px;padding-right:55px}.welcome{padding-right:45px}.editor-layout{grid-template-columns:minmax(0,1fr) 260px}}@media(max-width:1100px){.usage-indicator{max-width:360px;gap:6px}.usage-card{padding:6px 8px;gap:6px}.usage-orb{width:28px;height:28px;flex-basis:28px}.usage-card-copy em{white-space:normal}.topbar{gap:8px}}@media(max-width:760px){.topbar{height:auto;min-height:70px;flex-wrap:wrap;padding:10px 0}.usage-indicator{order:3;max-width:100%;width:100%;justify-content:stretch}.usage-card{flex:1;min-width:0}.usage-card-copy strong{white-space:normal}.top-actions{gap:7px;flex-wrap:wrap;justify-content:flex-start}}@media(max-width:1100px){.sidebar{width:215px;padding:22px 13px}.main{margin-right:215px;padding:0 22px}.editor-layout{grid-template-columns:minmax(0,1fr)}.tips-column{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tips-column .tip-card{margin:0}.doc-layout{grid-template-columns:minmax(0,1fr)}.doc-side{display:grid;grid-template-columns:1fr 1fr;gap:12px}.doc-side .panel{margin:0}}@media(max-width:760px){.sidebar{width:65px;padding:18px 8px}.brand{padding:0 4px 24px;justify-content:center}.brand>span:last-child,.nav-label,.nav:not(.active) i,.nav{font-size:0}.brand-icon{width:39px;height:39px;flex-shrink:0}.nav{height:44px;justify-content:center;padding:5px 0;font-size:0}.nav>span{font-size:20px}.nav.active{font-size:0}.nav i{display:none}.help-card,.profile span:not(.avatar){display:none}.profile{justify-content:center}.main{margin-right:65px;padding:0 14px}.topbar{height:59px}.page{padding-top:19px}.welcome{padding:22px 18px;min-height:180px}.welcome h1{font-size:24px;color:#173f30}.welcome p{font-size:13px;color:#344f41;max-width:300px}.welcome-art{transform:scale(.72);transform-origin:center left;width:125px;margin-left:-4px}.stats-grid{grid-template-columns:1fr;gap:8px}.stat-card{padding:11px 14px}.stat-card strong{font-size:19px}.create-card{flex-wrap:wrap;padding:17px;gap:12px}.create-copy{min-width:calc(100% - 65px)}.create-card>.primary-btn{width:100%}.recent-grid{grid-template-columns:1fr}.app-footer{gap:12px;font-size:9px}.editor-layout{display:block}.tips-column{display:none}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.panel{padding:15px}.source-tabs{flex-wrap:wrap}.source-tab{min-width:40%}.stepper{padding:12px;gap:7px}.step b{font-size:10px}.step small{font-size:9px}.page-title h1{font-size:20px}.page-title p{font-size:11px}.page-title{gap:9px}.result-toolbar{align-items:stretch}.doc-tabs{justify-content:space-between}.doc-tab{padding:8px 7px;font-size:10px}.toolbar-actions>*{flex:1}.document-meta{flex-wrap:wrap}.draft-label{margin-right:0}.doc-sheet{padding:20px 16px;min-height:450px}.doc-side{grid-template-columns:1fr}.template-grid{grid-template-columns:1fr}.template-card p{min-height:0}.save-top{padding:8px;font-size:10px}.paper-date{display:none}.warning-banner{align-items:flex-start}.top-actions{gap:6px}.crumb{font-size:10px}}@media(max-width:1100px){html[dir="ltr"] .main{margin-left:215px;margin-right:0}}
@media(max-width:760px){html[dir="ltr"] .sidebar{left:0;right:auto;border-right:1px solid var(--line);border-left:0}html[dir="ltr"] .main{margin-left:65px;margin-right:0}html[dir="ltr"] .welcome-art{transform-origin:center right}}
@media print{body{background:white;font-size:12px}.sidebar,.topbar,.app-footer,.page-title,.warning-banner,.result-toolbar,.doc-side,.document-meta,.doc-bottom-actions,.toast{display:none!important}.main{margin:0;padding:0;max-width:none}.page{display:none!important}#resultsPage{display:block!important;padding:0}.doc-layout{display:block}.doc-sheet{border:0;box-shadow:none;padding:0;min-height:0}.paper-brand{margin-bottom:12px}#docContent{min-height:0;font-size:11pt;line-height:1.8}#docContent h1{font-size:18pt}#docContent h2{font-size:14pt}#docContent table{break-inside:avoid}#docContent tr{break-inside:avoid}.paper-footer{margin-top:18px}@page{size:A4;margin:17mm 15mm}}
/* Strong, high-contrast welcome banner override */
.welcome{background:#145238!important;background-image:none!important;border:2px solid #0d3f2a!important;color:#fff!important;min-height:250px!important;padding:38px 40px!important}
.welcome .eyebrow,.welcome h1,.welcome p{color:#fff!important;text-shadow:none!important}
.welcome .eyebrow{font-size:18px!important;margin-bottom:14px!important}
.welcome h1{font-size:clamp(30px,2.6vw,42px)!important;line-height:1.5!important;font-weight:800!important;margin-bottom:14px!important;letter-spacing:0!important}
.welcome p{font-size:21px!important;line-height:1.9!important;font-weight:600!important;max-width:850px!important}
@media(max-width:760px){.welcome{min-height:220px!important;padding:28px 20px!important}.welcome .eyebrow{font-size:16px!important}.welcome h1{font-size:29px!important;line-height:1.55!important}.welcome p{font-size:18px!important;line-height:1.9!important}.welcome-art{opacity:.7}}

/* Accessibility: increase readability across every application section */
html{font-size:16px}
body{font-size:16px!important;line-height:1.8!important}
button,input,select,textarea{font-size:15px}
.sidebar .nav{font-size:15px;padding-top:12px;padding-bottom:12px}
.nav-label{font-size:13px}
.brand b{font-size:20px}
.brand small,.profile small{font-size:13px}
.help-card b,.profile b{font-size:14px}
.help-card p{font-size:13px;line-height:1.85}
.crumb{font-size:14px}
.demo-pill{font-size:13px;padding:5px 11px}
.usage-indicator{font-size:13px;line-height:1.65}
.welcome .eyebrow{font-size:16px!important}
.welcome p{font-size:19px!important;line-height:1.85!important}
.section-heading h2{font-size:20px}
.section-heading p{font-size:14px;line-height:1.8}
.create-copy h3{font-size:18px}
.create-copy p{font-size:15px;line-height:1.8}
.feature-chips span{font-size:13px;padding:4px 10px}
.primary-btn,.small-action,.text-btn{font-size:14px}
.stat-card small,.stat-card em{font-size:13px;line-height:1.65}
.stat-card em{font-size:12px}
.recent-head p,.bottom-note p{font-size:14px;line-height:1.8}
.bottom-note b{font-size:15px}
.lesson-info b{font-size:15px}
.lesson-info small{font-size:13px;line-height:1.7}
.empty-state{font-size:15px;line-height:1.9}
.page-title h1{font-size:27px}
.page-title p{font-size:16px;line-height:1.8}
.step b{font-size:14px}
.step small{font-size:13px}
.panel-heading h3,.panel h3{font-size:17px}
.panel-heading p{font-size:14px;line-height:1.8}
label{font-size:14px;line-height:1.8}
input,select,textarea{font-size:15px!important;padding:12px!important;line-height:1.7}
.source-tab{font-size:14px;padding:10px 6px}
.source-hint,.fine-print{font-size:13px;line-height:1.85}
.upload-zone b{font-size:15px}
.upload-zone small{font-size:13px}
.notice p,.warning-banner p,.error-msg{font-size:14px;line-height:1.85}
.tip-card h3{font-size:17px}
.tip-card p,.tip-step p{font-size:14px;line-height:1.85}
.tip-step small{font-size:13px;line-height:1.7}
.doc-tab,.linked-doc{font-size:15px}
#docContent{font-size:16px;line-height:1.95}
#docContent h1{font-size:28px;line-height:1.5}
#docContent h2{font-size:23px;line-height:1.6}
#docContent h3{font-size:19px;line-height:1.65}
.document-meta,.paper-date,.save-top,.paper-footer,.app-footer{font-size:13px;line-height:1.8}
.toast{font-size:15px;line-height:1.8}
@media(max-width:760px){
 body{font-size:15px!important}
 .main{padding-left:16px;padding-right:16px}
 .sidebar .nav{font-size:14px}
 .section-heading h2{font-size:18px}
 .page-title h1{font-size:23px}
 .welcome{padding:25px 18px!important}
 .welcome .eyebrow{font-size:15px!important}
 .welcome h1{font-size:27px!important}
 .welcome p{font-size:17px!important}
 .panel{padding:16px}
 .source-tab{font-size:13px}
 .primary-btn,.small-action,.text-btn{font-size:13px}
 #docContent{font-size:15px;line-height:1.9}
 #docContent h1{font-size:24px}
 #docContent h2{font-size:21px}
}
/* Final accessibility pass: prevent tiny and low-contrast copy across all app sections */
body{font-size:16px!important;line-height:1.8!important}
body p,body li,body label,body legend,body summary,body blockquote,body dt,body dd{font-size:16px!important;line-height:1.85!important}
body small,body .tiny,body .draft-label,body .paper-date,body .paper-brand small,body .linked-doc small,
body .tip-step small,body .nav-label,body .optional,body .fine-print,body .source-hint,body .demo-pill,
body .usage-indicator,body .crumb,body .stat-card small,body .stat-card em,body .lesson-info small,
body .document-meta,body .app-footer,body .status-row,body .template-select,body .template-card p,
body .muted,body .help-card p,body .step small,body .outline-btn,body .file-item,body .role-badge,
body .popular-badge,body .pill,body .save-top,body .source-tab,body .text-btn,body .small-action,
body .primary-btn,body .doc-tab,body .linked-doc,body .feature-chips span,body .empty-state,
body .toast,body .notice,body .warning-banner,body .error-msg{
 font-size:14px!important;line-height:1.8!important
}
body .muted,body .source-hint,body .fine-print,body .tip-step small,body .lesson-info small,
body .stat-card small,body .stat-card em,body .paper-date,body .document-meta,body .app-footer,
body .nav-label,body .optional,body .draft-label,body .status-row,body .template-select{
 color:#53635a!important
}
body .nav{font-size:16px!important;line-height:1.8!important}
body .panel-heading h3,body .panel h3,body .tip-card h3{font-size:18px!important;line-height:1.6!important}
body input,body select,body textarea{font-size:16px!important;line-height:1.7!important}
body input::placeholder,body textarea::placeholder{color:#65746a!important;opacity:1}
body .primary-btn,body .small-action,body .text-btn{min-height:40px}
@media print{
 body{font-size:12px!important;line-height:1.6!important}
 body p,body li,body label,body small,body .document-meta,body .paper-date,body .paper-footer{font-size:10pt!important;line-height:1.6!important}
 #docContent{font-size:11pt!important;line-height:1.8!important}
 #docContent h1{font-size:18pt!important}
 #docContent h2{font-size:14pt!important}
 #docContent h3{font-size:12pt!important}
 #docContent table{font-size:10pt!important}
}
/* Remaining small labels and footnotes */
.outline-btn,.file-item,.tip-step b,.tip-card.warm p,.draft-label,.paper-brand small,
.linked-doc b,.linked-doc small,.status-row,.tiny,.template-card p,.template-select,
.muted,.save-top,.paper-date,.paper-footer{font-size:13px;line-height:1.8}
.tip-step b{font-size:14px}
.linked-doc b{font-size:15px}
.linked-doc small{font-size:13px}
.paper-brand small{font-size:13px}
.doc-tab{font-size:14px}
#docContent table{font-size:15px;line-height:1.8}
@media print{
 body{font-size:12px!important;line-height:1.7!important}
 .main{padding:0!important}
 #docContent{font-size:11pt!important;line-height:1.8!important}
 #docContent h1{font-size:18pt!important}
 #docContent h2{font-size:14pt!important}
 #docContent h3{font-size:12pt!important}
 #docContent table{font-size:10pt!important}
 .paper-date,.document-meta,.paper-footer{font-size:10pt!important}
}
/* High-contrast secondary text: grey copy, labels, metadata and placeholders */
body .muted,body small,body .nav-label,body .optional,body .fine-print,body .source-hint,
body .tip-step small,body .lesson-info small,body .stat-card small,body .stat-card em,
body .paper-date,body .document-meta,body .app-footer,body .status-row,body .template-select,
body .draft-label,body .paper-brand small,body .linked-doc small,body .help-card p,
body .step small,body .outline-btn,body .file-item,body .demo-pill,body .crumb,
body .support-hint,body .muted-text,body .hint-text,body .description,body .secondary-text {
 color:#435047!important;
 opacity:1!important;
}
body input::placeholder,body textarea::placeholder,body select:invalid,
body input::-webkit-input-placeholder,body textarea::-webkit-input-placeholder{
 color:#56645a!important;opacity:1!important;
}
body .demo-pill{background:#fff!important;border-color:#cbd5cc!important}
body .nav-label{color:#536158!important}
body .status-row,body .paper-date,body .document-meta,body .app-footer{color:#4c5a50!important}
body .tip-card.warm p,body .bottom-note p,body .section-heading p,
body .create-copy p,body .page-title p,body .panel-heading p,body .help-card p{
 color:#48574d!important;opacity:1!important;
}
@media print{
 body .paper-date,body .document-meta,body .paper-footer{color:#222!important}
}
/* Stronger contrast and clearer hierarchy for plan usage and wallet cards */
.usage-indicator{gap:10px;max-width:650px}
.usage-card{min-height:58px;padding:8px 12px;border-width:1px;box-shadow:0 3px 10px rgba(24,54,35,.08)}
.usage-plan{background:#edf7ef!important;border-color:#a8cbb1!important}
.usage-wallet{background:#f4efff!important;border-color:#c9b8ec!important}
.usage-card-copy small{font-size:12px!important;line-height:1.5!important;font-weight:700!important;color:#344b3a!important}
.usage-card-copy strong{font-size:14px!important;line-height:1.5!important;font-weight:800!important;color:#174b31!important}
.usage-wallet .usage-card-copy strong{font-size:15px!important;color:#49327f!important}
.usage-card-copy em{font-size:12px!important;line-height:1.55!important;font-weight:600!important;color:#344b3a!important}
.usage-orb{width:36px;height:36px;flex-basis:36px;font-size:17px;background:#cce8d3!important;color:#174b31!important;box-shadow:inset 0 0 0 1px #8fbea0}
.usage-wallet .usage-orb{background:#ded1fb!important;color:#49327f!important;box-shadow:inset 0 0 0 1px #b7a0e7}
@media(max-width:1100px){.usage-indicator{max-width:100%}.usage-card{padding:8px 9px}.usage-card-copy strong,.usage-wallet .usage-card-copy strong{font-size:13px!important}}
@media(max-width:760px){.usage-indicator{display:grid;grid-template-columns:1fr 1fr;gap:8px}.usage-card{width:100%;align-items:flex-start;padding:9px;gap:7px}.usage-orb{width:30px;height:30px;flex-basis:30px}.usage-card-copy strong,.usage-wallet .usage-card-copy strong{white-space:normal!important;overflow-wrap:anywhere;font-size:13px!important}.usage-card-copy em{white-space:normal!important}}
/* Make lesson preparation and interactive quizzes first-class actions */
.home-action-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(250px,.85fr);align-items:stretch;gap:14px;margin-bottom:18px}
.home-action-grid .create-card{height:100%;min-width:0}
.quiz-promo-card{min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;padding:21px 22px;border:1px solid #d9ceeF;border-radius:14px;background:linear-gradient(145deg,#fff 0%,#fbf9ff 100%);color:#28352f;text-decoration:none;box-shadow:0 5px 22px #20372a08;transition:transform .18s,border-color .18s,box-shadow .18s}
.quiz-promo-card:hover{transform:translateY(-2px);border-color:#bda9df;box-shadow:0 12px 28px rgba(75,53,126,.1)}
.quiz-promo-card:focus-visible{outline:3px solid #b6a3df;outline-offset:3px}
.quiz-promo-top{display:flex;align-items:center;gap:9px}
.quiz-promo-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;background:#eee7fa;color:#6b529f;font-size:22px;font-weight:800}
.quiz-promo-kicker{color:#78669c;font-size:10px;font-weight:800;letter-spacing:.2px}
.quiz-promo-card h3{margin:0;color:#342953;font-size:17px;line-height:1.5}
.quiz-promo-card p{margin:0;color:#6d687a;font-size:11px;line-height:1.9}
.quiz-promo-link{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:5px;color:#665194;font-size:11px;font-weight:800}
.quiz-promo-note{display:block;color:#847a98;font-size:10px;line-height:1.7;font-weight:600}
.quiz-editor-link{display:flex;align-items:center;justify-content:center;gap:8px;width:fit-content;max-width:100%;min-height:41px;margin:10px auto 0;padding:9px 14px;text-decoration:none!important;font-size:12px}
.quiz-editor-link span[aria-hidden="true"],.quiz-result-link span[aria-hidden="true"]{font-weight:800;color:#665194}
.quiz-result-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none!important;white-space:normal;line-height:1.5}
.quiz-result-link span:last-child{display:inline}
@media(max-width:760px){.quiz-editor-link{width:100%}.quiz-result-link{font-size:11px;padding:8px 10px}}
.quiz-promo-link span{font-size:16px}
html[dir=ltr] .quiz-promo-card{align-items:flex-start}
@media(max-width:880px){.home-action-grid{grid-template-columns:1fr}.home-action-grid .create-card{height:auto}.quiz-promo-card{min-height:175px}}
@media(max-width:600px){.home-action-grid .create-card{flex-wrap:wrap;padding:17px}.home-action-grid .create-copy{min-width:0}.home-action-grid .primary-btn{margin-inline-start:auto}.quiz-promo-card{padding:18px;min-height:160px}}