@import "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap";
@import "https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap";
:root{--bg:#0b0d0f;--surface:#14171c;--border:#262b33;--text:#e4e9e6;--text-dim:#5b6570;--accent:#ffb454;--danger:#e5484d}*{box-sizing:border-box;text-align:right!important;direction:rtl!important}html,body{background:var(--bg);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;margin:0;padding:0}body{font-family:Vazirmatn,IBM Plex Mono,ui-monospace,SF Mono,Menlo,Consolas,monospace}::selection{background:var(--accent);color:var(--bg)}.page{justify-content:center;align-items:center;min-height:100dvh;padding:3rem 1.25rem;display:flex;position:relative;overflow:hidden}.page:before{content:"";pointer-events:none;z-index:2;background:repeating-linear-gradient(#ffffff09 0 1px,#0000 1px 3px);animation:6s ease-in-out infinite flicker;position:absolute;inset:0}.page:after{content:"";pointer-events:none;z-index:2;background:radial-gradient(#0000 50%,#0009 100%);position:absolute;inset:0}@keyframes flicker{0%,to{opacity:1}50%{opacity:.7}}.container{z-index:1;flex-direction:column;align-items:flex-start;width:100%;max-width:620px;display:flex;position:relative}.boot{max-height:3rem;margin-bottom:1.5rem;transition:max-height .4s,opacity .4s,margin-bottom .4s;overflow:hidden}.boot.is-hidden{opacity:0;max-height:0;margin-bottom:0}.boot-line{color:var(--text-dim);opacity:0;margin:0 0 .3rem;font-size:.72rem;animation:.4s forwards bootIn}.boot-line-2{color:var(--accent);animation-delay:.5s}@keyframes bootIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.status{color:var(--text-dim);align-items:center;gap:.5rem;margin-bottom:2.5rem;font-size:.78rem;display:flex}.status-dot{background:var(--accent);width:7px;height:7px;box-shadow:0 0 6px var(--accent);border-radius:50%;flex-shrink:0;animation:2.6s ease-in-out infinite dotPulse}.status-dot.is-active{box-shadow:0 0 10px var(--accent);animation:.6s ease-in-out infinite dotPulse}@keyframes dotPulse{0%,to{opacity:1}50%{opacity:.35}}.headline{color:var(--text);letter-spacing:-.04em;margin:0 0 .5rem;font-size:clamp(1.7rem,5vw,2.3rem);font-weight:600}.subtext{color:var(--text-dim);margin:0 0 2rem;font-size:.88rem}.composer{background:var(--surface);border:1px solid var(--border);border-radius:.6rem;align-items:flex-end;gap:.6rem;width:100%;padding:.85rem .7rem .85rem 1rem;transition:border-color .2s,box-shadow .2s;display:flex}.composer:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #ffb4541f}.composer-prompt{color:var(--accent);-webkit-user-select:none;user-select:none;flex-shrink:0;font-weight:600;line-height:1.6;padding-bottom:.1rem!important;padding-right:.3rem!important}.textarea{resize:none;color:var(--text);background:0 0;border:none;outline:none;flex:1;max-height:200px;font-family:inherit;font-size:.95rem;line-height:1.6;overflow-y:auto;padding-bottom:.35rem!important}.textarea::placeholder{color:var(--text-dim)}.textarea::-webkit-scrollbar{width:6px}.textarea::-webkit-scrollbar-thumb{background:var(--border);border-radius:999px}.composer-actions{flex-shrink:0;align-items:center;display:flex}.btn{cursor:pointer;border:1px solid #0000;border-radius:.4rem;justify-content:center;align-items:center;width:34px;height:34px;font-size:.95rem;line-height:1;transition:transform .15s,opacity .15s,background .2s,border-color .2s;display:flex}.btn:active{transform:scale(.92)}.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.btn-send{background:var(--accent);color:var(--bg)}.btn-send:disabled{opacity:.3;cursor:not-allowed}.btn-send:not(:disabled):hover{filter:brightness(1.08)}.btn-stop{border-color:var(--border);color:var(--text);background:0 0}.btn-stop:hover{border-color:var(--accent)}.error{color:var(--danger);margin:.9rem 0 0;font-size:.82rem}.suggestions{flex-wrap:wrap;gap:.5rem;margin-top:1.5rem;display:flex}.chip{border:1px solid var(--border);color:var(--text-dim);cursor:pointer;background:0 0;border-radius:.4rem;padding:.45rem .8rem;font-family:inherit;font-size:.78rem;transition:border-color .2s,color .2s}.chip:hover{border-color:var(--accent);color:var(--text)}.chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.result{background:var(--surface);border:1px solid var(--border);border-radius:.6rem;width:100%;margin-top:1.75rem;animation:.3s resultIn;overflow:hidden}@keyframes resultIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.result-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:.65rem .9rem;display:flex}.result-header-left{letter-spacing:.08em;text-transform:uppercase;color:var(--text-dim);font-size:.7rem}.result-actions{gap:.25rem;display:flex}.icon-btn{width:26px;height:26px;color:var(--text-dim);cursor:pointer;background:0 0;border:none;border-radius:.35rem;justify-content:center;align-items:center;transition:background .2s,color .2s;display:flex}.icon-btn:hover:not(:disabled){color:var(--text);background:#ffffff0f}.icon-btn:disabled{opacity:.3;cursor:not-allowed}.icon-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.result-body{max-height:380px;color:var(--text);white-space:pre-wrap;word-wrap:break-word;padding:1rem;font-size:.9rem;line-height:1.75;overflow-y:auto}.result-body::-webkit-scrollbar{width:6px}.result-body::-webkit-scrollbar-thumb{background:var(--border);border-radius:999px}.thinking{gap:.3rem;padding:.15rem 0;display:flex}.thinking span{background:var(--accent);border-radius:50%;width:5px;height:5px;animation:1.1s ease-in-out infinite bounce}.thinking span:nth-child(2){animation-delay:.15s}.thinking span:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,80%,to{opacity:.4;transform:scale(.6)}40%{opacity:1;transform:scale(1)}}.cursor{background:var(--accent);vertical-align:text-bottom;width:6px;height:1em;margin-left:2px;animation:.9s step-end infinite blink;display:inline-block}@keyframes blink{50%{opacity:0}}@media (max-width:480px){.page{padding:2rem 1rem}.headline{font-size:1.5rem}.composer{padding:.7rem .6rem .7rem .85rem}.btn{width:32px;height:32px}}@media (prefers-reduced-motion:reduce){.boot{transition:none}.page:before,.status-dot,.boot-line,.result,.thinking span,.cursor{animation:none!important}}
