/* Desktop keeps the original Studio interface. */
.asm-panel-head,.asm-more-add,.asm-more-edit,.asm-upload,.asm-image-back,.asm-next,.asm-model-hint,.asm-dock,.asm-project-menu,.asm-project-button,.asm-review-top,.asm-edit-nav,.asm-progress,.asm-guide-title{display:none}
@media(max-width:760px),(max-width:1100px) and (max-height:550px) and (orientation:landscape){
  /* Reserve real space for the tools. They never cover the product preview. */
  .asm-mobile-ui.as-phone-drawer:not(.as-reviewing) .as-workspace{display:flex!important;flex-direction:column;min-height:0;overflow:hidden}
  .asm-mobile-ui.as-phone-drawer:not(.as-reviewing) .as-stage{flex:1 1 0;min-height:0!important;min-width:0;width:100%;padding:8px 10px!important;box-sizing:border-box;overflow:hidden}
  .asm-mobile-ui.as-phone-drawer:not(.as-reviewing) .as-canvas-wrap{flex:1 1 0;min-height:0;max-height:calc(100% - 44px)!important;max-width:100%;width:100%;aspect-ratio:auto}
  .asm-mobile-ui.as-phone-drawer:not(.as-reviewing) .as-panel{position:relative!important;inset:auto!important;flex:0 0 auto;width:100%;max-width:none!important;height:auto;min-height:0!important;grid-area:auto!important;box-sizing:border-box}
  .asm-mobile-ui.as-phone-drawer.as-drawer-open:not(.as-reviewing) .as-panel{flex:0 0 43%;height:43%!important;max-height:340px!important;min-height:0!important;border-radius:18px 18px 0 0;box-shadow:0 -3px 16px #34255612;overflow:hidden;transform:none!important}
  .asm-mobile-ui.as-phone-drawer.as-drawer-open.as-typing:not(.as-reviewing) .as-panel{flex-basis:46%;height:46%!important;max-height:340px!important}
  .asm-mobile-ui.as-phone-drawer .as-editor-side,.asm-mobile-ui.as-phone-drawer .as-project-pane,.asm-mobile-ui.as-phone-drawer .as-layers-pane{padding:12px 16px 20px!important;scroll-padding:12px;overscroll-behavior:contain}
  .asm-mobile-ui.as-phone-drawer.as-drawer-open .as-editor-tabs,.asm-mobile-ui.as-phone-drawer .as-drawer-back,.asm-mobile-ui.as-phone-drawer .as-mobile-space{display:none!important}
  .asm-mobile-ui.as-phone-drawer.as-drawer-open .asm-panel-head{display:flex;order:-3;flex:0 0 auto;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px 6px 16px;border-bottom:1px solid #ece7f2;background:#fff}
  .asm-panel-head strong{font:700 15px/1.2 Arial,sans-serif;color:#29203a}
  .asm-mobile-ui .asm-panel-head button{min-height:44px;border:0!important;background:#f1edfc!important;color:#5039ac!important;font-size:13px!important;padding:8px 12px!important;border-radius:10px}
  .asm-mobile-ui .as-editor-tabs button{min-height:52px!important;font-size:14px!important}
  .asm-mobile-ui .as-editor-tabs button:disabled{opacity:.38}
  .asm-mobile-ui .as-element-heading,.asm-mobile-ui .as-project-pane>header,.asm-mobile-ui .as-layers-pane>header{display:none!important}
  .asm-mobile-ui .as-stage-caption,.asm-mobile-ui .as-zoom [data-action="pan"],.asm-mobile-ui .as-zoom [data-action="zoom-reset"]{display:none!important}
  .asm-mobile-ui .as-zoom{flex:0 0 44px;min-height:44px;gap:4px;padding:0!important;margin:0!important;justify-content:center;flex-wrap:nowrap}
  .asm-mobile-ui .as-zoom button{min-height:42px!important;padding:6px 12px!important;font-size:12px!important}
  .asm-mobile-ui .as-bottom{min-height:64px!important;padding:8px 12px max(8px,env(safe-area-inset-bottom))!important;gap:8px}
  .asm-mobile-ui .as-bottom .as-review{min-height:48px!important;font-size:14px!important;line-height:1.2}
  .asm-mobile-ui.as-reviewing .as-multi-tools{display:none!important}
  .asm-mobile-ui.as-drawer-open:not(.as-reviewing) .as-bottom{display:none!important}
  .asm-mobile-ui.as-drawer-open:not(.as-reviewing) .as-shell{grid-template-rows:54px minmax(0,1fr)!important}
  .asm-mobile-ui .as-project-pane .as-add-tools{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .asm-mobile-ui .as-project-pane .as-add-tools button{min-height:70px!important;padding:10px!important}
  .asm-mobile-ui .asm-more-add,.asm-mobile-ui .asm-more-edit{display:block;width:100%;min-height:44px;margin:10px 0 0;border:1px solid #dfd8ec;background:#faf8ff;color:#493764;font-size:14px;border-radius:10px}
  .asm-mobile-ui:not(.asm-add-options) .as-add-tools .as-shape-add,.asm-mobile-ui:not(.asm-add-options) .as-add-tools .as-qr-add,
  .asm-mobile-ui:not(.asm-add-options) .as-project-pane>.as-model-entry,.asm-mobile-ui:not(.asm-add-options) .as-project-pane>.as-orientation,.asm-mobile-ui:not(.asm-add-options) .as-project-pane>details{display:none!important}
  .asm-mobile-ui:not(.asm-image-menu) .as-project-pane>.as-library-entry,.asm-mobile-ui:not(.asm-image-menu) .as-project-pane>.ag-launch{display:none!important}
  .asm-mobile-ui.asm-image-menu .as-project-pane{display:flex!important;flex-direction:column;gap:8px}
  .asm-mobile-ui.asm-image-menu .as-project-pane>:not(.as-library-entry):not(.ag-launch){display:none!important}
  .asm-mobile-ui.asm-image-menu .as-project-pane>.as-library-entry{order:1;flex:none}
  .asm-mobile-ui.asm-image-menu .as-project-pane>.ag-launch{order:2;flex:none}
  .asm-mobile-ui .as-library-entry .asm-upload,.asm-mobile-ui .as-library-entry .asm-image-back{display:block;width:100%;min-height:48px;font-size:14px}
  .asm-mobile-ui .as-library-entry .asm-upload{background:#5133ed;color:#fff;border-color:#5133ed}
  .asm-mobile-ui .as-library-entry .asm-image-back{border:0;background:none;text-align:left;min-height:38px;padding:0;color:#5c4a77}
  .asm-mobile-ui:not(.asm-edit-options) .asm-secondary{display:none!important}
  .asm-mobile-ui .as-text{min-height:68px!important;height:68px;resize:vertical;font-size:16px!important}
  .asm-mobile-ui .as-properties>label.as-text-control{margin-top:0}
  .asm-mobile-ui .as-font-help,.asm-mobile-ui .as-text-control>small,.asm-mobile-ui .as-grid .as-color-label .as-color-hint{display:none}
  .asm-mobile-ui .as-properties>.as-grid{gap:10px}
  .asm-mobile-ui input[type="text"],.asm-mobile-ui textarea,.asm-mobile-ui select{font-size:16px}

  /* Guided creation: one clear next step, with an unobstructed preview. */
  .asm-guided-ui.ast-phone.ast-stepping>header{min-height:54px;padding:4px 12px;gap:8px}
  .asm-guided-ui.ast-phone.ast-stepping>header .ast-help-button{font-size:13px;min-height:44px}
  .asm-guided-ui.ast-phone.ast-stepping .ast-phone-hint{display:none!important}
  .asm-guided-ui.ast-phone .ast-visual>p:not(.asm-model-hint),.asm-guided-ui.ast-phone.ast-phone-cropping .asm-model-hint{display:none!important}
  .asm-guided-ui.ast-phone.ast-stepping:not(.ast-phone-field-open) .asm-model-hint{display:block;margin:0;padding:8px 16px;font:13px/1.4 Arial,sans-serif;text-align:center;background:#fff;color:#665b75;flex:0 0 auto}
  .asm-guided-ui.ast-phone.ast-stepping.asm-has-steps>footer>.asm-native-finish{display:none!important}
  .asm-guided-ui.ast-phone.ast-stepping.asm-has-steps>footer>.asm-next{display:block!important;flex:1.25;min-height:48px}
  .asm-guided-ui.ast-phone.ast-stepping .ast-phone-zone,.asm-guided-ui.ast-phone.ast-stepping .ast-phone-leader-halo,.asm-guided-ui.ast-phone.ast-stepping .ast-phone-leader,.asm-guided-ui.ast-phone.ast-stepping .ast-phone-anchor{opacity:.25}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-body{display:flex!important;flex-direction:column!important;min-height:0;overflow:hidden}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-visual{flex:1 1 0!important;min-height:0!important;height:auto!important;overflow:hidden}
  /* The field alone scrolls. Validation buttons occupy their own grid row, so
     they cannot paint over an input when the iPhone keyboard reduces the height. */
  .asm-guided-ui.ast-phone.ast-phone-field-open:not(.ast-phone-cropping) .ast-fields{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto;position:relative!important;inset:auto!important;flex:0 0 min(340px,48%);width:calc(100% - 16px)!important;max-width:none!important;height:min(340px,48%);min-height:0!important;max-height:none!important;margin:4px 8px 8px;padding:10px 12px 8px!important;box-sizing:border-box;box-shadow:0 -2px 16px #34255612;border-radius:16px;overflow:hidden!important}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-preview-viewport{height:100%!important;min-height:0!important}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-phone-editor-head h3{font-size:16px}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-phone-editor-head{grid-row:1;padding:0 6px 4px}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-phone-editor-actions{grid-row:4;position:static!important;inset:auto!important;align-self:end;margin:0;padding:8px 0 0;z-index:auto}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-phone-editor-actions button{min-height:44px;padding:8px 12px;line-height:1.3}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-phone-error{grid-row:3;margin:4px 0;font-size:12px;line-height:1.3}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-phone-error:empty{display:none}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-fields .ast-field{grid-row:2;min-width:0;min-height:0;margin:0;padding:4px 6px 8px;overflow:auto;overscroll-behavior:contain;scroll-padding:6px}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-fields input[type=text],.asm-guided-ui.ast-phone.ast-phone-field-open .ast-fields input[type=url]{min-height:48px;height:48px;padding:10px;font-size:16px;line-height:1.4}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-fields .ast-field>small{font-size:11px}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-phone-color{margin:4px 0}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-phone-color>summary{padding:10px 0;min-height:44px;box-sizing:border-box}
  .asm-guided-ui.ast-phone.ast-phone-field-open.asm-short-viewport:not(.ast-phone-cropping) .ast-fields{flex-basis:clamp(168px,52%,210px);height:clamp(168px,52%,210px);padding:6px 10px 8px!important}
  .asm-guided-ui.ast-phone.ast-phone-field-open.asm-short-viewport:not(.ast-phone-cropping) .ast-fields:has(>.ast-phone-error:not(:empty)){flex-basis:clamp(190px,60%,250px);height:clamp(190px,60%,250px)}
  .asm-guided-ui.ast-phone.ast-phone-field-open.asm-short-viewport .ast-phone-editor-head{display:none!important}
  .asm-guided-ui.ast-phone.ast-phone-field-open.asm-short-viewport .ast-field>small{display:none}
  .asm-mobile-ui.as-phone-drawer.as-drawer-open.as-typing.asm-short-viewport:not(.as-reviewing) .as-panel{flex-basis:52%;height:52%!important;max-height:240px!important}
  .asm-mobile-ui.as-phone-drawer.as-typing:not(.as-reviewing) .as-canvas-wrap{max-height:100%!important}
  .asm-mobile-ui.as-phone-drawer.as-drawer-open.asm-short-viewport .asm-panel-head{padding-top:2px;padding-bottom:2px}
}
@media(max-width:1100px) and (max-height:550px) and (orientation:landscape){
  .asm-mobile-ui.as-phone-drawer.as-drawer-open:not(.as-reviewing) .as-workspace{flex-direction:row}
  .asm-mobile-ui.as-phone-drawer.as-drawer-open:not(.as-reviewing) .as-panel{flex:0 0 42%;width:42%;height:100%!important;max-height:100%!important;border-radius:16px 0 0 16px}
  .asm-mobile-ui.as-phone-drawer.as-drawer-open:not(.as-reviewing) .as-stage{width:58%}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-body{flex-direction:row!important}
  .asm-guided-ui.ast-phone.ast-phone-field-open:not(.ast-phone-cropping) .ast-fields,.asm-guided-ui.ast-phone.ast-phone-field-open.asm-short-viewport:not(.ast-phone-cropping) .ast-fields,.asm-guided-ui.ast-phone.ast-phone-field-open.asm-short-viewport:not(.ast-phone-cropping) .ast-fields:has(>.ast-phone-error:not(:empty)){flex:0 0 44%;width:44%!important;height:calc(100% - 12px);max-height:calc(100% - 12px)!important}
  .asm-guided-ui.ast-phone.ast-stepping .asm-model-hint{display:none!important}
  .asm-guided-ui.ast-phone.ast-phone-cropping .ast-phone-cropbar{flex-wrap:nowrap;padding:6px 12px}
  .asm-guided-ui.ast-phone.ast-phone-cropping .ast-phone-cropbar p{flex:1;margin:0;font-size:12px}
  .asm-guided-ui.ast-phone.ast-phone-cropping .ast-phone-cropbar button:last-child{flex:0 1 auto}
}

/* Mobile workbench: direct additions, contextual tools, one project menu. */
@media(max-width:760px),(max-width:1100px) and (max-height:550px) and (orientation:landscape){
  .asm-mobile-ui.as-phone-drawer:not(.as-reviewing) .as-shell,
  .asm-mobile-ui.as-phone-drawer.as-drawer-open:not(.as-reviewing) .as-shell{grid-template-rows:54px minmax(0,1fr) auto!important}
  .asm-mobile-ui:not(.as-reviewing) .as-bottom{display:none!important}
  .asm-mobile-ui .as-topbar{gap:4px!important;padding:0 8px!important}
  .asm-mobile-ui .as-topbar>.as-save-top,.asm-mobile-ui .as-topbar>.as-tour-launch{display:none!important}
  .asm-mobile-ui .as-topbar .as-brand{font-size:18px;flex:1;min-width:0}
  .asm-mobile-ui .as-project-history{margin:0!important;gap:2px}
  .asm-mobile-ui .as-project-history button,.asm-mobile-ui .as-close{width:36px!important;min-width:36px!important;height:44px!important}
  .asm-mobile-ui .asm-project-button{display:block!important;background:transparent!important;border:0!important;padding:6px!important;min-width:40px;min-height:44px;font-size:21px!important;color:#37284d!important}
  .asm-mobile-ui .asm-review-top{display:block;background:#5133ed!important;color:white!important;border:0!important;border-radius:10px!important;min-height:42px;padding:8px 10px!important;font-size:13px!important;white-space:nowrap}
  .asm-mobile-ui.as-reviewing .asm-review-top,.asm-mobile-ui.as-reviewing .asm-project-button{display:none!important}
  .asm-mobile-ui .asm-dock{display:flex;gap:2px;align-items:stretch;padding:4px 6px max(4px,env(safe-area-inset-bottom));border-top:1px solid #e8e2f0;background:#fff;min-height:64px;box-sizing:border-box;z-index:3}
  .asm-mobile-ui .asm-dock-button{display:flex!important;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:54px!important;padding:4px 2px!important;border:0!important;border-radius:10px!important;background:#fff!important;color:#493a62!important;font:600 11px/1.2 Arial,sans-serif!important}
  .asm-mobile-ui .asm-dock-button:focus-visible,.asm-mobile-ui .asm-dock-button:hover{background:#f0eafb!important}
  .asm-mobile-ui .asm-dock-icon{font:600 24px/1 Arial,sans-serif;height:25px}
  .asm-mobile-ui.as-reviewing .asm-dock,.asm-mobile-ui.as-typing .asm-dock{display:none!important}
  .asm-mobile-ui.as-phone-drawer .as-editor-tabs{display:none!important}
  .asm-mobile-ui.as-phone-drawer:not(.as-drawer-open):not(.as-reviewing) .as-panel{display:none!important}
  .asm-mobile-ui.as-phone-drawer.as-drawer-open:not(.as-reviewing) .as-panel{flex-basis:40%;height:40%!important;max-height:330px!important;display:flex!important}
  .asm-mobile-ui.as-phone-drawer .as-editor-side,.asm-mobile-ui.as-phone-drawer .as-project-pane,.asm-mobile-ui.as-phone-drawer .as-layers-pane{padding:10px 14px 14px!important}
  .asm-mobile-ui .as-multi-tools{display:none!important}
  .asm-mobile-ui:has(.as-panel[data-space="layers"]) .as-multi-tools{display:flex!important;padding:4px 14px!important}
  .asm-mobile-ui .asm-done{font-size:12px!important}
  .asm-mobile-ui .asm-panel-head{min-height:50px;box-sizing:border-box}
  .asm-mobile-ui .asm-edit-nav{display:none!important}
  .asm-mobile-ui.as-drawer-open .as-panel[data-space="element"] .asm-edit-nav{display:flex!important;flex:0 0 auto;gap:4px;padding:4px 12px;background:#fff;border-bottom:1px solid #eee7f5;order:-2}
  .asm-mobile-ui .asm-edit-nav button{flex:1;min-width:0;min-height:42px;padding:6px!important;font-size:12px!important;line-height:1.2;border:0!important;border-radius:8px!important;background:#f7f4fc!important;color:#655775!important}
  .asm-mobile-ui .asm-edit-nav button[aria-pressed="true"]{background:#eae3ff!important;color:#4422be!important;font-weight:700}
  .asm-mobile-ui .asm-edit-nav button[hidden]{display:none!important}
  .asm-mobile-ui[data-asm-edit="content"] .as-properties>[data-asm-group]:not([data-asm-group="content"]):not([data-asm-group="photo"]),
  .asm-mobile-ui[data-asm-edit="style"] .as-properties>[data-asm-group]:not([data-asm-group="style"]):not([data-asm-group="photo"]),
  .asm-mobile-ui[data-asm-edit="position"] .as-properties>[data-asm-group]:not([data-asm-group="position"]){display:none!important}
  .asm-mobile-ui:not([data-asm-edit="position"]) .as-selection{display:none!important}
  .asm-mobile-ui .as-properties{gap:8px}
  .asm-mobile-ui .as-text{height:76px;min-height:76px!important;max-height:120px}
  .asm-mobile-ui .as-properties .as-text-toolbar{margin:0 0 8px}
  .asm-mobile-ui .as-properties .as-style-transfer{margin:8px 0 0}
  .asm-mobile-ui .as-properties .as-fine{margin:8px 0}
  .asm-mobile-ui .asm-more-add,.asm-mobile-ui .asm-image-back{display:none!important}
  .asm-mobile-ui .as-project-pane .as-add-tools{display:none!important}
  .asm-mobile-ui[data-asm-menu="extras"] .as-project-pane .as-add-tools{display:grid!important}
  .asm-mobile-ui[data-asm-menu="extras"] .as-add-tools .as-shape-add,.asm-mobile-ui[data-asm-menu="extras"] .as-add-tools .as-qr-add{display:block!important}
  .asm-mobile-ui[data-asm-menu="extras"] .as-add-tools [data-action="text"],.asm-mobile-ui[data-asm-menu="extras"] .as-add-tools [data-action="image"]{display:none!important}
  .asm-mobile-ui[data-asm-menu="extras"] .as-project-pane>.as-model-entry,.asm-mobile-ui[data-asm-menu="extras"] .as-project-pane>.as-orientation{display:block!important}
  .asm-mobile-ui[data-asm-menu="project"] .asm-project-menu{display:grid;gap:8px}
  .asm-mobile-ui .asm-project-menu button{min-height:44px;font-size:14px;border-radius:10px}
  .asm-mobile-ui .asm-project-menu .asm-menu-save{background:#5133ed;color:#fff}
  .asm-mobile-ui .asm-price{margin:0 0 4px;font-size:15px;font-weight:700}
  .asm-mobile-ui[data-asm-menu="project"] .as-project-pane>.as-project,.asm-mobile-ui[data-asm-menu="project"] .as-project-pane>.as-draft{display:block!important}
  .asm-mobile-ui.asm-image-menu .as-library-entry{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0;border:0}
  .asm-mobile-ui.asm-image-menu .as-library-entry>.asm-upload{grid-column:1 / -1}
  .asm-mobile-ui.asm-image-menu .as-library-entry>button{min-height:48px!important;padding:8px!important;font-size:13px!important}
  .asm-mobile-ui.asm-image-menu .as-library-entry>.as-library-preferences{grid-column:1 / -1}
  .asm-mobile-ui.asm-image-menu .as-project-pane>.ag-launch{min-height:44px!important;margin:0}
  .asm-mobile-ui.as-phone-drawer.as-drawer-open.as-typing.asm-short-viewport:not(.as-reviewing) .as-panel{flex-basis:52%;height:52%!important;max-height:230px!important}
  .asm-mobile-ui.as-typing.asm-short-viewport .asm-edit-nav{display:none!important}
  .asm-mobile-ui.as-typing.asm-short-viewport .as-panel[data-space="element"] .asm-edit-nav{display:none!important}
  .asm-mobile-ui.as-typing.asm-short-viewport .as-editor-side{padding:4px 14px 8px!important}
  .asm-mobile-ui.as-typing.asm-short-viewport .as-text{min-height:56px!important;height:56px}
  .asm-guided-ui.ast-phone.ast-stepping>header .ast-help-button{flex:0 0 42px!important;width:42px!important;min-width:42px;min-height:42px;padding:6px!important;border-radius:50%;font-size:18px!important}
  .asm-guided-ui.ast-phone.ast-stepping>header .asm-guide-title{display:block;flex:1;text-align:center;font-size:15px;white-space:nowrap;color:#322345}
  .asm-guided-ui.ast-phone.ast-stepping>header .ast-phone-models{font-size:13px;min-height:42px;padding:8px!important}
  .asm-guided-ui.ast-phone.ast-stepping>header .ast-share-current{width:42px;min-height:42px;padding:6px!important}
  .asm-guided-ui.ast-phone.ast-stepping.asm-has-steps .asm-progress{display:block;flex:0 0 3px;height:3px;background:#e8e1f5;overflow:hidden}
  .asm-progress>span{display:block;height:100%;background:#6242ec;transition:width .2s ease}
  .asm-guided-ui.ast-phone.ast-phone-field-open .asm-progress{display:none!important}
  .asm-guided-ui.ast-phone.ast-stepping .asm-model-hint{font-size:12px;padding:6px 12px}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-phone-editor-actions button{font-size:14px;white-space:nowrap}
}
@media(max-width:1100px) and (max-height:550px) and (orientation:landscape){
  .asm-mobile-ui.as-phone-drawer.as-drawer-open:not(.as-reviewing) .as-panel{flex:0 0 42%;width:42%;height:100%!important;max-height:100%!important}
  .asm-mobile-ui .asm-dock{min-height:54px;padding:2px 12px}
  .asm-mobile-ui .asm-dock-button{flex-direction:row;min-height:48px!important;gap:10px}
}
@media(prefers-reduced-motion:reduce){.asm-progress>span{transition:none}}
@media(max-width:760px),(max-width:1100px) and (max-height:550px) and (orientation:landscape){
 .asm-mobile-ui .as-font-picker{inset:auto 0 0!important;width:100%!important;max-width:100%!important;height:min(360px,48dvh)!important;border-radius:18px 18px 0 0!important;box-shadow:0 -4px 24px #25113e22}
 .asm-mobile-ui .as-font-picker[open]{display:flex;flex-direction:column}
 .asm-mobile-ui .as-font-picker header{flex:0 0 50px;min-height:50px;box-sizing:border-box;padding:3px 12px}
 .asm-mobile-ui .as-font-picker h2{font-size:16px}
 .asm-mobile-ui .as-font-browser{flex:1;height:auto;min-height:0;padding:8px 14px max(12px,env(safe-area-inset-bottom))}
 .asm-mobile-ui .as-font-intro,.asm-mobile-ui .as-font-browser>label:has(.as-font-example),.asm-mobile-ui .as-font-browser>small,.asm-mobile-ui .as-font-recent>small{display:none}
 .asm-mobile-ui .as-font-browser>label:has(.as-font-filter){font-size:0;margin:0}
 .asm-mobile-ui .as-font-filter{margin:0 0 8px;min-height:44px;padding:8px;font-size:16px}
 .asm-mobile-ui .as-font-section h3,.asm-mobile-ui .as-font-recent h3{font-size:13px;margin:12px 0 8px}
 .asm-mobile-ui .as-font-card{min-height:76px;padding:10px}
 .asm-mobile-ui .as-font-name{margin-bottom:6px}
 .asm-mobile-ui .as-font-sample{font-size:22px}
}
@media(max-width:1100px) and (max-height:550px) and (orientation:landscape){
 .asm-mobile-ui .as-font-picker{inset:54px 0 0 auto!important;width:42%!important;height:calc(100dvh - 54px)!important;border-radius:16px 0 0 16px!important}
}
@media(max-width:760px),(max-width:1100px) and (max-height:550px) and (orientation:landscape){
 .asm-mobile-ui .asm-help-dialog{width:min(440px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:20px;border:1px solid #e4dbf2;border-radius:18px;background:#fff;color:#322345;overflow:auto;font:14px/1.5 Arial,sans-serif}
 .asm-mobile-ui .asm-help-dialog::backdrop{background:#21182e66}
 .asm-mobile-ui .asm-help-dialog h2{font-size:21px;margin:0 0 12px}
 .asm-mobile-ui .asm-help-dialog ol{padding-left:22px;margin:0 0 18px}
 .asm-mobile-ui .asm-help-dialog li{margin:0 0 12px;padding-left:4px}
 .asm-mobile-ui .asm-help-dialog button{width:100%;min-height:46px;border:0;border-radius:10px;background:#5133ed;color:#fff;font-weight:700}
}

/* Ambora mobile identity — calm surfaces, clear violet accents, one icon family. */
.asm-action-glyph{display:none}
@media(max-width:760px),(max-width:1100px) and (max-height:550px) and (orientation:landscape){
  .asm-mobile-ui,.asm-guided-ui{--asm-violet:#6040dc;--asm-deep:#392269;--asm-ink:#302344;--asm-muted:#776a88;--asm-tint:#f2edff;--asm-line:#e6dff1;--asm-ease:cubic-bezier(.2,.7,.2,1)}
  .asm-mobile-ui .as-topbar,.asm-guided-ui.ast-phone.ast-stepping>header{background:#fff!important;border-bottom:1px solid var(--asm-line)!important;box-shadow:0 2px 12px #39226904}
  .asm-mobile-ui .as-topbar .as-brand{color:var(--asm-deep)}
  .asm-mobile-ui .as-topbar .as-brand span{letter-spacing:.14em;color:var(--asm-muted)}
  .asm-mobile-ui .as-stage,.asm-guided-ui.ast-phone .ast-visual{background:radial-gradient(ellipse at 50% 30%,#fff 0,#f8f6fc 55%,#efebf6 100%)!important}
  .asm-mobile-ui .asm-project-button{display:flex!important;align-items:center;justify-content:center;border-radius:12px!important;color:var(--asm-deep)!important}
  .asm-mobile-ui .asm-project-button[aria-expanded="true"]{background:var(--asm-tint)!important}
  .asm-mobile-ui .asm-review-top{display:flex!important;align-items:center;justify-content:center;gap:5px;background:linear-gradient(135deg,#7750ea,#5632ce)!important;border-radius:12px!important;box-shadow:0 3px 8px #6040dc20;font-weight:700!important;padding:8px 9px!important}
  .asm-mobile-ui .asm-review-top svg{width:16px;height:16px;flex:none}
  .asm-mobile-ui.as-reviewing .asm-review-top,.asm-mobile-ui.as-reviewing .asm-project-button{display:none!important}
  .asm-mobile-ui .asm-action-glyph{display:flex;justify-content:center;align-items:center;pointer-events:none}
  .asm-mobile-ui .asm-original-glyph{display:none}
  .asm-mobile-ui .asm-action-glyph svg,.asm-mobile-ui .asm-project-button>svg{width:20px;height:20px;display:block}
  .asm-mobile-ui .as-project-history button,.asm-mobile-ui .as-close{border:0!important;border-radius:12px!important;background:transparent!important;color:var(--asm-deep)!important}
  .asm-mobile-ui .as-project-history button:disabled{opacity:.3!important}
  .asm-mobile-ui .asm-dock{padding:3px 8px max(5px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--asm-line);box-shadow:0 -3px 20px #39226906;gap:2px}
  .asm-mobile-ui .asm-dock-button{gap:2px;padding:3px 2px!important;color:#655577!important;font-size:11px!important;letter-spacing:.01em;border-radius:13px!important;-webkit-tap-highlight-color:transparent}
  .asm-mobile-ui .asm-dock-icon{display:flex;align-items:center;justify-content:center;width:44px;height:32px;flex:none;border-radius:11px;background:transparent;color:var(--asm-deep)}
  .asm-mobile-ui .asm-dock-icon svg{display:block;width:24px!important;height:24px!important;max-width:none;flex:none}
  .asm-mobile-ui .asm-dock-button[data-active="true"]{color:#5230c0!important;font-weight:700!important}
  .asm-mobile-ui .asm-dock-button[data-active="true"] .asm-dock-icon{background:#eee6ff;color:#603bce}
  .asm-mobile-ui .asm-dock-button:focus-visible{outline:2px solid #8b6ade!important;outline-offset:-2px}
  .asm-mobile-ui.as-phone-drawer.as-drawer-open:not(.as-reviewing) .as-panel{border:1px solid var(--asm-line);border-bottom:0;border-radius:22px 22px 0 0;box-shadow:0 -4px 22px #3922690a}
  .asm-mobile-ui .asm-panel-head{border-bottom:0!important;background:#fff!important}
  .asm-panel-head strong{color:var(--asm-ink);font-size:15px;letter-spacing:-.015em}
  .asm-mobile-ui .asm-panel-head .asm-done{border:1px solid #e8defa!important;background:#f6f2ff!important;color:#5d3db0!important;border-radius:12px!important}
  .asm-mobile-ui.as-drawer-open .as-panel[data-space="element"] .asm-edit-nav{gap:3px;padding:4px 12px 8px;border-bottom:1px solid #f1edf7;background:#fff}
  .asm-mobile-ui .asm-edit-nav button{background:#f6f3fa!important;color:var(--asm-muted)!important;border-radius:11px!important}
  .asm-mobile-ui .asm-edit-nav button[aria-pressed="true"]{background:#eee6ff!important;color:#5230bc!important;box-shadow:inset 0 0 0 1px #dcccfb}
  .asm-mobile-ui .as-text,.asm-guided-ui .ast-fields input[type="text"],.asm-guided-ui .ast-fields input[type="url"]{border-color:#dcd2e9!important;border-radius:12px!important;color:var(--asm-ink)!important}
  .asm-mobile-ui .as-text:focus,.asm-guided-ui .ast-fields input:focus{outline:2px solid #8c6be4!important;outline-offset:2px!important;box-shadow:0 0 0 4px #f1eaff!important}
  .asm-mobile-ui .as-zoom{background:transparent!important;border:0!important;box-shadow:none!important}
  .asm-mobile-ui .as-zoom button{border-radius:11px!important;background:#fff!important;border:1px solid var(--asm-line)!important;color:var(--asm-deep)!important}
  .asm-mobile-ui .as-zoom [data-action="zone-view"]{background:var(--asm-tint)!important;border-color:#e4d8fa!important;color:#5a39b1!important}
  .asm-mobile-ui .as-font-picker,.asm-guided-ui.ast-phone.ast-phone-field-open:not(.ast-phone-cropping) .ast-fields{border:1px solid var(--asm-line);box-shadow:0 -4px 22px #3922690c;border-radius:20px 20px 0 0}
  .asm-guided-ui.ast-phone.ast-phone-field-open:not(.ast-phone-cropping) .ast-fields{border-radius:18px}
  .asm-mobile-ui .as-font-picker header{border-color:var(--asm-line)}
  .asm-mobile-ui .as-font-card[aria-pressed="true"]{background:#f1ebff;border-color:#9c7ee3;box-shadow:inset 0 0 0 1px #e6d9fc}
  .asm-guided-ui.ast-phone.ast-stepping .asm-guide-title{color:var(--asm-deep);letter-spacing:-.02em}
  .asm-guided-ui.ast-phone.ast-stepping>header button{background:#faf8fd;border-color:var(--asm-line);color:var(--asm-deep)}
  .asm-guided-ui.ast-phone.ast-stepping .ast-primary,.asm-mobile-ui .asm-upload,.asm-mobile-ui .asm-project-menu .asm-menu-save{background:linear-gradient(135deg,#7750ea,#5632ce)!important;border-color:transparent!important;border-radius:12px!important;box-shadow:0 3px 10px #6040dc1a;color:white!important}
  .asm-guided-ui.ast-phone.ast-stepping .ast-phone-hotspot{background:#6740d9;border:2px solid #fff;box-shadow:0 2px 8px #39226924}
  .asm-guided-ui.ast-phone.ast-stepping .ast-phone-hotspot.is-complete{background:#eae2fa;color:#4b2c8a;border-color:#fff}
  .asm-guided-ui.ast-phone.ast-stepping .asm-progress{background:#f0eafa}
  .asm-guided-ui .asm-progress>span{background:linear-gradient(90deg,#9b7af1,#6341d8)}
  .asm-mobile-ui .asm-dock-icon,.asm-mobile-ui .asm-dock-button,.asm-mobile-ui .asm-edit-nav button,.asm-mobile-ui .asm-project-button,.asm-mobile-ui .asm-review-top,.asm-mobile-ui .asm-done,.asm-guided-ui .ast-phone-hotspot{transition:background-color .18s var(--asm-ease),color .18s var(--asm-ease),box-shadow .18s var(--asm-ease),transform .14s var(--asm-ease)}
  .asm-mobile-ui .asm-dock-button:active .asm-dock-icon{transform:scale(.91)}
  .asm-mobile-ui .asm-review-top:active,.asm-mobile-ui .asm-done:active,.asm-guided-ui .ast-phone-editor-actions button:active,.asm-guided-ui .asm-next:active{transform:translateY(1px)}
}
@media(prefers-reduced-motion:no-preference){
 @media(max-width:760px),(max-width:1100px) and (max-height:550px) and (orientation:landscape){
  .asm-mobile-ui .as-font-picker[open],.asm-mobile-ui .asm-help-dialog[open]{animation:asm-reveal .2s cubic-bezier(.2,.7,.2,1)}
  .asm-guided-ui.ast-phone.ast-phone-field-open .ast-field:not([hidden]){animation:asm-fade .18s ease-out}
  .asm-guided-ui .ast-phone-hotspot.is-complete{animation:asm-complete .24s ease-out}
 }
}
@keyframes asm-reveal{from{opacity:.3;translate:0 8px}to{opacity:1;translate:0 0}}
@keyframes asm-fade{from{opacity:.35}to{opacity:1}}
@keyframes asm-complete{0%{scale:.94}65%{scale:1.07}100%{scale:1}}
@media(prefers-reduced-motion:reduce){
 .asm-mobile-ui .asm-dock-icon,.asm-mobile-ui .asm-dock-button,.asm-mobile-ui .asm-edit-nav button,.asm-mobile-ui .asm-project-button,.asm-mobile-ui .asm-review-top,.asm-mobile-ui .asm-done,.asm-guided-ui .ast-phone-hotspot,.asm-guided-ui .asm-progress>span{transition:none!important;animation:none!important}
 .asm-mobile-ui .asm-dock-button:active .asm-dock-icon,.asm-mobile-ui .asm-review-top:active,.asm-mobile-ui .asm-done:active,.asm-guided-ui .ast-phone-editor-actions button:active,.asm-guided-ui .asm-next:active{transform:none}
}
@media(max-width:760px),(max-width:1100px) and (max-height:550px) and (orientation:landscape){
 .asm-mobile-ui .as-zoom button{flex:0 0 44px!important;width:44px;min-width:44px}
 .asm-mobile-ui .as-zoom [data-action="zone-view"]{flex:0 0 auto!important;width:auto;min-width:100px}
 .asm-mobile-ui .as-zoom-value{width:46px;text-align:center;color:#796a8a}
 .asm-mobile-ui button:focus:not(:focus-visible),.asm-guided-ui button:focus:not(:focus-visible){outline:none!important}
}
