@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');
:root{--purple:#7944eb;--ink:#191b33;--muted:#7a7b91;--line:#e4e0ee;--surface:#fff;--bg:#f7f7fc}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'Noto Sans Arabic',Tahoma,Arial,sans-serif}button,input,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #b899f8;outline-offset:3px}button{background:white;border:1px solid var(--line);padding:8px 13px;border-radius:7px;color:#64647e;font-size:12px}button:hover{background:#f3eefa}button.primary{background:var(--purple);border-color:var(--purple);color:white;padding:9px 20px;font-weight:600}button:disabled{opacity:.5;cursor:wait}.shell{width:min(1360px,calc(100% - 64px));margin:auto}header{background:#15122e;color:white;border-bottom:1px solid #302747}.header{display:flex;align-items:center;justify-content:space-between;height:76px}.brand{font:700 20px Arial;display:flex;align-items:center;gap:7px;letter-spacing:-.5px}.brand>span:last-child{font-weight:400;margin-left:-6px}.brand-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#b37aff,#6a2be1);font:25px Arial;color:white}.back{font-size:12px;color:#d4c5eb}.intro{text-align:center;padding:44px 0 32px}.badge{display:inline-flex;align-items:center;gap:7px;color:#7a48ce;background:#eee6fb;border:1px solid #e1d3f7;font-size:11px;padding:5px 14px;border-radius:20px}.badge i{width:5px;height:5px;border-radius:50%;background:var(--purple)}h1{font-size:40px;line-height:1.5;letter-spacing:-1.1px;margin:15px 0 9px;font-weight:800}h1 em{font-style:normal;color:var(--purple)}.intro p{color:var(--muted);font-size:13px;line-height:1.9;margin:0}.intro-meta{display:flex;gap:24px;justify-content:center;font-size:10px;color:#9591a7;margin-top:17px}.mobile-break{display:none}.studio{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 15px 60px #45238507}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;padding:13px 16px;border-bottom:1px solid var(--line)}.tools-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.toggle{display:flex;align-items:center;gap:5px;color:#7a7b91;font-size:11px;padding:0 6px}input[type=checkbox]{accent-color:var(--purple)}.work-grid{display:grid;grid-template-columns:1fr 1fr;direction:ltr}.code-panel,.preview-panel{min-width:0;direction:rtl}.code-panel{border-right:1px solid var(--line);background:#111526}.panel-header{display:flex;align-items:center;justify-content:space-between;height:53px;padding:0 15px;border-bottom:1px solid var(--line)}.code-panel>.panel-header{background:#1b1d31;border-color:#2a2b40;direction:ltr;padding-left:12px}.tabs{display:flex;align-items:center;gap:5px;height:100%}.tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:#888da7;height:100%;font:12px Arial;display:flex;align-items:center;gap:8px;padding:0 14px}.tabs button[aria-selected=true]{color:white;border-bottom-color:#a477f2;background:#28233c}.tab-dot{width:6px;height:6px;border-radius:50%}.orange{background:#ec8860}.blue{background:#69a3ff}.yellow{background:#e6c656}.file-indicator{font:10px monospace;color:#7d819b}.code-area{height:440px;display:flex;direction:ltr;position:relative}.code-area[hidden]{display:none}.line-numbers{width:49px;padding:18px 11px 18px 0;margin:0;flex-shrink:0;text-align:right;overflow:hidden;color:#484f6c;border-right:1px solid #24283c;user-select:none;font:13px/1.8 'SFMono-Regular',Consolas,'Liberation Mono',monospace;white-space:pre}.code-area textarea{display:block;flex:1;width:100%;min-width:0;margin:0;padding:18px 16px;background:transparent;border:0;outline:0;resize:none;color:#d8dced;tab-size:2;font:13px/1.8 'SFMono-Regular',Consolas,'Liberation Mono',monospace;direction:ltr;text-align:left;white-space:pre;overflow:auto;border-radius:0;caret-color:#d5acff}.code-area textarea::selection{background:#6c4e9670}.code-footer{height:34px;display:flex;justify-content:space-between;align-items:center;padding:0 15px;background:#191d30;color:#7d849f;font-size:9px;direction:rtl;border-top:1px solid #272a3f}.saved-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#72b58e;margin:0 4px}.preview-heading{display:flex;gap:7px;align-items:center;white-space:nowrap}.preview-heading strong{font-size:12px;font-weight:600}.preview-heading>span:last-child{font-size:9px;color:#a5a0b4;margin-right:3px}.live-dot{width:5px;height:5px;border-radius:50%;background:#55ac8b}.preview-actions{display:flex;align-items:center;gap:8px}.preview-actions button{padding:3px 7px;font-size:22px;border:0}.preview-actions select{background:#f4f1f9;border:1px solid #e9e3f2;border-radius:5px;padding:5px 8px;color:#74688d;font-size:10px;max-width:150px}.preview-stage{height:440px;background:repeating-conic-gradient(#eceaf2 0% 25%,#f4f2f8 0% 50%) 50%/14px 14px;display:flex;flex-direction:column;align-items:center;padding:18px;overflow:auto}.browser-strip{width:100%;height:28px;background:#f3f3f8;border:1px solid #e4e4ef;border-radius:7px 7px 0 0;flex-shrink:0;display:flex;align-items:center;gap:4px;padding:0 10px;direction:ltr}.browser-strip>span{width:5px;height:5px;border-radius:50%;background:#cdc9da}.browser-strip small{font:9px Arial;color:#aaa5b9;margin-left:auto}.frame-host{background:white;flex:1;width:100%;min-height:320px;flex-shrink:0;display:flex;align-self:center;box-shadow:0 4px 20px #2e1f4f10}.frame-host iframe{width:100%;height:100%;min-height:350px;border:0;background:white;display:block}.preview-footer{height:34px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 12px;font-size:9px;color:#9a94a9}.preview-footer label{display:flex;align-items:center;gap:4px}.preview-footer button{padding:0;border:0;background:none;font-size:9px;color:#9b8eac}.diagnostics{border-top:1px solid var(--line)}.diagnostic-head{display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #eee9f6;height:43px;background:#fdfcfe}.diagnostic-tabs{display:flex;height:100%;gap:18px}.diagnostic-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font-size:11px;padding:0;color:#a09aab}.diagnostic-tabs button.active{color:#7944eb;border-bottom-color:#7944eb}.diagnostic-tabs span{font:9px Arial;padding:2px 5px;border-radius:4px;background:#eee9f7;margin-right:5px}.diagnostic-head>button{background:none;border:0;font-size:10px}.issue-list,.console-list{padding:12px 16px;min-height:56px;max-height:200px;overflow:auto}.issue-list:empty::before{content:'✓ لم تظهر ملاحظات في فحص البنية الحالي.';font-size:11px;color:#54a083}.issue-row{display:block;width:100%;text-align:right;border:0;border-bottom:1px solid #f3edf7;border-radius:0;font-size:11px;line-height:1.8;padding:7px 0;background:white;color:#8f6b54}.issue-row.error{color:#c15f65}.issue-row span{display:inline-block;font:10px monospace;color:#8b7da1;background:#f2edf9;border-radius:4px;padding:2px 5px;margin-left:9px}.console-entry{font:11px/1.8 Consolas,monospace;direction:ltr;white-space:pre-wrap;overflow-wrap:anywhere;border-bottom:1px solid #f0ecf7;padding:5px 0;color:#6f6681}.console-entry.error{color:#c35b67}.console-entry.warn{color:#b38738}.console-empty{font-size:11px;color:#aaa1b8}.diagnostic-note{font-size:9px;color:#a59caf;margin:0;padding:7px 16px 11px;line-height:1.7}.status{min-height:20px;margin:10px 0;font-size:11px;color:#8c80a3}.related{padding:23px 0 30px;text-align:center}.related h2{font-size:12px;font-weight:500;color:#8b80a0;margin:0 0 16px}.related>div{display:flex;gap:9px;flex-wrap:wrap;justify-content:center}.related a{font-size:11px;border:1px solid #e5ddef;border-radius:20px;padding:6px 17px;color:#8a6bb0;background:#faf8fd}.related a:hover{background:#eee5fb}.help{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;padding:26px 0 40px;border-top:1px solid var(--line)}.help article>span{font:19px Arial;color:#c6b3e0}.help h2{font-size:14px;margin:10px 0 5px}.help p{font-size:11px;line-height:2;color:#9a91a7;margin:0}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;padding:22px 0;color:#968ba5;font-size:10px}footer a{font:600 13px Arial;color:#827193}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.preview-panel.expanded{position:fixed;inset:16px;z-index:100;border:1px solid var(--line);border-radius:12px;box-shadow:0 0 0 50px #171327aa;overflow:hidden;background:white;display:flex;flex-direction:column}.preview-panel.expanded .preview-stage{height:auto;flex:1}.preview-panel.expanded .frame-host iframe{min-height:calc(100dvh - 170px)}.preview-panel.expanded .panel-header,.preview-panel.expanded .preview-footer{flex-shrink:0}.preview-panel.expanded .frame-host{min-height:0}
@media(min-width:1500px){.code-area,.preview-stage{height:510px}}@media(max-width:1000px){.shell{width:calc(100% - 36px)}.file-indicator{display:none}.toolbar{gap:10px}.toolbar button{font-size:10px}.tabs button{padding:0 10px;font-size:11px}.preview-stage{padding:12px}.preview-heading>span:last-child{display:none}}@media(max-width:700px){.shell{width:calc(100% - 24px)}.header{height:66px}.brand{font-size:17px}.brand-icon{width:29px;height:29px;font-size:23px}.intro{padding:30px 0 25px}h1{font-size:31px;line-height:1.6;letter-spacing:-.8px}.mobile-break{display:block}.intro p{font-size:11px}.intro-meta{gap:12px;font-size:8px}.badge{font-size:10px}.toolbar{padding:12px;gap:12px}.tools-actions{gap:6px}.toolbar button{padding:7px 10px;font-size:10px}.toolbar button.primary{padding:8px 17px;font-size:11px}.toggle{font-size:9px;padding:0}.secondary-actions{width:100%}.secondary-actions button{flex:1;white-space:nowrap;padding:6px 7px}.work-grid{grid-template-columns:1fr}.code-panel{border-right:0;border-bottom:1px solid var(--line)}.code-area{height:320px}.code-area textarea{font-size:12px;line-height:1.8;padding:14px 10px}.line-numbers{font-size:12px;line-height:1.8;padding-top:14px;width:39px}.code-footer{font-size:8px}.panel-header{height:46px}.tabs button{font-size:11px;padding:0 13px}.preview-stage{height:400px;padding:12px}.preview-footer{font-size:8px}.preview-actions select{font-size:9px}.issue-list,.console-list{max-height:180px}.help{grid-template-columns:1fr;gap:22px;padding:24px 5px}.help article>span{float:right;margin-left:15px;padding-top:7px}.help h2{margin-top:0}.help p{margin-right:36px}.related a{font-size:10px;padding:6px 12px}footer{flex-wrap:wrap;font-size:9px}.preview-panel.expanded{inset:8px}.preview-panel.expanded .frame-host iframe{min-height:calc(100dvh - 140px)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.brand-image{display:block;width:195px;height:auto;max-height:65px;object-fit:contain}.brand{font-size:0}@media(max-width:650px){.brand-image{width:135px}}

header .brand-image{background:white;border-radius:12px;padding:4px}
