@font-face{font-family:"Public Sans";src:url('/static/fonts/PublicSans-Variable.ttf') format('truetype');font-weight:100 900;font-display:swap}@font-face{font-family:"IBM Plex Arabic";src:url('/static/fonts/IBMPlexSansArabic-Regular.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:"IBM Plex Arabic";src:url('/static/fonts/IBMPlexSansArabic-SemiBold.ttf') format('truetype');font-weight:600 800;font-display:swap}
:root{color-scheme:dark;--canvas:#151a21;--panel:#1d252f;--raised:#232d39;--ink:#e9edf2;--muted:#9ba8b9;--quiet:#758598;--line:#303c4b;--accent:#cbb68a;--accent-strong:#e0cb9c;--accent-bg:#353126;--blue:#a9c6e8;--font:"Public Sans","IBM Plex Arabic",sans-serif;--arabic:"IBM Plex Arabic","Public Sans",sans-serif;--radius:7px}*{box-sizing:border-box}html{scrollbar-color:#465466 var(--canvas)}body{margin:0;background:var(--canvas);color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.7}button,input,textarea{font:inherit}button{cursor:pointer;border:0;color:inherit}button:disabled{cursor:not-allowed;opacity:.45}button,a,input,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent)}a{color:var(--blue)}h1,h2,h3,p{margin:0}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.chat-app{min-height:100dvh;display:flex;flex-direction:column}.app-header{height:94px;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:0 38px;background:var(--canvas);position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--ink);flex-shrink:0}.brand-name{display:flex;align-items:center;gap:10px;line-height:1.1}.brand-name b{font-family:var(--arabic);font-size:26px;font-weight:600;letter-spacing:0}.brand-name i{font-style:normal;font-weight:300;color:#56677b;font-size:16px}.brand-name>span{font-size:17px;font-weight:550;letter-spacing:-.5px}.brand small{display:block;color:var(--muted);font-family:var(--arabic);font-size:10px;line-height:1.6;margin-top:5px;text-align:left;padding-left:1px}.header-actions{display:flex;align-items:center;gap:10px}.header-button{display:flex;align-items:center;gap:8px;padding:8px 11px;min-height:38px;font-size:12px;font-weight:450;background:transparent;border:1px solid transparent;border-radius:var(--radius);color:var(--muted);white-space:nowrap}.header-button svg{width:17px;height:17px}.header-button:hover{background:var(--panel);color:var(--ink)}.new-chat-button{border-color:#3c4959;color:var(--ink);margin-left:8px}.chat-main{width:100%;max-width:824px;flex:1;margin:0 auto;padding:24px 30px 30px}.welcome{max-width:640px;margin:32px auto 25px;text-align:center;padding:0 0 20px}.welcome-mark{margin-bottom:17px;opacity:.88}.welcome h1{font-family:var(--arabic);font-size:45px;font-weight:400;line-height:1.5;letter-spacing:-.5px;color:var(--ink)}.welcome>p{font-size:17px;line-height:1.8;font-weight:450;margin-top:8px;letter-spacing:-.25px}.welcome-detail{font-size:12px;color:var(--muted);display:block;margin-top:5px}.starter-questions{margin:33px auto 0;max-width:400px;display:flex;flex-direction:column;align-items:center;gap:0}.starter-label{color:var(--quiet);font-size:10px;letter-spacing:.1px;margin-bottom:10px}.starter{background:transparent;display:block;text-align:center;font-size:12px;line-height:1.8;color:#b9c6d5;padding:8px 5px;border-bottom:1px solid transparent;border-radius:0}.starter:hover{color:var(--accent-strong);border-bottom-color:#766647}.conversation{display:flex;flex-direction:column;gap:37px;padding-top:10px}.conversation:empty{display:none}.message{min-width:0;scroll-margin-top:112px}.message-user{display:flex;justify-content:flex-end}.user-bubble{background:#273340;border:1px solid #334152;border-radius:8px 8px 3px 8px;padding:13px 18px;max-width:89%;font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.assistant-heading{display:flex;align-items:center;gap:9px;color:#c5d0dc;font-size:12px;font-weight:550;margin-bottom:15px}.assistant-mark{width:22px;height:22px;display:block}.response-label{font-size:10px;font-weight:400;color:var(--muted);margin-left:5px}.response-label[data-mode="abstained"]{color:var(--accent)}.answer-text{font-size:14px;line-height:2;overflow-wrap:anywhere;color:#dce3ec}.answer-text p{white-space:pre-wrap;margin:0 0 15px}.answer-text p:last-child{margin-bottom:0}.answer-text ul,.answer-text ol{padding-inline-start:23px;margin:10px 0 18px}.answer-text li{padding-inline-start:4px;margin:8px 0}.answer-text h3{font-size:15px;font-weight:650;color:var(--ink);margin:23px 0 12px}.answer-text strong{font-weight:650;color:var(--ink)}.inline-citation{display:inline;min-width:23px;background:var(--accent-bg);border:1px solid #64583e;border-radius:3px;color:var(--accent-strong);font-size:10px;font-weight:600;line-height:1.5;padding:1px 4px;margin:0 2px;vertical-align:baseline}.inline-citation:hover{background:#594b32;border-color:var(--accent)}.message-warnings{display:flex;flex-direction:column;gap:9px;margin-top:16px}.warning-note{font-size:11px;line-height:1.85;color:#c9b98f;background:#27271f;border:1px solid #4a4836;border-radius:var(--radius);padding:11px 13px}.turn-evidence{border-top:1px solid var(--line);margin-top:19px;padding-top:9px}.turn-evidence summary{list-style:none;cursor:pointer;width:fit-content;display:flex;align-items:center;gap:8px;padding:5px 0;color:var(--muted);font-size:11px;font-weight:500}.turn-evidence summary::-webkit-details-marker{display:none}.turn-evidence summary:after{content:"+";font-size:15px;line-height:1;color:var(--accent)}.turn-evidence[open] summary:after{content:"−"}.turn-source-list{margin-top:9px}.source-card{display:flex;align-items:flex-start;gap:11px;width:100%;padding:12px 4px;border-top:1px solid #2b3643;background:transparent;text-align:left;border-radius:0}.source-card:hover{background:var(--panel)}.citation-number{font-size:9px;font-weight:600;background:var(--accent-bg);color:var(--accent);border:1px solid #64583e;border-radius:3px;padding:1px 5px;margin-top:2px;flex-shrink:0}.source-card h3{font-size:12px;font-weight:500;line-height:1.8;color:#d1dce8}.source-card p{font-size:10px;color:var(--muted);line-height:1.8;margin-top:4px}.follow-ups{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:15px}.follow-up{font-size:11px;line-height:1.85;background:transparent;color:var(--blue);padding:5px 0;text-align:left;text-decoration:underline;text-decoration-color:#485f79;text-underline-offset:5px}.follow-up:hover{color:var(--ink)}.loading-message{display:flex;align-items:center;gap:11px;color:var(--muted);font-size:12px;padding:3px 0 8px}.loading-dots{display:flex;gap:4px}.loading-dots i{width:4px;height:4px;background:var(--accent);border-radius:50%;animation:pulse 1.4s infinite}.loading-dots i:nth-child(2){animation-delay:.18s}.loading-dots i:nth-child(3){animation-delay:.36s}@keyframes pulse{0%,70%,100%{opacity:.3}35%{opacity:1}}.error-message{font-size:12px;color:#e2b69b;background:#302822;border:1px solid #574032;border-radius:var(--radius);padding:13px 15px}#chat-bottom{height:8px}.composer-dock{position:sticky;bottom:0;z-index:9;padding:14px 26px 21px;background:var(--canvas)}.composer-wrap{max-width:764px;margin:0 auto}.composer{background:var(--panel);border:1px solid #415062;border-radius:9px;padding:17px 17px 12px;transition:border-color .15s}.composer:focus-within{border-color:#8598ab}.composer textarea{display:block;width:100%;min-height:32px;max-height:160px;resize:none;border:0;outline:0;background:transparent;color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.8;padding:0 1px;overflow-y:auto}.composer textarea:focus-visible{outline:0}.composer textarea::placeholder{color:#9caabb}.composer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:14px}.composer-language{font-family:var(--arabic);font-size:10px;color:var(--muted)}.composer-language>span{color:#66778a;margin:0 7px}.send-button{width:35px;height:35px;display:flex;align-items:center;justify-content:center;background:var(--accent);color:#20252d;border-radius:6px}.send-button:hover{background:var(--accent-strong)}.send-button svg{width:20px;height:20px;stroke-width:2}.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#8798ac;font-size:9px;margin-top:11px;padding:0 3px}.library-status{display:flex;align-items:center;gap:6px;font-size:9px;color:#8798ac}.library-status i{width:4px;height:4px;background:#8092a5;border-radius:50%}.library-status.connected i{background:#a1b5a1}.library-status.unavailable i{background:#c2a17b}.save-status{font-size:10px;color:#c1a879;text-align:center;margin-top:7px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-80px;left:15px;z-index:100;background:var(--raised);padding:12px 18px;border-radius:var(--radius)}.skip-link:focus{top:10px}[hidden]{display:none!important}dialog{color:var(--ink);background:#1c242e;border:1px solid #465364;scrollbar-color:#4a5a6d #1c242e}dialog::backdrop{background:#090e16c9;backdrop-filter:blur(5px)}.mvp-dialog{width:min(550px,calc(100vw - 30px));max-height:92dvh;padding:27px 31px 29px;border-radius:9px}.mvp-header{display:flex;align-items:center;gap:10px;margin-bottom:23px}.mvp-wordmark{margin-left:auto;font-family:var(--arabic);font-size:23px;font-weight:600;color:var(--accent-strong)}.notice-label{font-size:11px;font-weight:450;color:var(--muted)}.mvp-dialog h2{font-size:27px;line-height:1.35;font-weight:550;letter-spacing:-.7px}.mvp-dialog>p{font-size:12px;color:#adbac9;line-height:1.9;margin:12px 0 22px}.mvp-section{padding:14px 0;border-top:1px solid var(--line)}.mvp-section h3{font-size:12px;font-weight:600;color:#dde5ee;margin-bottom:6px}.mvp-section p{font-size:11px;line-height:1.9;color:#a9b7c7;overflow-wrap:anywhere}.mvp-section .mvp-model-note{margin-top:7px}.mvp-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:23px}.mvp-footer>span{font-family:var(--arabic);font-size:15px;color:var(--muted)}.primary-button{display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:#1b232c;font-size:12px;font-weight:600;min-height:41px;padding:10px 22px;border-radius:var(--radius)}.primary-button:hover{background:var(--accent-strong)}.privacy-details{border-top:1px solid var(--line);padding-top:13px;margin-top:2px}.privacy-details summary,.technical-details summary{font-size:11px;cursor:pointer;color:var(--blue);line-height:1.9;list-style:none;display:flex;align-items:center;gap:10px}.privacy-details summary:before,.technical-details summary:before{content:"+";color:var(--accent);font-size:14px}.privacy-details[open] summary:before,.technical-details[open] summary:before{content:"−"}.privacy-details summary::-webkit-details-marker,.technical-details summary::-webkit-details-marker{display:none}.privacy-details p,.technical-details p{font-size:11px;line-height:1.9;color:var(--muted);margin-top:10px}.how-dialog{width:min(640px,calc(100vw - 30px));max-height:90dvh;border-radius:9px;padding:28px 31px}.drawer-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.drawer-header h2{font-size:25px;font-weight:550;letter-spacing:-.7px;line-height:1.4;margin-top:7px}.icon-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:transparent;border:1px solid #465364;border-radius:var(--radius);font-size:24px;line-height:1;color:var(--muted)}.icon-button:hover{background:var(--raised);color:var(--ink)}.how-intro{font-size:12px;line-height:1.9;color:var(--muted);margin-top:18px}.how-flow{margin:26px 0 24px}.how-flow section{position:relative;padding:0 0 22px 27px;border-left:1px solid #465363;margin-left:4px}.how-flow section:last-child{padding-bottom:0;border-left-color:transparent}.flow-dot{position:absolute;left:-4px;top:7px;width:7px;height:7px;background:var(--accent);border:1px solid #d3bd8d;border-radius:50%}.how-flow h3{font-size:12px;font-weight:600;line-height:1.8}.how-flow p{font-size:11px;line-height:1.9;color:var(--muted);margin-top:6px}.technical-details{border-top:1px solid var(--line);padding-top:15px}.text-button{background:transparent;color:var(--blue);text-decoration:underline;text-underline-offset:4px;font-size:11px;padding:10px 0;margin-top:12px;text-align:left}.text-button:hover{color:var(--ink)}.library-dialog{margin:0 0 0 auto;height:100dvh;max-height:100dvh;width:min(515px,100vw);max-width:100vw;border-radius:0;border-top:0;border-right:0;border-bottom:0;padding:30px 27px;background:#19212b}.library-intro{font-size:12px;color:var(--muted);line-height:1.9;margin-top:15px}.library-summary{padding:21px 0;border-bottom:1px solid var(--line);margin:9px 0 23px}.library-summary strong{font-size:30px;font-weight:500;letter-spacing:-1px;color:var(--ink)}.library-summary>span{font-size:11px;color:var(--muted);margin-left:9px}.library-summary small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.library-search{display:flex;align-items:center;gap:9px}.search-field{flex:1;min-width:0;background:var(--panel);border:1px solid #48586b;border-radius:var(--radius);padding:0 12px}.search-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);padding:10px 0;font-size:12px}.search-field input::placeholder{color:#91a2b6}.search-field:focus-within{outline:1px solid var(--accent);outline-offset:1px}.search-button{font-size:11px;font-weight:550;min-height:42px;background:var(--accent);color:#20252d;border-radius:var(--radius);padding:10px 15px}.search-button:hover{background:var(--accent-strong)}.library-results-label{font-size:10px;color:var(--muted);margin:22px 0 12px}.library-results{border-top:1px solid var(--line)}.document-card{width:100%;text-align:left;padding:17px 3px;background:transparent;border-bottom:1px solid var(--line);border-radius:0}.document-card:hover{background:#202b37}.document-card h3{font-size:12px;font-weight:550;line-height:1.85;color:#d4dfea;overflow-wrap:anywhere}.document-meta{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:9px;color:var(--muted);margin-bottom:7px}.document-meta span:first-child{color:var(--accent)}.document-card p{font-size:10px;color:var(--muted);margin-top:8px}.document-bottom{display:flex;justify-content:space-between;gap:15px;font-size:9px;color:var(--muted);margin-top:10px}.document-bottom span:last-child{color:var(--blue);white-space:nowrap}.library-note{font-size:10px;line-height:1.85;color:var(--muted);margin-top:25px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:23px}.pagination>span{font-size:10px;color:var(--muted)}.secondary-button{font-size:10px;border:1px solid #48586b;border-radius:var(--radius);padding:7px 11px;min-height:34px;background:transparent;color:var(--ink)}.secondary-button:hover{background:var(--raised)}.empty-state{padding:28px 15px;text-align:center;border-bottom:1px solid var(--line)}.empty-state h3{font-size:13px;font-weight:500}.empty-state p{font-size:11px;color:var(--muted);line-height:1.8;margin-top:8px}.source-dialog{width:min(750px,calc(100vw - 30px));max-height:88dvh;border-radius:9px;padding:27px 29px 30px}.dialog-topline{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}#source-dialog-title{font-size:21px;font-weight:550;line-height:1.5;letter-spacing:-.25px;margin-bottom:16px;overflow-wrap:anywhere}.source-detail-meta{display:flex;flex-wrap:wrap;gap:7px 17px;font-size:10px;color:var(--muted);margin-bottom:17px}.source-links{display:flex;flex-wrap:wrap;gap:15px;margin-bottom:23px}.source-links a{font-size:11px;line-height:1.85;font-weight:450;color:var(--blue);text-underline-offset:4px}.passage-label{font-size:10px;color:var(--accent);font-weight:550;margin-bottom:10px}.source-passage{font-size:12px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere;background:#151d26;border:1px solid var(--line);border-radius:var(--radius);padding:17px;margin:0 0 19px;color:#cbd7e4}.source-passage.matched{background:#292921;border-color:#635b41;color:#e0d8c6}.source-dialog-note{font-size:10px;line-height:1.9;color:var(--muted);margin:14px 0 18px}.source-chunk h3{font-size:10px;font-weight:450;color:var(--muted);margin-bottom:8px}.cited-passage-section{scroll-margin-top:10px}.show-more-button{display:block;margin:10px auto}.source-error{font-size:12px;color:#e2b69b;background:#302822;border:1px solid #574032;border-radius:var(--radius);padding:14px}
@media(min-width:1500px){.app-header{max-width:1600px;width:100%;margin:0 auto;padding-left:55px;padding-right:55px}.welcome{margin-top:64px;margin-bottom:40px}.welcome h1{font-size:49px}.starter-questions{margin-top:39px}.chat-main{max-width:850px}.composer-wrap{max-width:790px}}
@media(max-width:900px){.app-header{padding:0 25px;height:84px}.header-actions{gap:4px}.header-button{font-size:11px;padding:8px}.header-button svg{width:16px;height:16px}.chat-main{padding:21px 25px 26px}.welcome{margin-top:27px}.composer-dock{padding:14px 24px 17px}}
@media(max-width:600px){.app-header{height:79px;padding:0 17px;gap:12px}.brand{gap:9px}.brand>img{width:29px;height:29px}.brand-name{gap:7px}.brand-name b{font-size:23px}.brand-name>span{font-size:14px}.brand-name i{font-size:12px}.brand small{font-size:8px;margin-top:3px}.header-actions{gap:3px}.header-button{padding:8px;min-height:34px}.header-button span{display:none}.header-button svg{width:18px;height:18px}.new-chat-button{margin-left:3px}.chat-main{padding:20px 20px 22px}.welcome{margin:30px auto 20px}.welcome-mark{width:46px;height:46px;margin-bottom:14px}.welcome h1{font-size:38px}.welcome>p{font-size:14px;margin-top:8px}.welcome-detail{font-size:10px}.starter-questions{margin-top:27px}.starter-label{font-size:9px;margin-bottom:7px}.starter{font-size:10px;padding:9px 3px}.conversation{gap:30px;padding-top:6px}.message{scroll-margin-top:95px}.user-bubble{font-size:13px;max-width:95%;padding:12px 15px}.answer-text{font-size:13px;line-height:2}.answer-text h3{font-size:14px}.assistant-heading{font-size:11px}.composer-dock{padding:12px 13px 13px}.composer{padding:14px 14px 10px;border-radius:8px}.composer textarea{font-size:13px;min-height:30px}.composer-toolbar{margin-top:12px}.composer-language{font-size:9px}.send-button{width:32px;height:32px}.composer-footer{font-size:8px;margin-top:10px;gap:10px}.library-status{font-size:8px;gap:5px}.mvp-dialog{padding:24px 23px;max-height:92dvh}.mvp-header{margin-bottom:19px}.mvp-dialog h2{font-size:24px}.mvp-dialog>p{font-size:11px;margin-bottom:18px}.mvp-section{padding:12px 0}.mvp-section h3{font-size:11px}.mvp-section p{font-size:10px;line-height:1.85}.mvp-footer{margin-top:19px}.mvp-footer>span{font-size:13px}.primary-button{font-size:11px;min-height:38px;padding:9px 18px}.privacy-details summary{font-size:10px}.privacy-details p{font-size:10px}.how-dialog{padding:25px 23px}.drawer-header h2{font-size:22px}.how-flow p{font-size:10px}.how-flow h3{font-size:11px}.how-flow section{padding-left:24px}.library-dialog{padding:26px 21px}.source-dialog{padding:22px}#source-dialog-title{font-size:19px}.source-passage{padding:14px;font-size:11px}.source-card h3{font-size:11px}}
@media(max-width:360px){.app-header{padding:0 12px}.brand>img{width:25px;height:25px}.brand-name b{font-size:22px}.brand-name>span{font-size:12px}.header-button{padding:6px}.welcome>p{font-size:13px}.starter{font-size:9px}.composer-footer{justify-content:center}.composer-footer>.library-status{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
