@font-face{font-family:Cairo;src:url('/assets/cairo.woff')}*{box-sizing:border-box}body{margin:0;background:#f8f3e9;color:#173d30;font:16px/1.7 Cairo,Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button,a,input,textarea,select{outline-offset:4px}a{color:#0b4634}.shell{max-width:960px;margin:auto;min-height:100svh;padding:12px 18px 30px}header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#064b35;color:#fff6dc;padding:16px 22px;border-radius:24px;border-bottom:2px solid #bb913b}header a{color:inherit;text-decoration:none}.brand{font:bold 27px Arial,sans-serif;direction:ltr}.brand span{background:#f3e5be;color:#064b35;padding:3px 8px;border-radius:8px}.hero{padding:28px 20px;background:linear-gradient(90deg,#fff7e0d9,#fff7e0b3),url('/assets/desk.svg') center 65%/cover;border-radius:18px;margin:16px 0;border:1px solid #e4d5b6}.hero h1{margin:0;font-size:26px}.hero p{margin:3px 0}.card,.panel{background:#fffdf8;border:1px solid #d9d4c4;border-radius:18px;padding:20px;margin:14px 0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.cards button{position:relative;min-height:140px;border:1.5px solid #37664c;background:#fffdf8;color:#12432f;border-radius:18px;font-weight:750;font-size:19px;padding:22px 12px;box-shadow:0 3px 0 #b98a3230}.symbol{display:block;font-size:28px;color:#a17b27;margin-bottom:6px}.badge{display:inline-flex;min-width:26px;height:26px;padding:0 7px;align-items:center;justify-content:center;border-radius:40px;background:#bd3333;color:white;font:700 14px Arial,sans-serif;vertical-align:middle;margin-inline-start:8px}.badge[hidden]{display:none}.btn{border:1px solid #b6bdad;border-radius:10px;padding:9px 16px;min-height:44px;background:#fffdf8;color:#15422f;text-decoration:none;display:inline-block}.primary{background:#0b543a;border-color:#0b543a;color:white}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.row.between{justify-content:space-between}h2{margin:8px 0 16px;font-size:22px}h3{margin:8px 0}label{display:block;margin:10px 0 4px}input:not([type=checkbox]),select,textarea{width:100%;border:1px solid #9aab9d;border-radius:10px;min-height:46px;background:white;color:#1f3329;padding:10px}input[type=checkbox]{width:20px;height:20px;accent-color:#136d3e;vertical-align:middle;margin-inline-end:8px}fieldset{border:1px solid #d9d4c4;border-radius:12px;margin:16px 0;padding:12px}small,.muted{color:#6b776d}#status:empty{display:none}#status{white-space:pre-line}.thread{width:100%;text-align:right;border:1px solid #c7d0c7;border-radius:14px;background:#fff;padding:14px 16px;margin:6px 0;color:#183d2d}.thread.pending{background:#fff3db;border-color:#c5a059}.thread.answered{background:#f0f5ef}.thread small{display:block}.thread .row{justify-content:space-between}.log{list-style:none;display:flex;flex-direction:column;gap:12px;margin:0;padding:18px;overflow-y:auto;min-height:260px;max-height:56svh;background:linear-gradient(#f6f4eefa,#f6f4eefa),url('/assets/desk.svg') center/cover;border-radius:14px}.bubble{max-width:85%;padding:11px 15px;border-radius:16px 16px 3px 16px;align-self:flex-start;background:#fff;border:1px solid #dfdfd4;overflow-wrap:anywhere;white-space:pre-wrap;color:#26372b}.bubble.teacher{align-self:flex-end;border-radius:16px 16px 16px 3px;background:#e3eee2;border-color:#bbccbb}.bubble p{margin:0}.bubble img{display:block;max-width:100%;max-height:320px;object-fit:contain;border-radius:8px;margin:7px 0}.bubble time{display:block;font-size:11px;color:#718174;direction:rtl;margin-top:4px}.compose{display:flex;gap:10px;align-items:flex-end;margin-top:14px;position:sticky;bottom:0;background:#fffdf8;padding-top:8px}.compose label{flex:1;margin:0}.compose textarea{resize:vertical;max-height:150px;min-height:50px}.compose button{min-height:50px}.chapter{border:1px solid #d6ddcf;background:white;border-radius:14px;margin:12px 0;padding:14px}.chapter summary{cursor:pointer;font-weight:700}.chapter .btn{display:block;margin:8px 0;width:100%;text-align:right}.player{width:100%;aspect-ratio:16/9;border:0;border-radius:12px;background:#f0f0ed}.question{margin:18px 0;padding:16px;border:1px solid #dce0d6;border-radius:14px;background:white;color:#222}.question img{max-width:100%;max-height:300px;object-fit:contain}.option{padding:10px 12px;margin:8px 0;background:#f2f3ef;border-radius:10px}.option.correct{background:#e0f0e0;border:1px solid #4e935b;color:#1d642c}.error{color:#a12727}[hidden]{display:none!important}@media(max-width:600px){.shell{padding:8px 12px 20px}.brand{font-size:22px}header{padding:12px 14px;border-radius:18px}.cards{grid-template-columns:1fr}.cards button{min-height:100px;text-align:right;padding:18px}.symbol{display:inline-block;margin:0 0 0 12px}.hero{padding:20px 16px}.hero h1{font-size:23px}.panel,.card{padding:14px}.bubble{max-width:90%}.compose{gap:8px}.compose .btn{padding:10px}.log{max-height:57svh;min-height:300px;padding:12px}}
