:root{color-scheme:dark;--bg:#0b1017;--panel:#111923;--panel2:#151f2b;--line:#23303d;--text:#eef4f6;--muted:#8898a7;--mint:#8de0c0;--mint2:#b6f1d9;--danger:#ff8e91;--radius:22px;font-family:'IBM Plex Sans Arabic',system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 82% -10%,#153b3a 0,transparent 34%),var(--bg);color:var(--text);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}#app{max-width:920px;margin:auto;padding:0 22px 28px}.topbar{height:80px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff0c}.brand{display:flex;align-items:center;gap:11px}.brand b{display:block;font-size:17px}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:1px}.brand-mark{width:58px;height:58px;border-radius:19px;background:linear-gradient(145deg,#b7f3d8,#64c5a2);color:#0d2722;display:grid;place-items:center;font-weight:700;font-size:28px;box-shadow:0 12px 38px #5cc9a12b}.brand-mark.small{width:42px;height:42px;border-radius:14px;font-size:21px}.icon-button{background:#ffffff08;border:1px solid var(--line);color:#aebbc5;border-radius:14px;width:42px;height:42px;font-size:21px}.welcome{padding:30px 0 21px;display:flex;justify-content:space-between;align-items:end}.eyebrow{display:inline-block;color:var(--mint);font-size:12px;font-weight:600;letter-spacing:.02em}.welcome h1{font-size:clamp(24px,4vw,34px);line-height:1.35;margin:6px 0 0}.status-pill{border:1px solid #68c8a529;background:#5bd09a0e;padding:7px 11px;border-radius:99px;color:#a3d5c2;font-size:11px;display:flex;gap:7px;align-items:center}.status-dot{width:7px;height:7px;background:#72d8a8;border-radius:50%;box-shadow:0 0 12px #72d8a8}.tabs{display:flex;border-bottom:1px solid var(--line);gap:23px}.tab{background:none;color:#8493a1;border:0;padding:14px 3px 12px;position:relative;font-size:14px}.tab span{font-size:17px;margin-left:5px}.tab.active{color:var(--mint)}.tab.active:after{content:'';position:absolute;bottom:-1px;right:0;left:0;height:2px;background:var(--mint);border-radius:2px}.panel{padding:21px 0}.controls{display:flex;gap:11px;margin-bottom:14px}.controls label{flex:1;display:flex;align-items:center;justify-content:space-between;background:var(--panel);border:1px solid var(--line);padding:8px 12px;border-radius:15px;min-width:0}.controls label span{color:var(--muted);font-size:11px;white-space:nowrap}.controls select{max-width:60%;background:transparent;color:var(--text);border:0;outline:0;font-size:12px}.controls option,select option{background:#111923}.chat-card{border:1px solid var(--line);background:linear-gradient(155deg,#121c27,#0e151e);border-radius:var(--radius);overflow:hidden;min-height:420px;display:flex;flex-direction:column}.messages{padding:22px;flex:1;min-height:310px;max-height:55vh;overflow:auto}.empty-state{text-align:center;max-width:350px;margin:35px auto 20px}.empty-icon{width:48px;height:48px;border-radius:17px;background:#8de0c014;color:var(--mint);display:grid;place-items:center;margin:0 auto 12px;font-size:23px}.empty-state h2{font-size:18px;margin:0 0 6px}.empty-state p{font-size:12px;line-height:1.8;color:var(--muted);margin:0 auto 18px}.suggestion{border:1px solid #42685f;background:#14241f;border-radius:99px;padding:9px 14px;color:#c5ebdb;font-size:11px}.suggestion span{margin-right:6px}.composer{margin:0 14px;background:#17212b;border:1px solid #2b3a48;border-radius:18px;padding:7px;display:flex;gap:7px;align-items:end}.composer textarea{resize:none;min-height:42px;max-height:130px;flex:1;background:transparent;color:var(--text);border:0;outline:0;padding:10px 8px;font-size:13px;line-height:1.7}.composer textarea::placeholder{color:#71808e}.send{width:40px;height:40px;border:0;border-radius:13px;background:var(--mint);color:#092119;font-weight:700;font-size:22px}.chat-actions{display:flex;justify-content:space-between;padding:12px 19px 15px;color:#758491;font-size:10px}.chat-actions b{color:#b9d9ce;font-weight:500}.text-button{background:none;border:0;color:#91bbaa;font-size:10px}.bubble{max-width:88%;margin:8px 0;padding:12px 14px;border-radius:16px;font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.user{background:#173a31;color:#e5fff4;margin-right:auto;border-bottom-right-radius:5px}.bubble.assistant{background:#1a2531;border:1px solid #ffffff0c;margin-left:auto;border-bottom-left-radius:5px}.bubble.assistant p{margin:0 0 7px}.bubble.assistant p:last-child{margin:0}.sources{margin-top:9px;padding-top:8px;border-top:1px solid #ffffff12;color:#a2caba;font-size:10px}.typing{color:var(--muted);font-size:12px;padding:10px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:8px 2px 18px}.section-head h2{font-size:22px;margin:5px 0}.head-icon{color:var(--mint);font-size:23px}.source-switch{display:flex;padding:4px;background:#101821;border:1px solid var(--line);border-radius:15px;margin-bottom:13px}.source-choice{flex:1;border:0;background:none;padding:9px;color:var(--muted);font-size:12px;border-radius:11px}.source-choice.active{background:#1c2b32;color:var(--mint2)}.form-card{display:grid;gap:14px;background:var(--panel);border:1px solid var(--line);padding:18px;border-radius:var(--radius)}.form-card label{display:grid;gap:7px;color:#a8b6c1;font-size:12px}.form-card input:not([type=file]),.form-card select,.form-card textarea{width:100%;background:#0c131b;border:1px solid #293642;border-radius:12px;color:var(--text);padding:12px;outline:0;font-size:13px}.form-card textarea{resize:vertical;line-height:1.8}.form-card input:focus,.form-card textarea:focus,.form-card select:focus{border-color:#76c9aa}.primary{border:0;border-radius:14px;background:var(--mint);color:#0d2a22;padding:13px 16px;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:space-between}.primary span{font-size:19px}.file-drop{position:relative;min-height:145px;border:1px dashed #435c68;border-radius:16px;background:#101921;display:flex!important;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:5px!important;cursor:pointer!important}.file-drop input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.file-drop b{color:#dce8e5;font-size:13px}.file-drop small,.file-drop em{font-size:10px;color:var(--muted);font-style:normal}.upload-icon{font-size:20px;color:var(--mint);background:#8de0c014;border-radius:12px;padding:4px 12px}.notice{margin:12px 2px;color:var(--mint);font-size:12px;min-height:20px}.notice.error{color:var(--danger)}.privacy-note{border:1px solid #27343e;border-radius:14px;padding:11px 13px;color:#8e9ca8;font-size:11px;margin-top:6px}.privacy-note span{color:var(--mint);margin-left:6px}footer{text-align:center;color:#647381;font-size:10px;padding:14px}footer span{color:var(--mint);padding:0 5px}.lock-screen{width:min(390px,calc(100% - 34px));min-height:80vh;margin:10vh auto 0;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:stretch}.lock-screen .brand-mark{margin:0 auto 22px}.lock-screen h1{font-size:28px;margin:7px 0}.lock-screen>p{color:var(--muted);font-size:13px;margin:0 0 23px}.lock-screen form{display:grid;gap:12px}.lock-screen input{background:#121b25;border:1px solid #31414e;border-radius:15px;text-align:center;letter-spacing:.5em;font-size:20px;color:var(--text);padding:15px;outline:0}.lock-screen .primary{justify-content:center;gap:12px}.lock-foot{margin-top:28px;color:#80918d;font-size:11px;display:flex;align-items:center;justify-content:center;gap:8px}.error{color:var(--danger);font-size:12px;min-height:17px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(min-width:760px){#app{padding-inline:36px}.panel{padding-top:25px}.chat-card{min-height:530px}.messages{min-height:410px}.welcome{padding-top:38px}}@media(max-width:480px){#app{padding-inline:16px}.topbar{height:68px}.welcome{padding:24px 0 17px}.controls{gap:7px}.controls label{display:grid;gap:3px;padding:8px 9px}.controls select{max-width:100%;width:100%}.chat-card{min-height:calc(100dvh - 277px)}.messages{min-height:250px;padding:16px}.composer{margin:0 9px}.chat-actions{padding-inline:13px}.form-card{padding:14px}}
