:root{--g:#075e54;--g2:#128c7e;--bg:#efeae2;--card:#fff;--tx:#111b21;--mut:#5a6770;--bd:#d9dee2;--bad:#b3261e;--ok:#1b7f3b;--warn:#8a5a00;--r:14px}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Naskh Arabic","Noto Sans Arabic",Tahoma,sans-serif;font-size:17px;line-height:1.5;color:var(--tx);background:#f4f6f7;-webkit-text-size-adjust:100%;min-height:100vh;min-height:100dvh}
a{color:var(--g2)}
h1{font-size:1.35rem;margin:.2rem 0 .8rem}
h2{font-size:1.1rem;margin:1rem 0 .5rem}
.top{background:var(--g);color:#fff;padding:.7rem 1rem;display:flex;align-items:center;gap:.6rem;position:sticky;top:0;z-index:5;padding-top:calc(.7rem + env(safe-area-inset-top))}
.top h1{font-size:1.15rem;margin:0;flex:1;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top a,.top button.lnk{color:#fff;text-decoration:none}
.wrap{max-width:720px;margin:0 auto;padding:1rem;padding-bottom:6rem}
.card{background:var(--card);border-radius:var(--r);padding:1rem;margin:0 0 .9rem;box-shadow:0 1px 2px rgba(0,0,0,.08)}
label{display:block;font-weight:600;margin:.7rem 0 .25rem}
input[type=text],input[type=password],input[type=tel],input[type=number],input[type=time],input[type=search],input[type=file],select,textarea{width:100%;font:inherit;padding:.7rem .8rem;border:1.5px solid var(--bd);border-radius:10px;background:#fff;color:var(--tx);min-height:48px}
textarea{min-height:90px}
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid #25d366;outline-offset:2px}
.btn,button.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:48px;padding:.6rem 1.2rem;border:0;border-radius:12px;background:var(--g);color:#fff;font:inherit;font-weight:700;cursor:pointer;text-decoration:none}
.btn.alt{background:#e7efed;color:var(--g)}
.btn.bad{background:var(--bad)}
.btn.block{display:flex;width:100%}
.btn.sm{min-height:40px;padding:.3rem .8rem;font-size:.95rem}
.row{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.row>*{flex:1}
.mut{color:var(--mut);font-size:.92rem}
.err{background:#fde8e6;color:var(--bad);padding:.7rem 1rem;border-radius:10px;margin:.5rem 0}
.okb{background:#e3f4e8;color:var(--ok);padding:.7rem 1rem;border-radius:10px;margin:.5rem 0}
.warnb{background:#fff3d6;color:var(--warn);padding:.7rem 1rem;border-radius:10px;margin:.5rem 0}
.nav{position:fixed;bottom:0;inset-inline:0;background:#fff;border-top:1px solid var(--bd);display:flex;z-index:6;padding-bottom:env(safe-area-inset-bottom)}
.nav a{flex:1;text-align:center;padding:.55rem .2rem .45rem;text-decoration:none;color:var(--mut);font-size:.82rem;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.nav a b{font-size:1.35rem;line-height:1.1}
.nav a.on{color:var(--g);font-weight:700}
.badge{background:#25d366;color:#fff;border-radius:99px;padding:0 .5rem;font-size:.8rem;font-weight:700;min-width:1.4rem;text-align:center;display:inline-block}
.badge.red{background:var(--bad)}
.list{list-style:none;margin:0;padding:0}
.list li a{display:flex;gap:.7rem;align-items:center;padding:.8rem 1rem;border-bottom:1px solid #eef0f1;text-decoration:none;color:inherit;background:#fff}
.av{width:46px;height:46px;border-radius:50%;background:#cfe8e3;color:var(--g);display:flex;align-items:center;justify-content:center;font-weight:700;flex:none}
.li-main{display:block;flex:1;min-width:0;overflow:hidden}
.li-main .n{font-weight:700;display:flex;justify-content:space-between;gap:.5rem}
.li-main .t{display:block;color:var(--mut);font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chatbox{display:flex;flex-direction:column;height:100vh;height:100dvh;background:var(--bg)}
.msgs{flex:1;overflow-y:auto;padding:.8rem .7rem;display:flex;flex-direction:column;gap:.35rem}
.b{max-width:82%;padding:.5rem .75rem;border-radius:12px;white-space:pre-wrap;word-wrap:break-word;box-shadow:0 1px 1px rgba(0,0,0,.1);background:#fff}
.b.in{align-self:flex-start}
.b.out{align-self:flex-end;background:#d9fdd3}
.b.bot{align-self:flex-end;background:#e8f0fe}
.b small{display:block;color:var(--mut);font-size:.72rem;margin-top:.15rem}
.composer{background:#f0f2f5;padding:.5rem;display:flex;gap:.4rem;align-items:flex-end;padding-bottom:calc(.5rem + env(safe-area-inset-bottom))}
.composer textarea{min-height:48px;max-height:120px;flex:1;border-radius:24px;padding:.6rem 1rem}
.composer .btn{border-radius:50%;width:48px;min-height:48px;padding:0}
.tools{display:flex;gap:.4rem;padding:.4rem .5rem;background:#fff;border-bottom:1px solid var(--bd);overflow-x:auto}
.tools .btn{white-space:nowrap}
.pill{display:inline-block;border-radius:99px;padding:.1rem .7rem;font-size:.85rem;font-weight:700;background:#e7efed;color:var(--g)}
.pill.red{background:#fde8e6;color:var(--bad)}
.pill.amber{background:#fff3d6;color:var(--warn)}
.steps{display:flex;gap:.4rem;margin:.2rem 0 1rem}
.steps i{flex:1;height:6px;border-radius:3px;background:#d3dbd9}
.steps i.on{background:var(--g2)}
.big{font-size:2rem;font-weight:800;color:var(--g)}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.stat{background:#fff;border-radius:var(--r);padding:.9rem;text-align:center;box-shadow:0 1px 2px rgba(0,0,0,.08)}
table{width:100%;border-collapse:collapse}
th,td{padding:.5rem .4rem;border-bottom:1px solid #eef0f1;text-align:start}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:flex-end;justify-content:center;z-index:20}
.modal[hidden]{display:none}
.sheet{background:#fff;width:100%;max-width:520px;border-radius:18px 18px 0 0;padding:1rem;max-height:80vh;overflow:auto}
.sheet button.rr{display:block;width:100%;text-align:start;background:#f4f6f7;border:0;border-radius:10px;padding:.8rem;margin:.35rem 0;font:inherit;min-height:48px}
.qr{display:block;margin:1rem auto;max-width:280px;width:100%;border:1px solid var(--bd);border-radius:12px}
.hero{background:linear-gradient(160deg,var(--g),var(--g2));color:#fff;padding:2.5rem 1rem 3rem;text-align:center}
.hero h1{color:#fff;font-size:1.8rem}
.skip{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip:focus{width:auto;height:auto;clip:auto;inset-inline-start:0;top:0;background:#fff;padding:.5rem;z-index:99}
@media (min-width:760px){.nav{max-width:720px;margin:0 auto;border-radius:14px 14px 0 0}}
