:root{--emerald-900:#0B3B32;--emerald-700:#0E6B53;--emerald-100:#E3F2EC;--gold-500:#E9A93B;--gold-300:#F3CF86;--gold-100:#FBEBC9;--clay-600:#A23B24;--clay-100:#F7E1DB;--blue-700:#1F4E9C;--blue-100:#DFE9F8;--ink:#10201B;--ink-soft:#52615B;--mist:#B9D8CC;--paper:#F7F5F0;--card:#FFFFFF;--line:#DDE3DF;--rec:#E2563B;--radius:20px;--shadow:0 1px 2px rgba(16,32,27,0.06),0 6px 18px rgba(16,32,27,0.06);--zellige:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 4l5.2 12.8L40 22l-12.8 5.2L22 40l-5.2-12.8L4 22l12.8-5.2z' fill='none' stroke='%23E9A93B' stroke-opacity='0.16' stroke-width='1.2'/%3E%3C/svg%3E")}*{box-sizing:border-box}body,html{margin:0;padding:0}body{background:var(--paper);color:var(--ink);font-family:Cairo,system-ui,sans-serif;font-size:16px;line-height:1.6}a{color:var(--emerald-700);text-decoration:none}button{font-family:inherit;cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--gold-500);outline-offset:2px}.kufi{font-family:Reem Kufi,Cairo,sans-serif}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.shell{display:flex;min-height:100vh}.sidebar{width:260px;flex-shrink:0;background:var(--emerald-900) var(--zellige);color:#fff;padding:24px 20px;display:flex;flex-direction:column;gap:22px;position:-webkit-sticky;position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:none}.sidebar::-webkit-scrollbar{display:none}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:44px;height:44px;border-radius:13px;background:var(--gold-500);display:grid;place-items:center}.brand-name{font-size:32px;font-weight:700;line-height:1}.side-nav{display:flex;flex-direction:column;gap:6px}.side-nav a{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 14px;border-radius:14px;color:#D5E8E0;font-weight:700}.side-nav a[aria-current=page]{background:rgba(233,169,59,.16);color:var(--gold-300);font-weight:800}.side-balance{margin-top:auto;background:rgba(255,255,255,.08);border:1px solid rgba(233,169,59,.25);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:12px}.main{flex:1 1;min-width:0;padding:28px 40px 48px;display:flex;flex-direction:column;gap:26px}.bottom-nav{display:none}@media (min-width:901px) and (max-height:900px){.sidebar{padding:18px;gap:14px}.brand-mark{width:40px;height:40px}.brand-name{font-size:28px}.side-nav{gap:2px}.side-nav a{min-height:42px}.side-balance{padding:12px 14px;gap:8px}}@media (max-width:900px){.sidebar{display:none}.main{padding:18px 16px 110px;gap:20px}.bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);align-items:end;position:fixed;inset:auto 0 0 0;z-index:10;background:#fff;border-radius:26px 26px 0 0;box-shadow:0 -4px 20px rgba(16,32,27,.08);padding:10px 6px 18px}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:52px;color:var(--ink-soft);font-size:12px;font-weight:700}.bottom-nav a[aria-current=page]{color:var(--emerald-700);font-weight:800}.bottom-nav .mic-tab{margin-top:-34px}.bottom-nav .mic-tab span{width:62px;height:62px;border-radius:50%;background:var(--emerald-900);border:4px solid var(--paper);display:grid;place-items:center;box-shadow:0 6px 16px rgba(11,59,50,.35)}}.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}.page-head h1{margin:0;font-size:34px;font-weight:700}.page-head p{margin:0;color:var(--ink-soft)}.pill{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--ink);font-weight:800}.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 22px;border-radius:16px;border:none;font-size:17px;font-weight:800}.btn-gold{background:var(--gold-500);color:var(--emerald-900)}.btn-green{background:var(--emerald-700);color:#fff}.btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35)}.btn-light{background:#fff;color:var(--ink);border:1px solid var(--line)}.btn[disabled]{opacity:.55;cursor:not-allowed}.section-title{margin:0;font-size:20px;font-weight:800}.muted{color:var(--ink-soft)}.grid-auto{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));grid-gap:14px;gap:14px}.studio{position:relative;overflow:hidden;border-radius:28px;background:var(--emerald-900) var(--zellige);padding:32px 36px;display:flex;flex-wrap:wrap;align-items:center;gap:32px;color:#fff}.mic{flex-shrink:0;width:184px;height:184px;border-radius:50%;border:1px solid rgba(233,169,59,.28);background:rgba(233,169,59,.1);display:grid;place-items:center;padding:0}.mic-mid{width:150px;height:150px;background:rgba(233,169,59,.18);place-items:center}.mic-core,.mic-mid{border-radius:50%;display:grid}.mic-core{width:116px;height:116px;background:var(--gold-500);place-items:center;box-shadow:0 10px 30px rgba(0,0,0,.35);transition:background .2s}.mic[data-state=recording] .mic-core{background:var(--rec)}.mic[data-state=recording] .mic-mid{animation:pulse 1.2s ease-in-out infinite}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.08)}}@media (prefers-reduced-motion:reduce){.mic[data-state=recording] .mic-mid{animation:none}}.studio-body{flex:1 1 380px;min-width:0;display:flex;flex-direction:column;gap:14px}.studio-title{font-size:30px;font-weight:800;line-height:1.3;margin:0}.studio-sub{margin:0;color:var(--mist)}.ask{display:flex;align-items:center;gap:8px;background:#fff;border-radius:16px;padding:6px;max-width:640px}.ask input{flex:1 1;min-width:0;border:none;outline:none;background:transparent;font:inherit;color:var(--ink);min-height:44px;padding:0 10px}.attach-btn{flex-shrink:0;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:12px;background:#EEF3F0;color:var(--emerald-900);cursor:pointer}.attach-btn:hover{background:#E2EBE6}.spinner{width:20px;height:20px;border-radius:50%;border:3px solid rgba(11,59,50,.2);border-top:3px solid var(--emerald-900);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.attachment{display:flex;align-items:center;gap:12px;max-width:640px;padding:8px 10px;border-radius:14px;background:rgba(255,255,255,.1);border:1px solid rgba(233,169,59,.35);color:#fff}.attachment img,.attachment-doc{width:56px;height:56px;border-radius:10px;object-fit:cover;flex-shrink:0;background:#fff}.attachment-doc{display:grid;place-items:center;color:var(--emerald-900)}.attachment-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment small{display:block;color:#D5E8E0;font-size:13px;line-height:1.5}.attachment-x{width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:16px;cursor:pointer;flex-shrink:0}.answer{display:flex;flex-direction:column;gap:14px;max-width:760px}.answer-text{background:rgba(255,255,255,.96);color:var(--ink);border-radius:18px;padding:18px 20px;font-size:18px;line-height:1.8;white-space:pre-wrap}.answer-sources{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.answer-sources small{color:#D5E8E0;font-weight:700}.answer-sources a{font-size:13px;color:var(--gold-300);background:rgba(255,255,255,.08);border:1px solid rgba(233,169,59,.3);border-radius:999px;padding:4px 12px;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.answer-google{width:100%;height:64px;border:0;border-radius:12px;background:#fff}.answer-note{color:#B9CEC5;font-size:12.5px}.format-switch{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(233,169,59,.3);align-self:flex-start;flex-wrap:wrap}.format-switch button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 16px;border:0;border-radius:999px;background:transparent;color:#D5E8E0;font:inherit;font-weight:800;font-size:15px;cursor:pointer}.format-switch button[aria-checked=true]{background:var(--gold-500);color:var(--emerald-900)}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{min-height:38px;padding:0 14px;border-radius:999px;border:1px solid rgba(233,169,59,.35);background:rgba(255,255,255,.06);color:var(--gold-300);font-size:14px;font-weight:700}.understood{background:rgba(255,255,255,.08);border-radius:16px;padding:12px 16px;max-width:680px}.understood small{color:var(--mist);font-weight:700}.understood p{margin:2px 0 0;font-size:18px;font-weight:700}.said{color:var(--mist);font-size:14px}.wave{display:flex;align-items:center;gap:5px;height:48px}.wave i{display:block;width:6px;border-radius:3px;background:var(--gold-500);animation:wave 1s ease-in-out infinite}@keyframes wave{0%,to{height:10px}50%{height:44px}}@media (prefers-reduced-motion:reduce){.wave i{animation:none;height:24px}}.result-img{max-width:420px;border-radius:22px;display:block;background:#12493D}.doc-preview,.result-img{width:100%;box-shadow:0 20px 40px rgba(0,0,0,.35)}.doc-preview{max-width:560px;aspect-ratio:210/297;border:0;border-radius:14px;background:#fff}.banner{border-radius:14px;padding:10px 14px;font-weight:700;font-size:14px}.banner-demo{background:var(--gold-100);color:#5E3C00}.banner-err{background:var(--clay-100);color:var(--clay-600)}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));grid-gap:14px;gap:14px}.gallery a{display:block;border-radius:18px;overflow:hidden;aspect-ratio:4/5;box-shadow:0 6px 18px rgba(16,32,27,.1);background:#e4e9e5}.gallery img{width:100%;height:100%;object-fit:cover;display:block}.task-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid #eef0ec}.task-row:first-child{border-top:none}.badge{font-size:12px;font-weight:800;padding:3px 10px}.badge,.switch{border-radius:999px}.switch{width:52px;height:30px;border:none;padding:3px;display:flex;align-items:center;background:#C9D1CD}.switch[aria-checked=true]{background:var(--emerald-700);justify-content:flex-start}.switch[aria-checked=false]{justify-content:flex-end}.switch span{width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);display:block}.fb-fab{position:fixed;left:18px;bottom:18px;z-index:20;border:0;border-radius:999px;padding:10px 16px;font:inherit;font-weight:800;font-size:14px;background:#fff;color:var(--emerald-900);box-shadow:0 6px 20px rgba(16,32,27,.18);cursor:pointer}.fb-sheet{position:fixed;inset:0;z-index:30;background:rgba(8,24,20,.45);display:flex;align-items:flex-end;justify-content:center;padding:16px}.fb-box{width:min(520px,100%);background:#fff;color:var(--ink);border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:12px;box-shadow:0 20px 50px rgba(0,0,0,.3)}.fb-box textarea{font:inherit;font-size:16px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;resize:vertical}.fb-x{border:0;background:#EEF3F0;width:34px;height:34px;border-radius:50%;cursor:pointer}@media (min-width:901px){.fb-sheet{align-items:center}}@media (max-width:900px){.fb-fab{bottom:96px;left:12px;padding:8px 12px;font-size:13px}}