/* A dedicated viewport inside each existing domain route. */
body.ap-editor-open{overflow-x:clip;overflow-y:auto}.ap-app.ap-app.ap-editor-screen{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}.ap-app.ap-app.ap-editor-screen :is(.kt-progress-panel,.wb-progress-panel,.ap-route-switch){display:none!important}
.ap-app.ap-app.ap-editor-screen .ap-appbar{flex-shrink:0;grid-template-columns:1fr auto!important;min-height:62px!important;padding:9px 20px!important}.ap-editor-screen .ap-appbar .ap-header-actions{gap:7px!important}
.ap-app.ap-app.ap-editor-screen :is(.kt-shell,.wb-ajax-shell){flex:1;min-height:0;display:block!important;width:100%!important;max-width:none!important;padding:0!important;margin:0!important}.ap-editor-screen :is(.ap-workspace,.wb-ajax-stage){height:100%;min-height:0}
.ap-app.ap-app.ap-editor-screen :is(.kt-panel[data-step="4"],.wb-step-panel[data-step="4"]){height:100%;min-height:0;display:flex!important;flex-direction:column;gap:8px;padding:12px 18px!important;border:0!important;border-radius:0!important;background:var(--ap-canvas)!important;overflow:hidden}
.ap-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;min-height:49px}.ap-editor-title small{display:block;color:var(--ap-muted);font-size:9px}.ap-editor-title h1{margin:0!important;font-size:20px!important;font-weight:600!important;line-height:1.5!important}.ap-editor-actions{display:flex;align-items:center;gap:8px}.ap-editor-actions button{min-height:40px;padding:8px 14px;border:1px solid var(--ap-line);border-radius:10px;background:var(--ap-surface);color:var(--ap-ink);font:inherit;font-size:11px;font-weight:500;cursor:pointer}.ap-editor-actions .ap-editor-save{background:var(--ap-navy);border-color:var(--ap-navy);color:#fff}.ap-editor-actions .ap-editor-photo{background:var(--ap-gold,#f4c85d);border-color:var(--ap-gold,#f4c85d);color:#14213e}.ap-editor-actions button:disabled{opacity:.5;cursor:default}.ap-editor-actions button:hover:not(:disabled){filter:brightness(.97)}.ap-editor-actions button:active:not(:disabled){transform:scale(.98)}
.ap-editor-screen .ap-workspace-status{flex-shrink:0;margin:0!important;padding:0 2px;color:var(--ap-muted);font-size:10px;line-height:1.7}.ap-editor-screen .ap-workspace-status[data-error="true"]{color:var(--ap-live-error,#b5473d)}.ap-editor-screen .ap-live-notice{flex-shrink:0;margin:0;padding:5px 10px;font-size:10px;line-height:1.7}
.ap-app.ap-app.ap-editor-screen :is(.kt-result-tabs-card,.wb-result-tabs-card){flex-shrink:0;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.ap-editor-screen :is(.kt-result-tabs-head,.wb-result-tabs-head){display:none!important}
.ap-app.ap-app.ap-editor-screen :is(.kt-result-tabs,.wb-result-tabs){display:flex!important;gap:4px!important;width:max-content;max-width:100%;padding:4px!important;border:1px solid var(--ap-line)!important;border-radius:12px!important;background:var(--ap-surface)!important}.ap-app.ap-app.ap-editor-screen :is(.kt-result-tab,.wb-result-tab){display:flex!important;gap:7px!important;min-width:0!important;width:auto!important;flex:0 0 auto;min-height:37px!important;padding:7px 14px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--ap-muted)!important;box-shadow:none!important}.ap-app.ap-app.ap-editor-screen :is(.kt-result-tab,.wb-result-tab).is-active{background:var(--ap-blue-soft)!important;color:var(--ap-blue)!important}.ap-editor-screen :is(.kt-result-tab,.wb-result-tab) :is(small,em){display:none!important}.ap-editor-screen :is(.kt-result-tab-text,.wb-result-tab__text) strong{font-size:11px!important}.ap-editor-screen :is(.kt-result-tab-icon,.wb-result-tab__icon){width:19px!important;height:19px!important;flex-basis:19px!important}
.ap-editor-screen :is(.kt-result-panels,.wb-result-tab-panels){flex:1;min-height:0;display:block!important}.ap-app.ap-app.ap-editor-screen :is(.kt-result-panel,.wb-result-panel){height:100%;min-height:0;margin:0!important;padding:16px!important;overflow:auto;border-radius:15px!important}.ap-app.ap-app.ap-editor-screen :is([data-result-pane="model"],[data-result-panel="model"]){padding:0!important;border:0!important;background:transparent!important;overflow:hidden}.ap-editor-screen :is([data-result-pane="model"],[data-result-panel="model"])>:is(.kt-result-panel-head,.wb-result-panel__head){display:none!important}
.ap-app.ap-app.ap-editor-screen :is(#kitchenModelResult,#ajaxModelBox){height:100%!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important;display:block!important}.ap-editor-screen :is(.kt-actions,.wb-ajax-bottom-actions,.ap-dl-all,#ajaxSaveAfterResultNote){display:none!important}.ap-editor-screen :is(.kt-result-box,.wb-result-box):not(:is(#kitchenModelResult,#ajaxModelBox)){min-height:220px!important;max-height:none!important}.ap-editor-screen :is(.kt-result-box,.wb-result-box) img{max-height:calc(100dvh - 330px);object-fit:contain}
.ap-editor-screen .ap-live-workspace{position:relative;height:100%;min-height:0;padding:0!important;grid-template-columns:300px minmax(0,1fr);gap:14px}.ap-editor-screen .ap-live-workspace>div{height:100%;min-height:0}.ap-editor-screen .ap-live-panel{position:static;top:auto;height:100%;min-height:0;box-shadow:none}.ap-editor-screen .ap-live-panel[open] .ap-live-form{height:var(--ap-live-form-size,calc(100dvh - 320px));max-height:none}.ap-editor-screen .ap-live-panel:not([open]){position:absolute;inset:auto 12px 12px auto;width:max-content;max-width:calc(100% - 24px);height:auto;z-index:4;box-shadow:0 5px 24px #14213e12}.ap-editor-screen .ap-live-panel:not([open]) .ap-live-heading{padding:10px 16px;gap:14px}.ap-editor-screen .ap-live-panel:not([open]) :is(.ap-live-heading small,.ap-live-badge){display:none}.ap-editor-screen .ap-live-panel:not([open]) .ap-live-heading strong{font-size:12px}.ap-editor-screen .ap-live-workspace:not(:has(.ap-live-panel[open])){display:block}
.ap-editor-screen .ap3d{position:relative;display:block;height:100%;min-height:0;isolation:isolate}.ap-editor-screen.ap-editor-screen .ap-live-workspace .ap3d-stage{height:100%!important;min-height:0!important;max-height:none!important;aspect-ratio:auto;border-radius:15px}.ap-editor-screen .ap3d>.ap3d-hint{display:none}.ap-editor-screen .ap3d:fullscreen{display:block}.ap-editor-screen .ap3d:fullscreen .ap3d-stage{height:100%!important}
.ap-scene-menu{position:absolute;z-index:3;max-width:calc(100% - 24px);font:inherit;color:var(--v-ink,var(--ap-ink));border:1px solid var(--v-line,var(--ap-line));border-radius:11px;background:var(--v-surface,var(--ap-surface));box-shadow:0 4px 18px #14213e0b}.ap-scene-menu>summary{padding:10px 13px;font-size:10px;line-height:1.6;cursor:pointer;list-style:none}.ap-scene-menu>summary::after{content:'⌄';margin-inline-start:12px}.ap-scene-menu[open]>summary{border-bottom:1px solid var(--ap-line)}.ap-scene-settings{top:12px;inset-inline-end:12px}.ap-scene-extras{bottom:12px;inset-inline-end:12px}.ap-scene-menu-body{width:min(400px,calc(100vw - 56px));max-height:50dvh;overflow:auto;padding:14px}.ap-scene-menu .ap3d-toolbar{flex-direction:column;align-items:start}.ap-scene-menu .ap3d-inspector{grid-template-columns:1fr;padding:0;border:0;background:transparent}.ap-scene-menu .ap3d-range-label{grid-column:1}.ap-scene-menu .ap3d-materials{margin:14px 0}.ap-scene-menu .ap3d-caption{display:none}.ap-scene-menu .ap3d-tools{display:grid;grid-template-columns:1fr 1fr}.ap-scene-tip{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);max-width:calc(100% - 380px);margin:0!important;padding:6px 10px;border-radius:8px;background:var(--v-surface,var(--ap-surface));color:var(--v-muted,var(--ap-muted));font-size:10px;pointer-events:none}
.ap-photo-again{min-height:38px;margin:12px 0;padding:7px 13px;border:1px solid var(--ap-line);border-radius:9px;background:var(--ap-soft);color:var(--ap-ink);font:inherit;font-size:11px;cursor:pointer}.ap-manufacturing-details{margin-top:16px}.ap-manufacturing-details>summary{cursor:pointer;padding:12px}
.ap-editor-screen[data-ap-theme="dark"] .ap-editor-save{background:var(--ap-blue);color:#14213e}
@media(max-width:1050px){.ap-editor-screen .ap-live-workspace{display:block}.ap-editor-screen .ap-live-panel[open]{position:fixed;height:auto;inset-inline:14px;inset-block-start:auto;inset-block-end:calc(14px + env(safe-area-inset-bottom,0px));z-index:90}.ap-editor-screen .ap-live-panel[open] .ap-live-form{height:auto;max-height:44dvh}.ap-editor-screen .ap-live-workspace:has(.ap-live-panel[open])>div{height:calc(100% - var(--ap-editor-sheet-size,calc(44dvh + 85px)))!important}.ap-editor-screen .ap-scene-tip{display:none}}
@media(max-width:700px){.ap-app.ap-app.ap-editor-screen .ap-appbar{min-height:52px!important;padding:7px 12px!important}.ap-editor-screen .ap-appbar .ap-header-link[data-ap-route="home"]{display:none!important}.ap-editor-screen .ap-editor-title{display:none}.ap-editor-toolbar{display:block;min-height:42px}.ap-editor-actions{display:grid;grid-template-columns:1fr 1.45fr 40px;gap:6px}.ap-editor-actions button{min-height:40px;padding:6px 8px;font-size:10px}.ap-editor-actions .ap-editor-back{padding:0;font-size:0}.ap-editor-back::before{content:'↶';font-size:20px}.ap-app.ap-app.ap-editor-screen :is(.kt-panel[data-step="4"],.wb-step-panel[data-step="4"]){padding:8px 10px!important;gap:7px}.ap-editor-screen .ap-workspace-status{font-size:9px;line-height:1.65}.ap-editor-screen .ap-live-notice{display:none!important}.ap-app.ap-app.ap-editor-screen :is(.kt-result-tabs,.wb-result-tabs){width:100%;justify-content:space-between}.ap-app.ap-app.ap-editor-screen :is(.kt-result-tab,.wb-result-tab){flex:1;justify-content:center;padding:7px!important}.ap-editor-screen :is(.kt-result-tab-icon,.wb-result-tab__icon){display:none!important}.ap-editor-screen .ap-scene-settings>summary{width:36px;height:36px;padding:0;font-size:0;display:grid;place-items:center}.ap-editor-screen .ap-scene-settings>summary::after{content:'☷';font-size:21px;margin:0}.ap-editor-screen .ap3d-views{max-width:calc(100% - 65px);gap:0}.ap-editor-screen .ap3d-views button{padding:6px 7px;font-size:9px}.ap-editor-screen .ap-scene-menu-body{max-height:45dvh}.ap-editor-screen .ap-live-fields{min-height:55px}.ap-editor-screen .ap-live-panel:not([open]){inset-inline-start:12px;inset-inline-end:auto}.ap-editor-screen .ap-live-panel:not([open]) .ap-live-heading{padding:10px 12px}}
@media(max-width:700px) and (max-height:700px){.ap-editor-screen .ap-live-panel[open] .ap-live-form{max-height:min(40dvh,calc(100dvh - 380px))}.ap-editor-screen .ap-live-panel[open] :is(.ap-live-feedback,.ap-live-actions){display:none}.ap-editor-screen .ap-live-panel[open] .ap-live-fields{min-height:45px}.ap-editor-screen .ap-live-panel .ap-live-intro{display:none}}
@media(max-width:1050px){.ap-app.ap-app.ap-editor-screen .ap-live-workspace:has(.ap-live-panel[open])>:is(#ajaxModelBox,#kitchenModelResult){height:calc(100% - var(--ap-editor-sheet-size,calc(44dvh + 85px)))!important}}

/* Let short laptop windows scroll, while the options keep their own visible rail. */
@media(min-width:1051px){.ap-app.ap-app.ap-editor-screen{height:max(100dvh,740px)}}
.ap-editor-screen .ap-live-fields{overflow-x:hidden;overflow-y:scroll;scrollbar-width:auto;scrollbar-gutter:stable;scrollbar-color:var(--ap-muted,#637089) var(--ap-soft,#f0f3f8)}
.ap-editor-screen .ap-live-fields::-webkit-scrollbar{width:10px}
.ap-editor-screen .ap-live-fields::-webkit-scrollbar-track{background:var(--ap-soft,#f0f3f8);border-radius:8px}
.ap-editor-screen .ap-live-fields::-webkit-scrollbar-thumb{min-height:36px;background:var(--ap-muted,#637089);border:2px solid var(--ap-soft,#f0f3f8);border-radius:8px}
.ap-editor-screen .ap-live-fields::-webkit-scrollbar-thumb:hover{background:var(--ap-ink,#17233c)}
@media(max-width:700px){.ap-app.ap-app.ap-editor-screen :is(.kt-result-tab-icon,.wb-result-tab__icon){display:none!important}.ap-editor-screen :is(.kt-result-tab-text,.wb-result-tab__text) strong{white-space:normal;text-wrap:balance}.ap-editor-screen .ap-live-fields{scrollbar-width:auto}}
.ap-editor-screen .ap-live-fields:focus-visible{outline:2px solid var(--ap-blue,#315bc3);outline-offset:-2px;border-radius:8px}

/* Dock the result tabs and primary actions in the existing app bar. The
   workspace restores their original DOM positions when leaving the editor. */
.ap-app.ap-app.ap-editor-screen .ap-appbar{display:flex!important;align-items:center!important;gap:12px!important;min-height:58px!important;padding:6px 18px!important;overflow:visible}
.ap-editor-screen .ap-appbar>:is(.wb-brand,.kt-brand){flex:0 0 auto}
.ap-editor-screen .ap-appbar>:is(.wb-brand,.kt-brand) small{display:none!important}
.ap-editor-screen .ap-appbar :is(.wb-brand-mark,.kt-brand-mark){width:36px!important;height:36px!important}
.ap-editor-screen .ap-editor-toolbar{display:none!important}
.ap-app.ap-app.ap-editor-screen .ap-appbar>:is(.kt-result-tabs-card,.wb-result-tabs-card){flex:0 1 auto;min-width:0;width:auto!important;max-width:100%}
.ap-app.ap-app.ap-editor-screen .ap-appbar :is(.kt-result-tabs,.wb-result-tabs){flex-wrap:nowrap!important;white-space:nowrap;max-width:none!important}
.ap-app.ap-app.ap-editor-screen .ap-appbar .ap-editor-actions{flex:0 1 auto;min-width:0;margin-inline-start:auto;gap:6px}
.ap-app.ap-app.ap-editor-screen .ap-appbar .ap-editor-actions button{min-height:36px;padding:6px 10px;white-space:nowrap;font-size:10px}
.ap-app.ap-app.ap-editor-screen .ap-appbar .ap-header-actions{flex:0 0 auto;gap:5px!important}
.ap-editor-screen .ap-workspace-status{min-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ap-editor-screen .ap-workspace-status[data-error="true"]{white-space:normal;overflow:visible}

/* A small tool rail stays on the canvas in normal and full-screen modes. */
.ap-editor-screen .ap-scene-toolrail{position:absolute;z-index:4;top:50%;inset-inline-end:12px;transform:translateY(-50%);display:grid;gap:5px;padding:5px;border:1px solid var(--v-line,var(--ap-line));border-radius:14px;background:var(--v-surface,var(--ap-surface));box-shadow:0 8px 26px #14213e1c}
.ap-editor-screen .ap-scene-toolrail button{display:grid;justify-items:center;align-content:center;gap:2px;width:54px;min-height:50px;padding:5px;border:0;border-radius:9px;background:transparent;color:var(--v-muted,var(--ap-muted));font-family:inherit;font-size:10px;font-weight:600;line-height:1.3;cursor:pointer}
.ap-editor-screen .ap-scene-toolrail button[aria-pressed="true"]{background:var(--v-accent,var(--ap-blue));color:#fff}
.ap-editor-screen .ap-scene-toolrail button:hover:not([aria-pressed="true"]){background:var(--v-active,var(--ap-blue-soft));color:var(--v-accent,var(--ap-blue))}
.ap-editor-screen .ap-scene-toolrail button:focus-visible{outline:2px solid var(--v-accent,var(--ap-blue));outline-offset:2px}
.ap-editor-screen .ap-scene-toolrail svg{width:21px;height:21px}
.ap-editor-screen .ap3d:fullscreen .ap-scene-toolrail{top:50%}

@media(max-width:1150px){
  .ap-editor-screen .ap-appbar>:is(.wb-brand,.kt-brand) span:last-child{display:none}
  .ap-app.ap-app.ap-editor-screen .ap-appbar{gap:8px!important;padding-inline:12px!important}
  .ap-app.ap-app.ap-editor-screen .ap-appbar :is(.kt-result-tab,.wb-result-tab){padding:6px 8px!important;min-height:34px!important}
  .ap-app.ap-app.ap-editor-screen .ap-appbar :is(.kt-result-tab-icon,.wb-result-tab__icon){display:none!important}
  .ap-app.ap-app.ap-editor-screen .ap-appbar .ap-header-actions :is(.ap-header-link,#restartFlow){width:36px!important;padding:5px!important}
  .ap-editor-screen .ap-appbar .ap-header-actions :is(.ap-header-link,#restartFlow) span{display:none}
}
@media(max-width:800px){
  .ap-app.ap-app.ap-editor-screen .ap-appbar{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-rows:auto auto;gap:5px 8px!important}
  .ap-editor-screen .ap-appbar>:is(.wb-brand,.kt-brand){grid-column:1;grid-row:1}
  .ap-app.ap-app.ap-editor-screen .ap-appbar>.ap-editor-actions{grid-column:2;grid-row:1;justify-content:flex-start;margin:0}
  .ap-app.ap-app.ap-editor-screen .ap-appbar>.ap-header-actions{grid-column:3;grid-row:1}
  .ap-app.ap-app.ap-editor-screen .ap-appbar>:is(.kt-result-tabs-card,.wb-result-tabs-card){grid-column:1/-1;grid-row:2;width:100%!important}
  .ap-app.ap-app.ap-editor-screen .ap-appbar :is(.kt-result-tabs,.wb-result-tabs){width:100%!important;justify-content:space-between}
  .ap-app.ap-app.ap-editor-screen .ap-appbar :is(.kt-result-tab,.wb-result-tab){flex:1 1 0;justify-content:center}
}
@media(max-width:700px){
  .ap-app.ap-app.ap-editor-screen .ap-appbar{min-height:0!important;padding:6px 9px!important;grid-template-columns:minmax(0,1fr) auto!important}
  .ap-editor-screen .ap-appbar>:is(.wb-brand,.kt-brand){display:none!important}
  .ap-app.ap-app.ap-editor-screen .ap-appbar>.ap-editor-actions{grid-column:1;grid-row:1;display:flex;gap:4px}
  .ap-app.ap-app.ap-editor-screen .ap-appbar>.ap-header-actions{grid-column:2;grid-row:1;gap:3px!important}
  .ap-app.ap-app.ap-editor-screen .ap-appbar .ap-editor-actions button{min-height:34px;padding:5px 7px;font-size:10px}
  .ap-app.ap-app.ap-editor-screen .ap-appbar .ap-editor-actions .ap-editor-photo{width:47px;padding:0;font-size:0}
  .ap-app.ap-app.ap-editor-screen .ap-editor-photo::before{content:'صورة';font-size:10px}
  .ap-app.ap-app.ap-editor-screen .ap-appbar .ap-editor-actions .ap-editor-back{width:34px;padding:0;font-size:0}
  .ap-app.ap-app.ap-editor-screen .ap-editor-back::before{font-size:19px}
  .ap-app.ap-app.ap-editor-screen .ap-appbar .ap-header-actions :is(.ap-header-link,#restartFlow,.ap-theme-toggle){width:32px!important;min-height:32px!important;padding:4px!important}
  .ap-app.ap-app.ap-editor-screen :is(.kt-panel[data-step="4"],.wb-step-panel[data-step="4"]){gap:4px;padding:6px 8px!important}
  .ap-app.ap-app.ap-editor-screen .ap-appbar :is(.kt-result-tab,.wb-result-tab){padding:5px 4px!important;min-height:32px!important}
  .ap-editor-screen .ap-scene-toolrail{inset-inline-end:8px;padding:4px}
  .ap-editor-screen .ap-scene-toolrail button{width:38px;min-height:42px;font-size:9px}
  .ap-editor-screen .ap-scene-toolrail svg{width:18px;height:18px}
  .ap-editor-screen .ap-workspace-status{font-size:9px}
}

/* A single setup surface before the editor, shared by both design routes. */
.ap-app.ap-app.ap-one-page-setup:not(.ap-editor-screen) :is(.kt-progress-panel,.wb-progress-panel){display:none!important}
.ap-app.ap-app.ap-one-page-setup:not(.ap-editor-screen) :is(.kt-shell,.wb-ajax-shell){display:block!important;width:min(1376px,100%)!important;max-width:1376px!important;margin:0 auto!important;padding:22px 24px 80px!important}
.ap-app.ap-app.ap-one-page-setup:not(.ap-editor-screen) :is(.ap-workspace,.wb-ajax-stage){display:block!important;width:100%;min-width:0;grid-column:auto!important;grid-row:auto!important}
.ap-one-page-setup:not(.ap-editor-screen) :is(.kt-step-head,.wb-step-head){margin-bottom:15px!important}
.ap-one-page-setup:not(.ap-editor-screen) :is(.kt-step-head,.wb-step-head) h2{font-size:clamp(21px,2.2vw,28px)!important}
.ap-app.ap-app.ap-one-page-setup:not(.ap-editor-screen) .ap-guided-layout{grid-template-columns:minmax(0,1fr) 218px!important;gap:14px!important;margin-bottom:16px}
.ap-app.ap-app.ap-one-page-setup .ap-guided-card{padding:18px!important}
.ap-one-page-setup .ap-question-screen+.ap-question-screen{margin-top:18px!important;padding-top:16px!important;border-top:1px solid var(--ap-line)!important}
.ap-app.ap-app.ap-one-page-setup .ap-question-screen .kt-section-head h3{margin:0 0 2px;font-size:15px!important;line-height:1.5}
.ap-app.ap-app.ap-one-page-setup .ap-question-screen .kt-section-head p{font-size:10px}
.ap-app.ap-app.ap-one-page-setup .ap-question-screen .kt-grid{gap:8px!important;margin:10px 0 0!important}
.ap-app.ap-app.ap-one-page-setup #layoutChoices{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.ap-app.ap-app.ap-one-page-setup [data-ap-question="1"] .kt-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.ap-app.ap-app.ap-one-page-setup .ap-question-screen .kt-choice{min-height:92px!important;gap:4px!important;padding:8px!important;align-items:center!important;text-align:center!important}
.ap-app.ap-app.ap-one-page-setup .ap-question-screen .kt-choice-icon{width:100%!important;height:48px!important;flex:0 0 48px;padding:4px!important}
.ap-app.ap-app.ap-one-page-setup .ap-question-screen .kt-choice strong{padding:0!important;font-size:11px!important;line-height:1.4}
.ap-app.ap-app.ap-one-page-setup .ap-question-screen .kt-choice>span:last-child{display:none!important}
.ap-app.ap-app.ap-one-page-setup .ap-question-screen .kt-fields{margin:10px 0 0!important;gap:10px}
.ap-one-page-setup .ap-selection-preview{top:76px!important;padding:14px!important}
.ap-one-page-setup .ap-preview-scene{min-height:112px;margin:-14px -14px 10px;padding:7px}
.ap-one-page-setup .ap-preview-scene img{height:96px}
.ap-one-page-setup .ap-selection-note{display:none}
.ap-one-page-setup .ap-quick-switch-control,.ap-one-page-setup .ap-quick-material-control{min-width:0}
.ap-one-page-setup .ap-quick-switch-control .kt-field select{display:none!important}
.ap-one-page-setup .ap-quick-switches,.ap-one-page-setup .ap-quick-material-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:8px}
.ap-one-page-setup .ap-quick-switches button,.ap-one-page-setup .ap-quick-material-tiles button{min-width:0;min-height:42px;padding:8px;border:1px solid var(--ap-line);border-radius:10px;background:var(--ap-surface);color:var(--ap-ink);font:inherit;font-size:11px;cursor:pointer}
.ap-one-page-setup .ap-quick-switches button[aria-pressed="true"],.ap-one-page-setup .ap-quick-material-tiles button[aria-pressed="true"]{border-color:var(--ap-blue);background:var(--ap-blue-soft);box-shadow:inset 0 0 0 1px var(--ap-blue)}
.ap-one-page-setup .ap-quick-switches button>span{display:inline-block;margin-inline-end:7px;color:var(--ap-blue);font-size:17px;vertical-align:middle}
.ap-one-page-setup .ap-quick-material-tiles button{display:flex;align-items:center;gap:7px;text-align:start}
.ap-one-page-setup .ap-quick-material-tiles strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:600}
.ap-one-page-setup .ap-quick-swatch{display:block;flex:0 0 26px;width:26px;height:26px;border:1px solid #14213e2e;border-radius:7px;box-shadow:inset 0 1px 4px #14213e14}
.ap-one-page-setup .ap-quick-details{margin:0 0 16px;border:1px solid var(--ap-line);border-radius:14px;background:var(--ap-surface);color:var(--ap-ink)}
.ap-one-page-setup .ap-quick-details>summary{padding:15px 18px;cursor:pointer;font-size:12px;font-weight:600;list-style-position:inside}
.ap-one-page-setup .ap-quick-details>summary small{margin-inline-start:8px;color:var(--ap-muted);font-size:10px;font-weight:400}
.ap-one-page-setup .ap-quick-details[open]>summary{border-bottom:1px solid var(--ap-line)}
.ap-one-page-setup .ap-quick-details>.kt-form-section,.ap-one-page-setup .ap-quick-details>.wb-form-section{margin:0!important;border:0!important;box-shadow:none!important}
.ap-one-page-setup .ap-quick-details>.wb-form-section{padding:18px!important}
.ap-one-page-setup .ap-quick-details>.wb-form-section+.wb-form-section{border-top:1px solid var(--ap-line)!important;border-radius:0!important}
.ap-one-page-setup :is(.ap-quick-choice,.ap-quick-switches button,.ap-quick-material-tiles button):focus-visible{outline:2px solid var(--ap-blue);outline-offset:2px}
.ap-app.ap-app.ap-one-page-setup:not(.ap-editor-screen) .wb-ajax-config-grid{grid-template-columns:minmax(0,1fr) 238px!important;gap:14px!important}
.ap-one-page-setup .ap-quick-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}
.ap-one-page-setup .ap-quick-choice-group{min-width:0;padding:14px;border:1px solid var(--ap-line);border-radius:14px;background:var(--ap-surface);box-shadow:var(--ap-shadow)}
.ap-one-page-setup .ap-quick-choice-group:first-child,.ap-one-page-setup .ap-quick-choice-group:last-child{grid-column:1/-1}
.ap-one-page-setup .ap-quick-choice-group h3{margin:0 0 9px;color:var(--ap-ink);font-size:12px;font-weight:600}
.ap-one-page-setup .ap-quick-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:7px}
.ap-one-page-setup .ap-quick-choice{position:relative;display:grid;justify-items:center;align-content:center;gap:4px;min-width:0;min-height:78px;padding:7px;border:1px solid var(--ap-line);border-radius:10px;background:var(--ap-surface);color:var(--ap-ink);font:inherit;cursor:pointer;text-align:center}
.ap-one-page-setup .ap-quick-choice:hover,.ap-one-page-setup :is(.ap-quick-switches button,.ap-quick-material-tiles button):hover{border-color:var(--ap-blue)}
.ap-one-page-setup .ap-quick-choice.is-selected{border-color:var(--ap-blue);background:var(--ap-blue-soft);box-shadow:inset 0 0 0 1px var(--ap-blue)}
.ap-one-page-setup .ap-quick-choice.is-selected::after{content:"✓";position:absolute;top:5px;inset-inline-end:5px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:var(--ap-blue);color:#fff;font-size:10px}
.ap-one-page-setup .ap-quick-choice :is(svg,img){width:62px;height:40px;object-fit:contain}
.ap-one-page-setup .ap-quick-choice .ap-quick-swatch{width:40px;height:40px;border-radius:9px}
.ap-one-page-setup .ap-quick-choice strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:10px;font-weight:600;line-height:1.5}
.ap-one-page-setup .ap-quick-feedback{margin:0 0 12px;padding:12px;border-radius:10px;background:#fce9e7;color:#9a302c;font-size:12px}
.ap-one-page-setup .ap-quick-feedback[hidden]{display:none}
.ap-one-page-setup #ajaxConfigureForm>.wb-form-section{margin-bottom:12px!important;padding:19px!important}
.ap-one-page-setup .wb-pattern-hero:has(img[hidden]){grid-template-columns:minmax(0,1fr)!important}
.ap-one-page-setup .wb-sidebar-figure:has(img[hidden]){display:none!important}
.ap-one-page-setup .wb-ajax-side{top:76px!important}
.ap-one-page-setup #ajaxConfigureForm>.ea-hero__actions{position:sticky;bottom:12px;z-index:6;display:flex;justify-content:flex-start;margin:14px 0;padding:10px;border:1px solid var(--ap-line);border-radius:13px;background:var(--ap-surface);box-shadow:0 5px 24px #14213e13}

@media(max-width:980px){
  .ap-app.ap-app.ap-one-page-setup:not(.ap-editor-screen) .ap-guided-layout{grid-template-columns:minmax(0,1fr)!important}
  .ap-one-page-setup .ap-selection-preview{display:none!important}
  .ap-app.ap-app.ap-one-page-setup:not(.ap-editor-screen) .wb-ajax-config-grid{grid-template-columns:minmax(0,1fr)!important}
  .ap-one-page-setup .wb-ajax-side{position:static!important;top:auto!important;order:-1}
}
@media(max-width:650px){
  .ap-app.ap-app.ap-one-page-setup:not(.ap-editor-screen) :is(.kt-shell,.wb-ajax-shell){padding:14px 12px 80px!important}
  .ap-app.ap-app.ap-one-page-setup .ap-guided-card{padding:13px!important}
  .ap-app.ap-app.ap-one-page-setup #layoutChoices{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .ap-app.ap-app.ap-one-page-setup .ap-question-screen .kt-choice{min-height:80px!important}
  .ap-app.ap-app.ap-one-page-setup .ap-question-screen .kt-choice-icon{height:38px!important;flex-basis:38px;padding:0!important}
  .ap-one-page-setup .ap-quick-choices{grid-template-columns:minmax(0,1fr);gap:9px}
  .ap-one-page-setup .ap-quick-choice-group:first-child,.ap-one-page-setup .ap-quick-choice-group:last-child{grid-column:auto}
  .ap-one-page-setup .ap-quick-choice-group{padding:11px}
  .ap-one-page-setup .ap-quick-choice-grid{grid-template-columns:repeat(auto-fit,minmax(88px,1fr))}
  .ap-one-page-setup .ap-quick-choice{min-height:70px}
  .ap-one-page-setup #ajaxConfigureForm>.wb-form-section{padding:14px!important}
}

/* Visible cost allocation beside each setup question and a reconciled total. */
.ap-one-page-setup .ap-section-price{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px 0 0!important;padding:10px 0 0;border-top:1px solid var(--ap-line);color:var(--ap-muted);font-size:11px;line-height:1.6}
.ap-one-page-setup .ap-section-price strong{flex:0 0 auto;color:var(--ap-blue);font-size:12px;font-weight:700;white-space:nowrap}
.ap-one-page-setup .ap-quick-choice-group .ap-section-price{margin-top:10px!important}
.ap-one-page-setup .ap-quick-details>summary .ap-details-price{display:inline-block;margin-inline-start:12px;color:var(--ap-blue);font-size:12px;white-space:nowrap}
.ap-one-page-setup .ap-final-price{margin:14px 0 6px;padding:16px 20px;border:1px solid var(--ap-line);border-radius:16px;background:var(--ap-surface);box-shadow:var(--ap-shadow);color:var(--ap-ink)}
.ap-one-page-setup .ap-final-price-row,.ap-one-page-setup .ap-final-price-total{display:flex;align-items:center;justify-content:space-between;gap:14px}
.ap-one-page-setup .ap-final-price-row{color:var(--ap-muted);font-size:11px}
.ap-one-page-setup .ap-final-price-row strong{color:var(--ap-ink);font-size:12px}
.ap-one-page-setup .ap-final-price-total{margin-top:11px;padding-top:11px;border-top:1px solid var(--ap-line);font-size:15px;font-weight:700}
.ap-one-page-setup .ap-final-price-total strong{color:var(--ap-blue);font-size:clamp(18px,2vw,24px);white-space:nowrap}
.ap-one-page-setup .ap-final-price.is-error .ap-final-price-total strong{max-width:60%;color:var(--ap-live-error,#b5473d);font-size:12px;line-height:1.6;text-align:end;white-space:normal}
.ap-one-page-setup .ap-final-price>p{margin:8px 0 0;color:var(--ap-muted);font-size:10px;line-height:1.7}
@media(max-width:650px){.ap-one-page-setup .ap-final-price{padding:14px}.ap-one-page-setup .ap-final-price-total{font-size:13px}.ap-one-page-setup .ap-final-price-total strong{font-size:17px}}

/* ---- The 3D view takes the screen; the design panel is a floating, foldable, resizable glass card ---- */
.ap-split{display:none}
@media (min-width:1051px){
  .ap-editor-screen .ap-live-workspace{grid-template-columns:var(--ap-panel-w,340px) minmax(0,1fr);gap:0;position:relative}
  .ap-editor-screen .ap-live-workspace:has(> .ap-live-panel:not([open])){grid-template-columns:0 minmax(0,1fr)}
  .ap-editor-screen .ap-live-panel[open]{margin-inline-end:12px;border-radius:18px;background:rgba(255,255,255,.93);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 18px 50px rgba(10,20,40,.16);border:1px solid rgba(20,40,80,.08)}
  .ap-editor-screen .ap-live-panel:not([open]){inset:14px 14px auto auto;border-radius:999px}
  .ap-editor-screen .ap-live-workspace>[class*="result-box--model"]{border-radius:18px;overflow:hidden}
  .ap-split{display:block;position:absolute;inset-block:0;inset-inline-start:calc(var(--ap-panel-w,340px) + 6px);width:12px;margin-inline-start:-6px;cursor:col-resize;z-index:6;touch-action:none;outline:none}
  .ap-split::after{content:"";position:absolute;inset-block:42%;inset-inline-start:5px;width:3px;border-radius:3px;background:rgba(43,68,121,.35);transition:background .15s,inset-block .15s}
  .ap-split:hover::after,.ap-split:focus-visible::after,.ap-split.is-dragging::after{background:#2e59bb;inset-block:32%}
  .ap-live-workspace:has(> .ap-live-panel:not([open])) .ap-split{display:none}
  .ap-resizing,.ap-resizing *{cursor:col-resize!important;user-select:none!important}
  .ap-resizing canvas{pointer-events:none}
  /* One save button (in the top bar, reachable even when the panel is folded) and no hint line. */
  .ap-editor-screen [data-live-save]{display:none!important}
  [data-workspace-status][data-error="false"]{display:none}
}
/* A calmer top bar: the AI tools share one menu, with the free-designs note inside it. */
.ap-editor-actions{gap:.45rem;align-items:center}
.ap-editor-actions>.ap-quota-note{display:none}
.ap-ai-menu{position:relative}
.ap-ai-menu__toggle{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:.35rem;padding:.48rem .95rem;border-radius:999px;background:linear-gradient(135deg,#f7cb5c,#efa93a);color:#1d1606;font-weight:700;font-size:.88rem;white-space:nowrap;box-shadow:0 6px 16px rgba(239,169,58,.28)}
.ap-ai-menu__toggle::-webkit-details-marker{display:none}
.ap-ai-menu__toggle:focus-visible{outline:2px solid #2e59bb;outline-offset:2px}
.ap-ai-menu__body{position:absolute;inset-block-start:calc(100% + 8px);inset-inline-start:0;z-index:60;display:grid;gap:.45rem;min-width:270px;padding:.65rem;border-radius:16px;background:#fff;box-shadow:0 18px 44px rgba(10,20,40,.22);border:1px solid rgba(20,40,80,.08)}
.ap-ai-menu__body .ap-editor-photo{width:100%;justify-content:center}
.ap-ai-menu__body .ap-quota-note{margin:.1rem .2rem 0;line-height:1.6}
[data-ap-theme="dark"] .ap-ai-menu__body{background:#16233f;border-color:rgba(255,255,255,.08)}
/* A slimmer company bar. */
.ap-store-picker-wrap .ap-sp{margin:.4rem auto;padding:.28rem .6rem;border-radius:12px}
.ap-store-picker-wrap .ap-sp__input{padding:.36rem .6rem}
/* The AI menu opens below the top bar, over the company bar: the bar must sit above it (1200), under the materials panel (1300). */
.ap-app.ap-app :is(.wb-ajax-header,.kt-top,.ap-appbar).ap-appbar{z-index:1250}

/* ---- «صممها بطريقتك»: the room goes to the options, the controls become small icons ---- */
.ap-live-panel{container-type:inline-size}
.ap-live-panel .ap-live-intro,.ap-live-panel .ap-live-field-title.is-dup,.ap-live-panel [data-live-status].is-quiet,.ap-live-panel .ap-live-actions.is-empty{display:none!important}
.ap-live-panel .ap-live-heading small{display:none}
.ap-live-panel .ap-live-heading{padding-block:.55rem;min-height:0}
.ap-live-panel .ap-live-heading strong{font-size:1.02rem}
.ap-live-panel .ap-live-tabs{padding:.35rem .5rem;gap:.25rem;min-height:0}
.ap-live-panel .ap-live-tab{flex-direction:row;min-height:0;height:34px;padding:.25rem .45rem;gap:.3rem;font-size:.78rem;border-radius:10px;white-space:nowrap}
.ap-live-panel .ap-live-tab svg{width:16px;height:16px;flex:none}
@container (max-width:310px){.ap-live-panel .ap-live-tab span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
.ap-live-panel fieldset>legend{font-size:.95rem;margin-bottom:.3rem}
.ap-live-panel .ap-live-feedback{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;padding:.45rem .75rem}
.ap-live-panel .ap-live-feedback [data-live-price]{margin:0;flex:1 1 0;min-width:0;font-size:.8rem;line-height:1.5}
.ap-live-panel .ap-live-feedback [data-live-status]{flex-basis:100%;margin:0}
.ap-live-panel .ap-live-feedback [data-live-badge]{display:none}
.ap-live-panel .ap-live-feedback [data-live-revert]{width:30px;height:30px;padding:0;display:inline-grid;place-items:center;border-radius:9px;flex:none}
.ap-live-panel .ap-live-feedback [data-live-revert] span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Undo and redo are two small icons at every size: in the heading row on desktop, a slim row on phones. */
.ap-live-panel .ap-live-history{justify-content:flex-end;gap:.15rem;padding:0 .6rem;margin-block:.1rem;min-height:0;background:none;border:0;box-shadow:none}
.ap-live-panel .ap-live-history button{flex:0 0 32px;width:32px;min-width:0;height:32px;min-height:0;padding:0;display:grid;place-items:center;border-radius:9px}
.ap-live-panel .ap-live-history button span,.ap-live-panel [data-live-history]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (min-width:1051px){
  .ap-editor-screen .ap-live-panel[open]{position:relative}
  /* Undo and redo sit in the heading row as two small icons. */
  .ap-editor-screen .ap-live-panel .ap-live-history{position:absolute;inset-block-start:.5rem;inset-inline-end:2.5rem;display:flex;gap:.15rem;margin:0;padding:0;border:0;background:none;box-shadow:none;min-height:0;height:auto;z-index:2}
}
