:root{--bg:#f4f3ef;--panel:#fff;--text:#1a1a1a;--muted:#6b6a66;--line:#e2e0d9;--field:#f7f6f2;--stage:#e7e5de;--accent:#0e9c88;--accent-text:#fff;--accent-soft:#0e9c881f;--amber:#e9a21b;--amber-text:#2a1d02;--violet:#6157e8;--violet-text:#fff;--violet-soft:#6157e81f;--danger:#c0392b;--danger-soft:#c0392b1a;--shadow:0 6px 20px #14140a14;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#121413;--panel:#1b1e1d;--text:#ecebe6;--muted:#9a9a94;--line:#2c302e;--field:#141716;--stage:#0c0e0d;--accent:#3dd6b5;--accent-text:#0b1c18;--accent-soft:#3dd6b524;--amber:#ffc14d;--amber-text:#2a1d02;--violet:#9a92ff;--violet-text:#15112f;--violet-soft:#9a92ff26;--danger:#ff7b6b;--danger-soft:#ff7b6b1f;--shadow:0 6px 24px #00000059;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#121413;--panel:#1b1e1d;--text:#ecebe6;--muted:#9a9a94;--line:#2c302e;--field:#141716;--stage:#0c0e0d;--accent:#3dd6b5;--accent-text:#0b1c18;--accent-soft:#3dd6b524;--amber:#ffc14d;--amber-text:#2a1d02;--violet:#9a92ff;--violet-soft:#9a92ff26;--danger:#ff7b6b;--danger-soft:#ff7b6b1f;--shadow:0 6px 24px #00000059;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}[hidden]{display:none!important}html,body{margin:0}body{background:var(--bg);color:var(--text);min-height:100dvh;padding-bottom:env(safe-area-inset-bottom,0px);flex-direction:column;font:15px/1.6 Vazirmatn,system-ui,-apple-system,Segoe UI,sans-serif;display:flex}svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:22px;height:22px}.top{width:100%;max-width:1200px;margin:0 auto;padding:14px 24px 0}.top-actions{justify-content:flex-end;gap:8px;display:flex}.brand{text-align:center;margin-top:10px}.top h1{letter-spacing:-.01em;direction:ltr;align-items:center;gap:10px;margin:0;font-size:36px;font-weight:800;display:inline-flex}.logo{background:var(--accent);width:44px;height:44px;color:var(--accent-text);border-radius:13px;place-items:center;font-size:18px;display:inline-grid}.arrow{color:var(--accent)}.subtitle{color:var(--muted);max-width:560px;margin:6px auto 0;font-size:16px}.chip{font:inherit;border:1px solid var(--line);background:var(--panel);min-width:40px;height:40px;color:var(--text);cursor:pointer;border-radius:999px;justify-content:center;align-items:center;padding:0 14px;font-size:14px;font-weight:700;display:inline-flex}.chip.icon-only{width:40px;padding:0}.chip svg{width:20px;height:20px}.chip:hover{border-color:var(--accent)}.layout{flex:1;grid-template-columns:minmax(0,1fr) 360px;gap:24px;width:100%;max-width:1200px;margin:0 auto;padding:14px 24px 24px;display:grid}.drop{border:2px dashed var(--line);background:var(--panel);cursor:pointer;text-align:center;border-radius:20px;flex-direction:column;justify-content:center;align-items:center;gap:6px;height:min(64vh,684px);padding:24px;transition:border-color .15s,background .15s;display:flex}.drop strong{font-size:18px}.drop span{color:var(--muted)}.drop-icon{background:var(--accent-soft);width:64px;height:64px;color:var(--accent);border-radius:20px;place-items:center;margin-bottom:8px;display:grid}.drop-icon svg{width:30px;height:30px}.drop:hover,.drop.over{border-color:var(--accent);background:var(--accent-soft)}.preview{flex-direction:column;gap:12px;width:fit-content;max-width:100%;margin-inline:auto;display:flex}.viewport{background:var(--stage);border-radius:20px;width:auto;max-width:100%;height:min(50vh,540px);margin-inline:auto;position:relative;overflow:hidden}.scaler{transform-origin:0 0;direction:ltr;position:absolute;top:0;left:0}.scaler iframe{background:#fff;border:0;display:block}.region{pointer-events:none;outline:3px dashed var(--accent);outline-offset:-2px;position:absolute;box-shadow:0 0 0 100vmax #00000059}.toolbar{align-items:center;gap:10px;display:flex}.round{cursor:pointer;width:52px;height:52px;box-shadow:var(--shadow);border:0;border-radius:50%;flex:none;place-items:center;transition:transform .1s,filter .15s;display:grid}.round svg{width:24px;height:24px}.round:hover{filter:brightness(1.06)}.round:active,.pill:active,.primary:active{transform:scale(.96)}.play{background:var(--accent);color:var(--accent-text)}.play svg{fill:currentColor;stroke:none}.restart{background:var(--amber);color:var(--amber-text)}.restart svg{stroke-width:2.4px}.clock{font-variant-numeric:tabular-nums;color:var(--muted);background:var(--panel);border:1px solid var(--line);direction:ltr;border-radius:999px;padding:6px 12px;font-size:15px;font-weight:700}.pill{font:inherit;cursor:pointer;border:0;border-radius:999px;align-items:center;gap:8px;height:52px;padding:0 20px;font-weight:700;transition:transform .1s,filter .15s;display:inline-flex}.change{background:var(--violet-soft);color:var(--violet);margin-inline-start:auto}.change:hover{filter:brightness(1.1)}.pill.danger{background:var(--danger-soft);height:40px;color:var(--danger);padding:0 16px}.panel{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:20px;align-self:start;padding:18px}form{flex-direction:column;gap:14px;display:flex}.primary{font:inherit;cursor:pointer;background:var(--accent);height:56px;color:var(--accent-text);border:0;border-radius:16px;justify-content:center;align-items:center;gap:10px;font-size:17px;font-weight:800;text-decoration:none;transition:transform .1s,filter .15s;display:flex}.primary:hover{filter:brightness(1.06)}.primary:disabled{opacity:.45;cursor:not-allowed;filter:none}.advanced{border:1px solid var(--line);background:var(--field);border-radius:14px}.advanced summary{cursor:pointer;align-items:center;gap:10px;padding:12px 14px;font-weight:700;list-style:none;display:flex}.advanced summary::-webkit-details-marker{display:none}.advanced summary svg{width:20px;height:20px;color:var(--accent)}.advanced .chev{color:var(--muted);margin-inline-start:auto;transition:transform .2s}.advanced[open] .chev{transform:rotate(180deg)}.advanced-body{flex-direction:column;gap:16px;padding:4px 14px 16px;display:flex}fieldset{border:0;flex-direction:column;gap:10px;margin:0;padding:0;display:flex}legend{color:var(--muted);margin-bottom:8px;padding:0;font-size:13px;font-weight:800}label{color:var(--muted);flex-direction:column;flex:1;gap:4px;min-width:0;font-size:13px;display:flex}label.check{color:var(--text);flex-direction:row;align-items:center;gap:8px;font-size:14px}.row{gap:10px;display:flex}input[type=number],input[type=text],select{font:inherit;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:10px;width:100%;height:42px;padding:8px 10px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}:focus-visible,.drop:focus-within{outline:2px solid var(--accent);outline-offset:2px}.hint{color:var(--muted);margin:0;font-size:13px}.hint.small{font-size:12px}.progress{flex-direction:column;gap:10px;display:flex}.bar{background:var(--line);border-radius:5px;height:10px;overflow:hidden}.bar i{background:linear-gradient(90deg, var(--accent), var(--amber));width:0;height:100%;display:block}.progress-row{font-variant-numeric:tabular-nums;justify-content:space-between;align-items:center;gap:8px;font-size:14px;display:flex}.error{color:var(--danger);white-space:pre-wrap;margin:0;font-size:14px}.result{flex-direction:column;gap:10px;display:flex}.download{background:var(--violet);color:var(--violet-text)}.result .hint{text-align:center;direction:ltr}:root[dir=rtl] .result .hint{direction:rtl}.foot{text-align:center;color:var(--muted);padding:10px 16px 18px;font-size:14px}.foot a{color:var(--accent);direction:ltr;unicode-bidi:isolate;font-weight:700;text-decoration:none}.foot a:hover{text-decoration:underline}.render-host{visibility:hidden;pointer-events:none;position:fixed;top:0;left:-100000px}.render-host iframe{border:0}@media (width<=820px){.top{padding:10px 16px 0}.top-actions .chip{min-width:36px;height:36px;font-size:13px}.top-actions .chip.icon-only{width:36px}.brand{margin-top:4px}.top h1{font-size:30px}.logo{width:38px;height:38px;font-size:15px}.subtitle{padding:0 8px;font-size:14px;line-height:1.6}.layout{grid-template-columns:1fr;gap:12px;padding:10px 16px 12px}.viewport{border-radius:16px;height:max(220px,min(100svh - 500px,99.5556vw))}.drop{height:max(240px,100svh - 436px)}.round{width:48px;height:48px}.pill{height:48px;padding:0 16px}.panel{box-shadow:none;background:0 0;border:0;padding:0}.primary{height:54px}}
