/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components,utilities;:root{color:#18221e;font-synthesis:none;background:#f5f7f5;font-family:Vazirmatn,sans-serif}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background:#f5f7f5;min-width:320px}button,textarea,input{font:inherit}button{cursor:pointer}.app-shell{color:#17231d;direction:rtl;background:#f5f7f5;min-height:100dvh;display:flex}.sidebar{z-index:30;background:#fff;border-left:1px solid #e0e7e1;flex-direction:column;width:290px;padding:20px 14px;transition:transform .25s;display:flex;position:fixed;inset:0 auto 0 0}.brand{align-items:center;gap:10px;padding:0 8px 20px;display:flex}.brand-mark{color:#fff;background:linear-gradient(145deg,#16735d,#0e493d);border-radius:13px;place-items:center;width:39px;height:39px;display:grid;box-shadow:0 8px 17px #16735d33}.brand strong{font-size:18px;font-weight:800;display:block}.brand small,.title-block small{color:#748078;margin-top:1px;font-size:11px;display:block}.new-chat{color:#fff;background:#12604f;border:0;border-radius:13px;justify-content:center;align-items:center;gap:8px;min-height:46px;font-weight:700;transition:all .2s;display:flex}.new-chat:hover{background:#0d4c3f;transform:translateY(-1px)}.search-box{color:#7c8881;background:#f8faf8;border:1px solid #e3e9e4;border-radius:11px;align-items:center;gap:8px;margin:18px 2px 10px;padding:0 11px;display:flex}.search-box input{background:0 0;border:0;outline:0;width:100%;min-width:0;padding:11px 0;font-size:13px}.chat-list{flex:1;overflow-y:auto}.chat-row{border-radius:11px;align-items:center;margin:3px 0;display:flex}.chat-row>button:first-child{text-align:right;color:#3a4840;background:0 0;border:0;border-radius:11px;flex:1;min-width:0;padding:10px}.chat-row.active{background:#eaf4ef}.chat-row.active>button:first-child{color:#0a4d3d;font-weight:700}.chat-row span{text-overflow:ellipsis;white-space:nowrap;font-size:13px;display:block;overflow:hidden}.chat-row small{color:#94a099;font-size:10px}.delete{color:#9ba69f;opacity:0;background:0 0;border:0;border-radius:9px;place-items:center;width:34px;height:34px;margin-left:3px;display:grid}.chat-row:hover .delete{opacity:1}.delete:hover{color:#a53333;background:#fff0f0}.side-note{color:#718078;border-top:1px solid #edf0ed;gap:8px;padding:14px 8px 0;font-size:11px;line-height:1.8;display:flex}.chat-area{flex-direction:column;flex:1;min-width:0;height:100dvh;margin-left:290px;display:flex}.topbar{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff0;border-bottom:1px solid #e3e9e4;justify-content:space-between;align-items:center;height:70px;padding:0 32px;display:flex}.title-block{align-items:center;gap:9px;display:flex}.title-block strong{font-size:14px}.status-dot{background:#20a36f;border-radius:999px;width:8px;height:8px;box-shadow:0 0 0 4px #20a36f20}.icon-button{color:#526158;background:0 0;border:0;border-radius:10px;place-items:center;width:39px;height:39px;display:grid}.icon-button:hover{color:#105542;background:#edf2ee}.menu-toggle,.mobile-only{display:none}.messages{flex:1;padding:30px max(5vw,24px) 16px;overflow-y:auto}.message{align-items:flex-start;gap:10px;width:100%;max-width:850px;margin:0 auto 24px;display:flex}.message.user{justify-content:flex-start}.avatar{color:#fff;background:#14604f;border-radius:11px;flex:0 0 34px;place-items:center;width:34px;height:34px;display:grid}.message-body{border-radius:18px;max-width:min(82%,680px);font-size:14px;line-height:2}.assistant .message-body{padding:4px 2px}.user .message-body{color:#173028;background:#e0f0e9;border-bottom-right-radius:5px;padding:11px 15px}.message-body p{white-space:pre-wrap;margin:0}.answer-content{white-space:pre-wrap}.quran-card{text-align:center;color:#18533a;background:linear-gradient(135deg,#f5fbf4,#e7f3e8);border:1px solid #c9dfcd;border-radius:15px;margin:14px 0;padding:22px 26px 15px;position:relative;overflow:hidden}.quran-card:before,.quran-card:after{color:#7daa84;opacity:.8;content:"✦";font-size:25px;position:absolute}.quran-card:before{top:2px;right:9px}.quran-card:after{bottom:2px;left:9px}.ornament{color:#528861;font-size:18px}.quran-text{direction:rtl;margin:6px 0 8px;font-family:serif;font-size:21px;font-weight:600;line-height:2.1}.quran-card figcaption{color:#558061;font-size:11px}.hadith-card{color:#493b24;background:#fff9eb;border-right:4px solid #bf8b32;border-radius:0 11px 11px 0;margin:14px 0;padding:13px 16px;font-family:serif;font-size:18px;line-height:2}.hadith-card span{color:#9b711f;margin-bottom:2px;font-family:Vazirmatn,sans-serif;font-size:10px;font-weight:800;display:block}.entity{color:#075c87;background:#e2f3fa;border:0;border-radius:5px;padding:1px 5px;font-weight:700}.citation{color:#086b58;direction:ltr;background:#ddf1e8;border:0;border-radius:6px;margin:0 2px;padding:2px 5px;font-size:10px;font-weight:700}.message-actions{opacity:.6;align-items:center;gap:5px;margin-top:7px;display:flex}.message-actions button{color:#637269;background:0 0;border:0;border-radius:7px;align-items:center;gap:4px;padding:4px 7px;font-size:11px;display:flex}.message-actions button:hover{color:#0d5d48;background:#e7f2ed}.tool-status{color:#257056;background:#f0f8f3;border:1px solid #d6e8dd;border-radius:12px;align-items:center;gap:9px;margin-top:7px;padding:11px 13px;font-size:13px;display:flex}.pulse{background:#1c9a65;border-radius:999px;width:8px;height:8px;animation:1.2s infinite pulse}@keyframes pulse{50%{opacity:.5}}.composer-wrap{padding:0 max(5vw,24px) calc(14px + env(safe-area-inset-bottom));background:linear-gradient(#0000,#f5f7f5 28%)}.composer-wrap>*{max-width:850px;margin-left:auto;margin-right:auto}.suggestions{flex-wrap:wrap;gap:7px;padding-bottom:9px;display:flex}.suggestions button{color:#506159;background:#fff;border:1px solid #dbe4dd;border-radius:999px;padding:6px 11px;font-size:11px}.suggestions button:hover{color:#095842;border-color:#7cb6a1}.composer{background:#fff;border:1px solid #d7e2da;border-radius:17px;align-items:flex-end;gap:8px;padding:7px 11px 7px 7px;display:flex;box-shadow:0 6px 20px #203d2b0a}.composer:focus-within{border-color:#69aa91;box-shadow:0 0 0 3px #41927214}.composer textarea{resize:none;color:#26372e;background:0 0;border:0;outline:0;flex:1;min-width:0;max-height:130px;padding:8px 4px;font-size:14px;line-height:1.7}.send{color:#fff;background:#14604f;border:0;border-radius:12px;flex:0 0 39px;place-items:center;width:39px;height:39px;display:grid}.send:hover{background:#0b4c3b}.composer-wrap p{color:#8b968f;text-align:center;margin:7px auto 0;font-size:10px}.backdrop{display:none}.modal-layer{z-index:50;place-items:center;padding:20px;display:grid;position:fixed;top:0;right:0;bottom:0;left:0}.modal-backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#10261ba8;border:0;position:absolute;top:0;right:0;bottom:0;left:0}.citation-modal{text-align:center;background:#fff;border-radius:21px;width:100%;max-width:420px;padding:31px 26px 24px;position:relative;box-shadow:0 22px 50px #001b103d}.close-modal{position:absolute;top:10px;left:10px}.citation-icon{color:#176451;margin:0 auto 9px}.citation-modal>span{color:#638076;font-size:12px}.citation-modal h2{color:#20372c;margin:4px 0 8px;font-size:18px}.citation-modal p{color:#64736a;margin:0;font-size:13px;line-height:2}.modal-close{color:#fff;background:#14604f;border:0;border-radius:11px;justify-content:center;align-items:center;gap:4px;width:100%;margin-top:21px;padding:10px;font-size:13px;font-weight:700;display:flex}.dark body,.dark .app-shell{color:#e2ede6;background:#111916}.dark .sidebar,.dark .topbar,.dark .composer{background:#17221d;border-color:#26382f}.dark .topbar{background:#17221df0}.dark .brand small,.dark .title-block small,.dark .side-note{color:#9cac9f}.dark .search-box{background:#101813;border-color:#2d4036}.dark .search-box input,.dark .composer textarea{color:#edf5ef}.dark .chat-row>button:first-child{color:#bdcbbf}.dark .chat-row.active{background:#1d4033}.dark .chat-row.active>button:first-child{color:#a9e1c6}.dark .icon-button{color:#b8c8bc}.dark .icon-button:hover,.dark .message-actions button:hover{color:#a9e1c6;background:#24382e}.dark .messages,.dark .composer-wrap{background:#111916}.dark .user .message-body{color:#dff5e9;background:#1e493a}.dark .quran-card{color:#c5ead0;background:linear-gradient(135deg,#173724,#1b3022);border-color:#37634a}.dark .quran-card figcaption,.dark .ornament{color:#90bd9b}.dark .hadith-card{color:#f1dfb9;background:#302817}.dark .entity{color:#8cdbfb;background:#123c4d}.dark .citation{color:#93e6c1;background:#164536}.dark .tool-status{color:#a9e6c4;background:#193728;border-color:#315a46}.dark .suggestions button{color:#bdc9c0;background:#1a261f;border-color:#32463a}.dark .citation-modal{background:#17221d}.dark .citation-modal h2{color:#edf5ef}.dark .citation-modal p{color:#afbeb3}@media(max-width:767px){.sidebar{transform:translate(-100%);box-shadow:15px 0 35px #00170b24}.sidebar.open{transform:translate(0)}.chat-area{margin-left:0}.topbar{height:62px;padding:0 14px}.menu-toggle,.mobile-only{display:grid}.mobile-only{margin-right:auto}.backdrop{z-index:25;background:#001b1060;border:0;display:block;position:fixed;top:0;right:0;bottom:0;left:0}.messages{padding:21px 15px 12px}.message{margin-bottom:20px}.message-body{max-width:calc(100% - 42px);font-size:13px}.quran-text{font-size:19px}.composer-wrap{padding-left:12px;padding-right:12px}.suggestions{flex-wrap:nowrap;overflow-x:auto}.suggestions button{flex:none}.chat-row .delete{opacity:1}.citation-modal{padding:29px 20px 20px}}
