/* generated by tools/build_arabic.cjs from styles.css — edit the source, not this file */
:root{font-family:'DM Sans',Arial,sans-serif;color:#252832;background:#f5f6f8;font-synthesis:none;--accent:#e64c26;--accent-soft:#fff0ea;--border:#e5e7eb;--muted:#717680;--ink:#252832}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,pre:focus-visible{outline:3px solid #f59d85;outline-offset:3px}[hidden]{display:none!important}a{color:inherit}.topbar{height:78px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 38px;gap:34px}.brand{display:flex;align-items:center;font-family:Manrope,Arial,sans-serif;font-size:25px;letter-spacing:-1.2px;font-weight:800;text-decoration:none}.brand-mark{height:34px;width:34px;border-radius:10px;background:var(--accent);display:grid;place-items:center;color:white;font-size:36px;line-height:1;padding-bottom:4px;margin-left:11px;letter-spacing:0}.brand-period{color:var(--accent)}.header-label{border-right:1px solid var(--border);padding-right:29px;font-size:11px;font-weight:700;letter-spacing:2px;color:#777d86}.topbar>.button{margin-right:auto}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;border:1px solid var(--border);border-radius:8px;background:white;font-size:14px;font-weight:600;white-space:nowrap;color:var(--ink);transition:background .15s,border-color .15s}.button:hover{background:#f7f8f9;border-color:#c9cdd3}.subtle{border-color:transparent;background:transparent}.subtle>span{border:1.5px solid #7c818a;width:17px;height:17px;border-radius:50%;font-size:12px;display:grid;place-items:center}main{max-width:1600px;margin:auto;padding:30px 38px 0}.workspace-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px;gap:20px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:750;color:var(--muted)}h1{font-family:Manrope,Arial,sans-serif;font-size:31px;letter-spacing:-1.2px;line-height:1.3;margin:8px 0 0;font-weight:750}.platform-badge{display:flex;align-items:center;gap:8px;font-size:12px;color:#626876;border:1px solid #dfe2e7;border-radius:6px;background:#fafbfc;padding:8px 10px}.platform-badge>span{font-size:17px}.studio{display:grid;grid-template-columns:248px minmax(300px,1fr) 292px;gap:20px;align-items:start}.panel{background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}h2{font-size:15px;font-weight:700;letter-spacing:-.2px;margin:0}.count{background:#f1f2f5;border-radius:5px;font-size:11px;font-weight:650;color:#747984;padding:3px 6px}.library{padding:21px 17px;grid-row:span 2}.muted{color:var(--muted)}.library-intro{font-size:13px;margin:6px 0 24px}.category{margin-top:22px}.category:first-child{margin-top:0}.category-label{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:700;letter-spacing:1.5px;color:#737985;margin:0 0 10px}.category-label>span{font-size:13px;letter-spacing:0}.animation-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.animation-tile{min-height:84px;position:relative;border:1px solid var(--border);border-radius:8px;background:#fff;color:#545b67;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;padding:12px 4px 10px;font-size:12px;font-weight:550;transition:background .15s,border-color .15s}.animation-tile:hover{border-color:#f2ae9b;background:#fff9f6}.animation-tile[aria-pressed=true]{background:var(--accent-soft);border-color:#f18568;color:#b83818;box-shadow:0 0 0 1px #f1856814}.animation-tile[aria-pressed=true]:after{content:'✓';position:absolute;left:5px;top:4px;width:13px;height:13px;background:var(--accent);color:#fff;border-radius:50%;font-size:8px;line-height:13px}.tile-icon{display:grid;place-items:center;width:31px;height:26px;color:#858e9e}.tile-icon svg{width:27px;height:27px}.animation-tile[aria-pressed=true] .tile-icon{color:var(--accent)}.library-note{border-top:1px solid var(--border);margin-top:24px;padding-top:17px;display:flex;gap:10px;color:#9298a1}.library-note>span{font-size:22px;color:#bc967f}.library-note p{font-size:11px;line-height:1.7;margin:0}.preview>.panel-heading{padding:21px 23px}.status{font-size:11px;color:#797e88;display:flex;align-items:center;gap:6px}.status:before{content:'';height:5px;width:5px;border-radius:50%;background:#a6aab2}.status[data-playing=true]:before{background:var(--accent)}.stage{height:350px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background-color:#fafbfc;background-image:radial-gradient(#d5d9e0 .8px,transparent .8px);background-size:18px 18px;border-top:1px solid #f0f1f3;border-bottom:1px solid #e9ecf0}.stage-label{position:absolute;top:20px;right:23px;font-size:9px;color:#a3a8b2;letter-spacing:1.5px;font-weight:600}.preview-object{width:100px;height:100px;background:var(--accent);border-radius:24px;display:grid;place-items:center;color:#fff;box-shadow:0 13px 30px #e64c2626;will-change:transform,opacity;position:relative}.preview-object svg{width:44px;height:44px}.object-outline{position:absolute;width:116px;height:116px;border:1px dashed #cbd0d8;border-radius:29px}.crosshair{position:absolute;width:220px;height:1px;background:#e5e8ee}.crosshair:after{position:absolute;content:'';height:220px;width:1px;background:#e5e8ee;top:-110px;right:110px}.stage-bottom{position:absolute;bottom:25px;font-size:11px;letter-spacing:.1px;color:#9a9fa8}.playback{display:flex;align-items:center;justify-content:space-between;padding:18px 23px 10px;gap:10px}.transport{display:flex;gap:8px}.replay{padding:9px 13px}.replay>span{font-size:20px;line-height:16px}.icon-button{width:37px;height:37px;padding:0}.stop-icon{height:9px;width:9px;background:#7e8591;border-radius:1px}.animation-caption{display:flex;align-items:flex-end;flex-direction:column;gap:3px}.animation-caption strong{font-size:12px;font-weight:650}.animation-caption span{font-size:11px;color:#858b95}.preview-note{font-size:11px;color:#858b95;margin:5px 23px 20px;line-height:1.6}.target-section{padding:21px 21px 19px;border-bottom:1px solid var(--border)}.step-label{font-family:monospace;font-size:11px;color:#a8aeba}.target-section label{display:block;font-size:12px;margin:22px 0 9px;font-weight:550}.id-input{display:flex;align-items:center;border:1px solid #d9dde4;border-radius:7px;background:#fcfcfd;gap:9px;padding-right:12px}.id-input:focus-within{border-color:#ee9a81;box-shadow:0 0 0 3px #fff0ea}.id-input:has(input[aria-invalid=true]){border-color:#bf371d}.id-input>span{color:#a2a8b2;font-size:15px}#object-id{width:100%;min-width:0;border:0;background:transparent;padding:11px 0 11px 8px;font-size:12px;color:#353c48;outline:none}#object-id::placeholder{color:#949aa5}.field-hint{font-size:11px;line-height:1.6;color:#838a96;margin:8px 0 0}.field-hint.error{color:#b2341c}.settings-section{padding:21px}.text-button{border:0;background:transparent;color:#777f8c;padding:0;font-size:11px;cursor:pointer}.text-button:hover{color:var(--accent)}.range-field{margin-top:24px}.range-field label{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:500;margin-bottom:11px}output{padding:4px 7px;border:1px solid #e4e7ec;border-radius:5px;min-width:47px;text-align:center;color:#515864;font-size:11px}output span{color:#9ba1aa}input[type=range]{appearance:none;display:block;width:100%;height:4px;border-radius:5px;margin:0;background:linear-gradient(to left,var(--accent) 0%,var(--accent) var(--progress,12.5%),#e9ebf0 var(--progress,12.5%),#e9ebf0 100%);cursor:pointer}input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;background:#fff;border:3px solid var(--accent);border-radius:50%;box-shadow:0 1px 3px #0002}input[type=range]::-moz-range-thumb{width:8px;height:8px;background:#fff;border:3px solid var(--accent);border-radius:50%}.range-ends{display:flex;justify-content:space-between;font-size:10px;color:#949ba5;margin-top:9px}.select-field{margin-top:22px}.select-field label{display:block;font-size:12px;font-weight:500;margin-bottom:8px}select{border:1px solid #dfe3e9;width:100%;border-radius:6px;background:#fff;padding:9px;color:#5b626e;font-size:12px}.code-panel{grid-column:2/4;border-radius:12px;background:#1c222e;color:#e9edf5;overflow:hidden;min-width:0;border:1px solid #29313e}.code-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 22px;border-bottom:1px solid #313743;gap:10px}.code-heading>div{display:flex;align-items:center;gap:11px}.code-heading h2{font-size:13px;font-weight:550}.code-symbol{font-family:monospace;color:#9ba5b9;font-size:16px}.language-tag{font-size:9px;color:#8c96a8;border:1px solid #3b4351;border-radius:4px;padding:3px 5px}.copy-button{background:#f46440;border-color:#f46440;color:#fff;font-size:11px;padding:9px 12px}.copy-button:hover{background:#e4512c;border-color:#e4512c}.copy-button:disabled{background:#353c49;border-color:#353c49;color:#858e9f}.code-empty{min-height:148px;display:flex;align-items:center;justify-content:center;gap:18px;padding:30px;color:#7f8b9f}.empty-symbol{font-family:monospace;font-size:33px;letter-spacing:-5px;color:#5c677a}.code-empty strong{font-size:13px;font-weight:500;color:#bac3d2}.code-empty p{font-size:11px;line-height:1.6;margin:6px 0 0}.code-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #313743;padding:12px 22px;font-size:10px;color:#8490a4;gap:12px}.code-footer .text-button{color:#b4bece;font-size:10px}.code-footer .text-button:hover{color:#fff}pre{font:12px/1.8 Consolas,'Courier New',monospace;margin:0;height:235px;overflow:auto;padding:20px 22px;tab-size:2;color:#c2ccd9;scrollbar-color:#495366 #1c222e}.token-comment{color:#7e8ca3}.token-string{color:#d9bd87}.token-keyword{color:#c5a1f2}.token-number{color:#90c8d8}.page-footer{display:flex;justify-content:space-between;font-size:10px;color:#9298a3;padding:23px 0 25px}.footer-slash{margin:0 8px;color:#c0c4cc}dialog{border:1px solid var(--border);border-radius:17px;max-width:610px;width:calc(100% - 32px);padding:28px;color:var(--ink);box-shadow:0 30px 100px #17213633}dialog::backdrop{background:#11182766;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between}dialog h2{font-family:Manrope,Arial,sans-serif;font-size:25px;margin:14px 0 25px}.help-steps{padding-right:23px;display:grid;gap:17px}.help-steps li{padding-right:8px;font-size:14px}.help-steps li::marker{color:var(--accent);font-weight:700}.help-steps p{font-size:14px;line-height:1.6;color:#707885;margin:6px 0}.help-callout{background:#fff3ed;padding:14px;border-radius:8px;color:#87422b;font-size:13px;line-height:1.6}.help-source{font-size:12px;color:#79818e;line-height:1.7}.help-source a{color:#a23f25}.toast{position:fixed;bottom:26px;right:50%;transform:translateX(50%);background:#262e3c;color:white;padding:13px 20px;border-radius:9px;box-shadow:0 5px 30px #0002;font-size:14px;z-index:3;max-width:90%;text-align:center}
/* Essential controls stay comfortably readable across screen sizes. */
.header-label,.eyebrow,.category-label,.stage-label{font-size:12px}.library-intro,.animation-tile,.target-section label,.range-field label,.select-field label,#object-id,select{font-size:14px}.field-hint,.preview-note,.animation-caption span,.library-note p,.status,.platform-badge,.page-footer,.range-ends,.stage-bottom,.code-footer,.code-footer .text-button,.text-button,.code-empty p,.language-tag{font-size:12px}.animation-caption strong,.code-empty strong,.code-heading h2,.copy-button,output{font-size:14px}.header-label{letter-spacing:1.4px}.eyebrow{letter-spacing:1.5px}.category-label{letter-spacing:1px}.stage-label{font-size:10px}.library-intro{line-height:1.5}.settings-section{padding-bottom:24px}.preview-note{min-height:38px}.code-empty{min-height:150px}
@media(min-width:1500px){main{padding-top:38px}.stage{height:382px}.studio{grid-template-columns:260px minmax(300px,1fr) 312px}.animation-tile{min-height:88px}}
@media(max-width:1150px){.topbar{padding:0 22px}main{padding:25px 22px 0}.studio{grid-template-columns:220px minmax(260px,1fr) 252px;gap:14px}.library{padding:19px 14px}.target-section,.settings-section{padding:19px 16px}.stage{height:350px}.preview>.panel-heading,.playback{padding-right:17px;padding-left:17px}.preview-note{margin-right:17px;margin-left:17px}.code-heading{padding:16px}.code-heading>div{gap:8px}.language-tag{display:none}.header-label{font-size:10px}.preview-note{line-height:1.5}}
@media(max-width:950px){.studio{grid-template-columns:210px minmax(0,1fr)}.library{grid-row:span 3}.settings{grid-column:2;display:grid;grid-template-columns:1fr 1fr}.target-section{border-left:1px solid var(--border);border-bottom:0}.code-panel{grid-column:2}.settings-section>.panel-heading{margin-bottom:4px}.workspace-heading .platform-badge{display:none}.preview-note{min-height:0}.stage{height:320px}.code-empty{padding:24px;gap:13px}.code-footer{flex-wrap:wrap}.code-heading{flex-wrap:wrap}}
@media(max-width:640px){.topbar{height:68px;padding:0 17px}.brand{font-size:23px}.header-label{display:none}.topbar{gap:12px}.topbar>.button{font-size:12px;padding-left:0;padding-right:5px}main{padding:25px 16px 0}.workspace-heading{margin-bottom:22px}h1{font-size:27px}.eyebrow{font-size:10px}.studio{display:flex;flex-direction:column;gap:16px}.studio>*{width:100%}.library{padding:18px}.library-intro{margin-bottom:15px}#animation-library{display:grid;grid-template-columns:repeat(4,minmax(116px,1fr));gap:14px;overflow-x:auto;padding-bottom:8px}.category{margin:0}.animation-grid{grid-template-columns:1fr;gap:6px}.animation-tile{min-height:55px;flex-direction:row;justify-content:flex-start;padding:10px;gap:8px;font-size:12px}.tile-icon{width:22px}.tile-icon svg{width:21px}.category-label{font-size:10px}.library-note{display:none}.stage{height:290px}.settings{grid-template-columns:1fr}.target-section{border-left:0;border-bottom:1px solid var(--border)}.settings-section{display:grid;grid-template-columns:1fr 1fr;gap:18px}.settings-section>.panel-heading{grid-column:1/-1}.range-field,.select-field{margin-top:0}.code-heading h2{font-size:13px}.code-heading>div{gap:6px}.copy-button{font-size:12px}.code-empty{justify-content:flex-start}.code-empty strong{font-size:13px}.code-footer{padding:12px 16px}.page-footer{font-size:10px;gap:20px;line-height:1.5}.preview-note{font-size:11px}dialog{padding:22px}pre{font-size:11px}}
.studio{grid-template-rows:min-content 1fr}.animation-tile{min-height:72px}.category{margin-top:18px}.library-note{margin-top:18px}.preview-object{width:112px;height:112px}.object-outline{width:128px;height:128px;border-radius:30px}
@media(max-width:640px){.animation-tile{min-height:55px}.category{margin-top:0}}
.id-actions{display:flex;gap:8px;margin-top:10px}.id-actions .button{min-height:35px;font-size:13px;padding:7px 11px}.add-id-button{flex:1;background:var(--accent);border-color:var(--accent);color:#fff}.add-id-button:hover{background:#c53d1b;border-color:#c53d1b}.clear-id-button{background:#fff}.id-actions .button:disabled{background:#f2f3f6;color:#969ca6;border-color:#e5e7eb}.target-section .field-hint{min-height:39px}.category-count{margin-right:auto;color:#a1a8b3;font-size:11px!important}.library{display:flex;flex-direction:column;height:972px}.library>.panel-heading,.library-intro,.library-note{flex-shrink:0}#animation-library{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d5d9e0 transparent;padding-left:4px;flex:1}.animation-tile{font-size:13px}
@media(max-width:950px) and (min-width:641px){.library{height:980px}}
@media(max-width:640px){.library{height:350px}#animation-library{max-height:260px}.animation-tile{font-size:12px}}
/* Keep the code panel anchored when a template exposes extra controls. */
.settings-section{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d5d9e0 transparent}
@media(min-width:951px){.studio{grid-template-rows:600px 1fr}.preview{height:600px;display:flex;flex-direction:column}.preview>.panel-heading,.playback,.preview-note{flex-shrink:0}.stage{flex:1;min-height:0;height:auto}.settings{height:600px;display:flex;flex-direction:column}.target-section{flex-shrink:0}.settings-section{flex:1}}
@media(min-width:641px) and (max-width:950px){.settings{height:540px;grid-template-rows:minmax(0,1fr)}.target-section{overflow-y:auto}.studio{grid-template-rows:min-content 540px auto}}
@media(max-width:640px){.settings{height:640px;display:flex;flex-direction:column}.target-section{flex-shrink:0}.settings-section{flex:1;align-content:start}}
.copy-help{font-size:14px;line-height:1.7;color:#68717f}#manual-code{width:100%;height:230px;resize:vertical;border:1px solid #dce0e6;border-radius:8px;background:#1c222e;color:#e7edf6;padding:14px;font:12px/1.6 Consolas,monospace}
/* The full-height inspector sits beside a compact, independently anchored code pane. */
.code-panel{height:260px;display:flex;flex-direction:column}.code-heading,.code-footer{flex-shrink:0}.code-panel pre,.code-empty{min-height:0;flex:1;height:auto}.code-empty{padding:20px;gap:14px}.settings-section{overflow:visible;overscroll-behavior:auto}.target-section{overflow:visible}
@media(min-width:951px){.studio{grid-template-rows:560px 260px}.preview{grid-column:2;grid-row:1;height:560px}.code-panel{grid-column:2;grid-row:2}.settings{grid-column:3;grid-row:1/3;height:100%;min-height:840px}.settings-section{flex:0 0 auto}.library{height:840px}.code-heading{padding:15px;gap:10px;flex-wrap:wrap}.code-heading h2{font-size:13px}.code-heading>div{gap:8px}.code-heading .language-tag{display:none}.code-footer{padding:12px 15px;flex-wrap:wrap}}
@media(min-width:641px) and (max-width:950px){.studio{grid-template-rows:min-content 260px auto}.preview{grid-column:2;grid-row:1}.code-panel{grid-column:2;grid-row:2}.settings{grid-column:2;grid-row:3;height:auto;grid-template-rows:auto}.library{height:100%}}
@media(max-width:640px){.preview{order:1}.library{order:0}.code-panel{order:2}.settings{order:3;height:auto}.settings-section{flex:0 0 auto;overflow:visible}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
