@font-face{font-family:IRANSans;src:url('IRANSansWeb.woff2') format('woff2');font-display:swap}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{--bg:#0d101b;--panel:#141827;--raised:#1b2032;--editor:#111520;--text:#e9eaf3;--muted:#9ba3bc;--line:#292f43;--accent:#ab94ff;--green:#6ddbb7;margin:0;background:var(--bg);color:var(--text);font:14px/1.9 IRANSans,Tahoma,sans-serif}html[data-theme=light] body{--bg:#f4f5fa;--panel:#fff;--raised:#edeff8;--editor:#fff;--text:#25273c;--muted:#5d647c;--line:#d9ddec;--accent:#6544c7;--green:#157b5d}a{color:inherit;text-decoration:none}button,select,textarea{font:inherit}button,select{color:var(--text);background:var(--raised);border:1px solid var(--line);border-radius:8px;min-height:40px;padding:5px 12px}button{cursor:pointer;transition:background .18s,transform .18s}button:hover{background:var(--line)}button:active{transform:translateY(1px)}button:disabled{opacity:.55;cursor:wait}button[aria-pressed=true]{color:var(--accent)}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}select{cursor:pointer}option{background:var(--panel)}[hidden]{display:none!important}.header,main,footer{width:min(1400px,calc(100% - 80px));margin:auto}.header{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:100px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-weight:bold;font-size:17px}.brand small{display:block;letter-spacing:3px;font:9px/1.8 Arial,sans-serif;color:var(--muted);margin-top:3px}.logo{display:grid;place-items:center;background:linear-gradient(135deg,#9571fb,#6341c8);color:white;border-radius:14px;width:44px;height:44px;font:bold 20px monospace;direction:ltr;box-shadow:0 5px 25px #7954d82b}.logo.small{width:33px;height:33px;font-size:15px;border-radius:10px}.header nav{display:flex;gap:32px;color:var(--muted);font-size:13px}.header nav a:hover,.header nav .active{color:var(--text)}.icon-btn{font-size:23px;width:44px}.hero{display:flex;align-items:center;justify-content:space-between;padding:45px 0 34px;gap:20px}.eyebrow{color:var(--accent);font-size:12px}.eyebrow i{display:inline-block;width:7px;height:7px;border-radius:100%;background:var(--green);margin-left:8px;box-shadow:0 0 12px #6ddbb744}h1{font-size:clamp(26px,3vw,40px);line-height:1.7;margin:10px 0;font-weight:bold;letter-spacing:-1px}h1 span{color:var(--accent)}.hero p{color:var(--muted);margin:0}.mobile-break{display:none}.hero-note{display:flex;align-items:center;gap:16px;padding:18px 22px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(125deg,var(--panel),var(--bg));font-size:12px}.hero-note>span{font-size:30px;color:var(--accent)}.hero-note small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.workspace{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--panel);box-shadow:0 18px 70px #00000020}.workspace-top{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid var(--line)}.project-title{display:flex;align-items:center;gap:12px}.project-title small{display:block;color:var(--muted);font-size:10px}.project-icon{font-size:30px;color:var(--accent)}.save-status{font-size:11px;color:var(--green)}.toolbar{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;gap:12px;flex-wrap:wrap}.language-control,.actions{display:flex;align-items:center;gap:8px}.language-control label{color:var(--muted);font-size:12px;margin-left:5px}#language{min-width:145px;direction:ltr}.engine{font-size:10px;color:var(--green);padding:3px 9px;border-radius:5px;background:#60cda610}.actions button{font-size:12px}.actions .primary{background:#8057e6;color:white;border-color:#956ef1;padding-inline:18px;box-shadow:0 3px 14px #8057e630}.actions .primary:hover{background:#7046d5}kbd{font:11px monospace;border:1px solid var(--line);border-radius:4px;padding:3px 5px;direction:ltr;display:inline-block}.primary kbd{margin-right:12px;border-color:#ffffff35;color:#eee5ff}.panes{display:grid;grid-template-columns:1fr 1fr;direction:ltr;border-top:1px solid var(--line)}.editor-pane,.output-pane{min-width:0;direction:rtl}.editor-pane{border-right:1px solid var(--line)}.pane-heading{height:54px;padding:8px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:12px}.pane-heading strong{font-weight:normal;margin:0 6px}.file-label{direction:ltr;display:flex;align-items:center;gap:10px;font-family:monospace}.file-label b{font-size:10px;background:#e9ce641c;color:#c3ac4f;padding:0 4px;border-radius:3px}.editor-tools{display:flex;gap:6px;align-items:center}.editor-tools button,.editor-tools select,.pane-heading>button{border:0;min-height:32px;font-size:12px;background:transparent;padding:3px 8px}.tag{font:10px monospace;color:var(--muted);background:var(--raised);padding:4px 7px;border-radius:4px}#editor,#fallback{height:400px;width:100%;background:var(--editor);line-height:1.8}#fallback{resize:vertical;color:var(--text);padding:16px;font:16px/1.8 monospace;border:0}.ace_editor{font-family:Consolas,'Courier New',monospace!important}.output-body{height:400px;overflow:auto;background:var(--editor);position:relative}.empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.terminal-mark{font:32px monospace;direction:ltr;color:var(--accent);background:var(--raised);border:1px solid var(--line);width:72px;height:65px;display:grid;place-items:center;border-radius:18px;margin-bottom:10px}.empty h2{font-size:16px;margin:10px 0 0}.empty p{font-size:12px;color:var(--muted);line-height:2}.shortcut{color:var(--muted);direction:ltr;font-size:11px;margin-top:8px}.editor-status,.output-status{display:flex;justify-content:space-between;align-items:center;height:33px;padding:4px 16px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.editor-status{direction:ltr;font-family:monospace}.separator{margin:0 10px;color:var(--line)}#run-status{color:var(--green)}.workspace-foot{display:flex;justify-content:space-between;gap:16px;padding:12px 20px;font-size:10px;color:var(--muted);border-top:1px solid var(--line)}.workspace-foot a{color:var(--accent)}.runtime-note{font-size:11px;color:var(--muted);line-height:2.2;padding:0 6px;margin:14px 0 0}.guide{padding:60px 0 44px}.section-title{margin-bottom:22px}.section-title h2,.faq h2{font-size:22px;margin:5px 0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.cards article{position:relative;border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:22px}.step{font:28px monospace;color:var(--accent);opacity:.7}.cards h3{font-size:14px;margin:14px 0 6px}.cards p{color:var(--muted);font-size:12px;margin:0}.faq{max-width:850px;margin:0 auto 54px}.faq h2{margin-bottom:20px}.faq details{border-bottom:1px solid var(--line);padding:15px 0}.faq summary{cursor:pointer;font-size:13px}.faq details p{color:var(--muted);font-size:12px}footer{border-top:1px solid var(--line);padding:26px 0;display:flex;justify-content:space-between;align-items:center;gap:16px}footer .brand{font-size:13px}footer>span,footer>a:last-child{font-size:11px;color:var(--muted)}#console{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:20px;color:var(--text);font:14px/1.9 Consolas,monospace;min-height:100%}#preview{border:0;background:white;width:100%;height:100%;display:block}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:12px 24px;background:var(--raised);color:var(--text);border:1px solid var(--accent);border-radius:10px;box-shadow:0 8px 40px #0005;z-index:99;max-width:90vw;width:max-content;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;top:-80px;right:20px;background:var(--panel);padding:12px;z-index:100}.skip:focus{top:10px}@media(min-width:1600px){#editor,#fallback,.output-body{height:470px}}@media(max-width:1000px){.header,main,footer{width:calc(100% - 40px)}.hero-note{display:none}.header nav{gap:18px}.engine{display:none}.actions kbd{display:none}}@media(max-width:700px){.header,main,footer{width:calc(100% - 24px)}.header{min-height:78px;gap:12px}.header nav{display:none}.brand{font-size:14px}.hero{padding:28px 4px}.hero p{font-size:12px}.hero h1{font-size:29px}.workspace-top{padding:14px}.project-title{font-size:12px}.save-status{font-size:9px}.toolbar{padding:10px;gap:10px}.language-control{flex:1}#language{min-width:130px}.actions{width:100%;justify-content:flex-end}.actions button{min-height:44px}.actions .primary{flex:1}.panes{grid-template-columns:1fr}.editor-pane{border-right:0;border-bottom:1px solid var(--line)}#editor,#fallback{height:340px}.output-body{height:290px}.workspace-foot{padding:10px;flex-wrap:wrap;gap:5px}.cards{grid-template-columns:1fr;gap:12px}.cards article{padding:18px}.step{float:left}.guide{padding:35px 0}.section-title h2,.faq h2{font-size:19px}.faq{margin-bottom:35px}footer{flex-wrap:wrap}footer>span{display:none}.runtime-note{font-size:10px}.pane-heading{padding-inline:10px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}

/* Execution feedback and legacy remote output */
.remote-result{display:block;width:100%;height:100%;border:0;background:#fff}.run-loader{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:var(--panel);color:var(--muted);font-size:12px}.run-spinner{width:58px;height:58px;border:5px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:run-spin .85s linear infinite}@keyframes run-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.run-spinner{animation-duration:2s}}
