:root{--paper:#f6f5f0;--ink:#202823;--muted:#7c817a;--line:#dcded6;--accent:#a56c43;--soft:#eceee7;--ui:'IBM Plex Sans Arabic',Tahoma,sans-serif;--ease:cubic-bezier(.2,.8,.2,1)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font:14px/1.7 var(--ui);background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;background:none;border:0}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button:disabled{cursor:wait;opacity:.45}button{transition:background .2s,color .2s,border-color .2s,box-shadow .2s}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}.defs{position:absolute;width:0;height:0;overflow:hidden}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.topbar{height:84px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:relative;z-index:10;background:var(--paper)}.brand{display:flex;align-items:center;gap:16px;text-decoration:none}.brand b{font:700 34px/1.4 Thmanyah Serif Text,serif}.brand small{font-size:9px;letter-spacing:.24em;direction:ltr;border-right:1px solid var(--line);padding-right:16px;color:var(--muted)}.top-center{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:12px;align-items:center;font-size:12px;color:var(--muted)}.status-dot{width:6px;height:6px;background:#6d8265;border-radius:50%;box-shadow:0 0 0 4px #6d826511}.top-actions{display:flex;align-items:center;gap:10px}.icon-btn{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:transparent}.icon-btn:hover{background:var(--soft)}.save-button{display:flex;align-items:center;gap:9px;padding:10px 16px;border:1px solid var(--line);border-radius:30px;font-size:12px}.save-button:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 340px;direction:ltr;height:calc(100svh - 84px)}.stage{position:relative;min-width:0;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#faf9f5,#dedfd7);direction:rtl;isolation:isolate}.stage canvas{width:100%;height:100%;display:block;touch-action:none;position:absolute;inset:0;z-index:1;cursor:grab}.stage canvas:active{cursor:grabbing}.stage-title{position:absolute;top:30px;right:36px;z-index:2;pointer-events:none;transition:opacity .5s}.eyebrow{font-size:10px;letter-spacing:.03em;color:var(--muted);display:flex;gap:9px;align-items:center}.eyebrow:before{content:'';height:1px;width:22px;background:var(--accent)}.stage-title h1{font-size:clamp(38px,4.2vw,66px);line-height:1.35;font-weight:500;margin:8px 0 0;letter-spacing:-.05em}.stage-title h1 span{font-size:12px;font-weight:400;letter-spacing:.06em;display:block;direction:ltr;text-align:right;margin-top:8px;color:#69736b}.stage-meta{position:absolute;left:30px;top:35px;z-index:2;display:flex;align-items:center;gap:8px;color:#737b73;font-size:11px;letter-spacing:0;direction:rtl;pointer-events:none}.stage-meta i{width:4px;height:4px;border-radius:50%;background:var(--accent)}.watermark{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);font-family:Arial,sans-serif;font-size:clamp(130px,23vw,370px);font-weight:700;line-height:1;letter-spacing:-.08em;color:#27342905;white-space:nowrap;pointer-events:none;z-index:0;direction:ltr}
.view-rail{position:absolute;z-index:3;left:24px;top:50%;transform:translateY(-50%);display:grid;gap:10px}.view-rail button{width:40px;height:40px;display:grid;place-items:center;border:1px solid #737e7228;border-radius:50%;background:#f1f3ebed}.view-rail button:hover,.view-rail button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}.view-rail button{position:relative}.view-rail button:after{content:attr(data-tip);position:absolute;left:50px;white-space:nowrap;padding:5px 10px;background:var(--ink);border-radius:6px;color:#fff;font-size:10px;opacity:0;pointer-events:none;transform:translateX(-4px);transition:.2s}.view-rail button:hover:after,.view-rail button:focus-visible:after{opacity:1;transform:none}
.stage-footer{position:absolute;bottom:24px;left:28px;right:28px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:18px;pointer-events:none}.stage-footer>*{pointer-events:auto}.scene-label{font-size:11px;line-height:1.8;min-width:100px}.scene-label b{font-weight:500;display:block}.scene-label span{font-size:10px;color:var(--muted)}.view-switch{padding:5px;background:#fafaf4dc;border:1px solid #ffffffb0;box-shadow:0 6px 25px #2832280c;border-radius:40px;display:flex;gap:4px;backdrop-filter:none}.view-switch button{border-radius:30px;min-height:42px;padding:9px 18px;font-size:12px;display:flex;gap:8px;align-items:center;white-space:nowrap}.view-switch button[aria-pressed=true]{background:var(--ink);color:#fff}.view-switch svg{width:17px;height:17px}.gesture{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:8px;white-space:nowrap}.gesture svg{width:18px;height:18px}.hint{position:absolute;bottom:96px;left:50%;transform:translateX(-50%);font-size:11px;padding:8px 16px;border-radius:30px;background:#f9f9f1d9;backdrop-filter:none;color:#626f62;z-index:2;white-space:nowrap;transition:opacity .6s;pointer-events:none}.hint.hidden{opacity:0}
.hotspot{position:absolute;z-index:3;width:28px;height:28px;padding:0;display:grid;place-items:center;border:1px solid #ffffffaa;border-radius:50%;background:#243127c9;color:#fff;box-shadow:0 0 0 5px #ffffff26;transform:translate(-50%,-50%);opacity:0;transition:opacity .2s}.hotspot.show{opacity:1}.hotspot svg{width:13px;height:13px}.hotspot:hover{box-shadow:0 0 0 8px #ffffff40}.hotspot[hidden]{display:none}.stage.interior .stage-title,.stage.interior .stage-meta{opacity:0}.stage.interior .gesture,.stage.interior .scene-label{color:#f0f2ec}.stage.night .stage-title,.stage.night .stage-meta,.stage.night .scene-label,.stage.night .gesture{color:#edf0e8}.stage.night .eyebrow,.stage.night .stage-title h1 span,.stage.night .scene-label span{color:#abb4a8}
.config{direction:rtl;background:var(--paper);border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0;z-index:5}.config-head{padding:27px 26px 18px;display:flex;align-items:center;justify-content:space-between}.config-head h2{margin:0;font-size:21px;font-weight:500;line-height:1.5}.config-head p{font-size:12px;color:var(--muted);margin:6px 0 0}.config-head .icon-btn{width:34px;height:34px}.config-head .icon{width:16px;height:16px}.config-scroll{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c7ccc0 transparent;min-height:0;flex:1;padding:0 26px 26px}.control-section{padding:24px 0;border-top:1px solid var(--line)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.section-title h3{font-size:14px;font-weight:500;line-height:1.8;margin:0}.section-title output,.section-title span{font-size:11px;color:var(--muted)}.swatches{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:2px}.swatch{width:32px;height:32px;flex:none;border-radius:50%;position:relative;background:var(--swatch);box-shadow:inset 0 0 0 1px #00000012,inset 0 4px 5px #ffffff18;border:3px solid var(--paper)}.swatch:after{content:'';position:absolute;inset:-5px;border:1px solid transparent;border-radius:50%;transition:border-color .25s}.swatch[aria-pressed=true]:after{border-color:var(--ink)}.swatch[aria-pressed=true]:before{content:'';position:absolute;inset:8px;border:1px solid #fff9;border-radius:50%;background:#fff4}.swatch:hover:after{border-color:#8b9588}.finish-row{display:grid;grid-template-columns:1fr 1fr;margin-top:20px;gap:8px}.choice{border:1px solid var(--line);border-radius:6px;min-height:38px;font-size:12px;padding:8px 12px;display:flex;align-items:center;justify-content:center;gap:8px}.choice[aria-pressed=true]{border-color:#8b9689;background:#e9ede5}.choice:hover{background:#edf0e8}.finish-dot{width:8px;height:8px;border-radius:50%;background:#667564}.finish-dot.satin{background:#a0a99b}.rim-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.rim-option{border:1px solid var(--line);border-radius:7px;padding:10px 4px 8px;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:11px}.rim-option[aria-pressed=true]{border-color:#85947f;background:#e9ede5}.rim-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;border:4px solid #303631;background:var(--rim);box-shadow:inset 0 0 0 1px #f5f7ef66}.rim-icon svg{width:27px;height:27px;stroke:#252d27;stroke-width:1.3;fill:none}.brakes{display:flex;align-items:center;justify-content:space-between;margin-top:22px}.brakes span{font-size:11px;color:var(--muted)}.brake-options{display:flex;gap:9px}.brake-options .swatch{width:24px;height:24px;border-width:2px}.brake-options .swatch:before{display:none}.brake-options .swatch:after{inset:-4px}.scene-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.scene-option{font-size:11px;display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;padding:10px 6px}.scene-option[aria-pressed=true]{border-color:#85947f;background:#e9ede5}.scene-option svg{width:19px;height:19px}.toggles{display:grid;gap:17px}.toggle-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:12px}.toggle-row>span{display:flex;align-items:center;gap:9px}.toggle-row svg{width:17px;height:17px;color:#7d897b}.toggle{width:34px;height:20px;padding:3px;border-radius:20px;background:#d8ddd2;position:relative;border:1px solid #cad1c4;flex:none}.toggle:before{content:'';width:12px;height:12px;position:absolute;top:3px;right:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .3s}.toggle[aria-checked=true]{background:var(--ink);border-color:var(--ink)}.toggle[aria-checked=true]:before{transform:translateX(-14px)}.config-bottom{padding:17px 26px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted)}.config-bottom button{font-size:10px;color:var(--muted);text-decoration:underline;text-underline-offset:4px}.config-bottom .dot{display:inline-block;width:4px;height:4px;border-radius:50%;background:#7e8f78;margin-left:6px}.mobile-config{display:none}.mobile-close{display:none}.scrim{display:none}
.loader{position:absolute;inset:0;z-index:20;background:#eeede8;display:grid;place-items:center;transition:opacity .7s,visibility .7s}.loader.done{opacity:0;visibility:hidden;pointer-events:none}.loader-box{width:220px;text-align:center}.loader-mark{font:700 48px/1.6 Thmanyah Serif Text,serif}.loader-box p{font-size:12px;color:var(--muted);margin:12px 0 20px}.loader-track{height:2px;background:#d2d8cc;overflow:hidden}.loader-track i{height:100%;display:block;background:var(--ink);width:0;transition:width .35s}.loader-box small{display:block;font-size:10px;color:var(--muted);margin-top:12px;direction:ltr}.loader-box button{margin-top:16px;border:1px solid var(--line);padding:8px 18px;border-radius:30px}.toast{position:fixed;z-index:60;left:50%;top:100px;transform:translate(-50%,-16px);padding:12px 22px;border-radius:40px;color:#fff;background:#243027ed;font-size:12px;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;text-align:center;max-width:calc(100% - 32px);box-shadow:0 12px 30px #0002}.toast.show{opacity:1;transform:translate(-50%,0)}
dialog{padding:30px;border:1px solid #dfe2d8;border-radius:16px;background:var(--paper);color:var(--ink);width:min(520px,calc(100% - 32px));max-height:85svh;overflow:auto;box-shadow:0 30px 100px #0003}dialog::backdrop{background:#15201877;backdrop-filter:blur(8px)}dialog h2{font-size:24px;line-height:1.5;margin:12px 0 16px;font-weight:500}dialog h3{font-size:14px;margin:24px 0 8px}dialog p,dialog li{font-size:13px;line-height:1.95;color:#727a70}dialog a{color:var(--accent);text-underline-offset:4px}dialog .close{float:left;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center}dialog ul{padding-right:20px}dialog .edition{padding-top:16px;border-top:1px solid var(--line);font-size:11px}
@media(min-width:761px) and (max-height:790px){.topbar{height:70px}.workspace{height:calc(100svh - 70px)}.config-head{padding-top:18px;padding-bottom:16px}.control-section{padding:18px 0}.config-scroll{padding-bottom:12px}.section-title{margin-bottom:12px}.stage-title{top:22px}.stage-title h1{font-size:48px}.config-bottom{padding-top:12px;padding-bottom:12px}}
@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 310px}.config-head{padding-inline:22px}.config-scroll{padding-inline:22px}.config-bottom{padding-inline:22px}.top-center{display:none}.stage-title{right:26px}.stage-meta{display:none}.scene-label{display:none}.stage-footer{justify-content:center;bottom:22px}.gesture{position:absolute;bottom:64px}.hint{bottom:120px}.stage-title h1{font-size:46px}}
@media(max-width:760px){
 .topbar{height:70px;padding:0 18px}.brand{gap:10px}.brand b{font-size:30px}.brand small{font-size:7px;padding-right:10px}.top-actions{gap:8px}.top-actions .icon-btn{width:35px;height:35px}.save-button{width:35px;height:35px;padding:0;justify-content:center;border-radius:50%}.save-button span{display:none}.top-actions svg{width:17px;height:17px}.workspace{height:calc(100svh - 70px);display:block}.stage{width:100%;height:100%}.stage-title{top:22px;right:22px}.stage-title h1{font-size:39px;margin-top:6px}.stage-title h1 span{font-size:10px;margin-top:4px}.eyebrow{font-size:9px}.stage-meta{display:flex;top:31px;left:22px;font-size:9px}.view-rail{left:16px;gap:8px;top:46%}.view-rail button{width:34px;height:34px}.view-rail .icon{width:16px;height:16px}.view-rail button:after{display:none}.stage-footer{bottom:82px;left:14px;right:14px}.view-switch{padding:4px}.view-switch button{font-size:11px;min-height:40px;padding:9px 15px;gap:6px}.gesture{bottom:64px;font-size:10px}.hint{bottom:176px;font-size:10px;padding:7px 12px}.watermark{font-size:42vw;top:43%}.mobile-config{position:absolute;z-index:4;left:18px;right:18px;bottom:20px;min-height:46px;border-radius:8px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;font-size:12px;box-shadow:0 8px 24px #1f2e2320}.mobile-config span{display:flex;gap:10px;align-items:center}.mobile-config small{font-size:10px;color:#c4cec0}.mobile-config .icon{width:17px;height:17px}.config{position:fixed;bottom:0;left:0;right:0;max-height:80svh;border-radius:20px 20px 0 0;border:1px solid #d4dacf;transform:translateY(105%);transition:transform .5s var(--ease);box-shadow:0 -20px 80px #1c291e24;z-index:30}.config.open{transform:none}.config-head{padding:20px 22px 18px}.config-head h2{font-size:20px}.config-head p{font-size:11px;margin-top:4px}.config-head:before{content:'';position:absolute;width:32px;height:3px;border-radius:10px;top:8px;left:50%;transform:translateX(-50%);background:#ccd2c6}.config-scroll{padding-inline:24px}.control-section{padding:22px 0}.swatches{justify-content:flex-start;gap:14px}.swatch{width:34px;height:34px}.config-bottom{padding:14px 24px}.mobile-close{display:grid}.config-head-actions{display:flex;gap:8px}.config-head .icon-btn{width:32px;height:32px}.scrim{display:block;position:fixed;inset:0;background:#15211855;z-index:29;opacity:0;pointer-events:none;transition:opacity .4s;backdrop-filter:blur(3px)}.scrim.show{opacity:1;pointer-events:auto}.toast{top:82px;font-size:11px}.hotspot{width:25px;height:25px}.stage.interior .stage-footer{bottom:82px}
}
@media(max-width:370px){.brand small{display:none}.stage-title h1{font-size:34px}.stage-meta{font-size:8px}.topbar{padding-inline:16px}.swatches{gap:11px}.swatch{width:32px;height:32px}.view-switch button{padding-inline:12px;font-size:10px}.gesture{font-size:9px}}
@media(max-width:760px) and (max-height:650px){.stage-title h1{font-size:30px}.stage-title{top:16px}.stage-meta{display:none}.stage-footer{bottom:72px}.mobile-config{bottom:14px;min-height:42px}.gesture,.hint{display:none}.view-rail{top:43%;gap:5px}.view-rail button{width:29px;height:29px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation:none!important}}

@media(min-width:761px) and (max-height:560px){.stage-title{top:16px}.stage-title h1{font-size:28px}.stage-title h1 span{font-size:9px}.stage-meta,.gesture,.scene-label{display:none}.view-rail{gap:5px}.view-rail button{width:28px;height:28px}.view-rail .icon{width:15px;height:15px}.stage-footer{bottom:12px}.view-switch button{min-height:32px;font-size:10px;padding:7px 12px}.hint{display:none}}
