/* Explicit mobile-browser marker: none of these overrides applies to PC web. */
html.wc-mobile-browser {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Mobile header: a clear brand row, one search row and a compact shortcut row. */
@media (max-width: 900px) {
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header {
    position: relative;
    box-sizing: border-box;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 12px !important;
    gap: 8px 0 !important;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header::before {
    content: '';
    position: absolute;
    top: 14px;
    right: 8px;
    width: 158px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid var(--home-border, #dfe7f0);
    border-radius: 12px;
    background: color-mix(in srgb, var(--home-surface-strong, #fff) 85%, var(--home-bg, #f4f7fb));
    pointer-events: none;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-brand {
    order: 1;
    box-sizing: border-box;
    flex: 1 0 100%;
    min-width: 0;
    min-height: 48px;
    padding-right: 162px;
    gap: 8px;
    font-size: 16px;
    line-height: 1.25;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-brand-logo,
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-brand-logo img {
    width: 48px !important;
    height: 48px !important;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-brand-logo--default img {
    width: 72px !important;
    height: 72px !important;
    left: -12px !important;
    top: -6px !important;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-brand-copy {
    min-width: 0;
    flex: 1;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-brand-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 750;
    letter-spacing: -.2px;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-template-total {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--home-muted, #8190a5) !important;
    font-size: 10.5px;
    font-weight: 450;
    line-height: 1.3;
    letter-spacing: 0;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-search {
    display: flex;
    order: 2;
    flex: 1 1 100%;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 38px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--home-border, #dfe7f0);
    border-radius: 11px;
    background: var(--home-surface-strong, #f7f9fc);
    color: var(--home-muted, #8190a5);
    font-size: 12px;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-search-icon {
    flex: 0 0 auto;
    margin: 0;
    font-size: 20px;
    line-height: 1;
    color: var(--home-text, #34445f);
    opacity: .7;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-search-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    color: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    vertical-align: baseline;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-search-hint {
    display: none;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .home-top {
    order: 3;
    flex: 1 1 100% !important;
    width: 100%;
    margin: 0 !important;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header :is(.home-top, .home-top__panel--right, .home-top__actions) {
    position: static;
    min-width: 0;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .home-top__panel--right {
    flex: 1 1 100%;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .home-top__actions {
    display: flex;
    width: 100%;
    gap: 5px;
    flex-wrap: nowrap;
    align-items: center;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .home-top__actions > :is(.workspace-gallery, .language-quick-switch, .workspace-notice, .workspace-account) {
    box-sizing: border-box;
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    max-width: none;
    height: 30px;
    margin: 0;
    padding: 0 6px;
    gap: 4px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .home-top__actions > .workspace-gallery {
    display: block;
    flex-grow: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .home-top__actions > .workspace-notice {
    flex-grow: .8;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-avatar {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-account-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .home-top__actions > :is(.workspace-color, .workspace-theme, .workspace-mobile-settings, .workspace-logout) {
    position: absolute;
    z-index: 1;
    top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 36px;
    min-height: 36px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 8px;
    background: transparent !important;
    line-height: 1;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .home-top__actions > .workspace-color {
    right: 126px;
    width: 32px;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-color > span:not(.workspace-color-dot) {
    display: none;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 5px;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--home-text, #34445f) 8%, transparent);
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .home-top__actions > .workspace-theme {
    right: 90px;
    width: 32px;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .home-top__actions > .workspace-mobile-settings {
    right: 48px;
    width: 38px;
    font-size: 12px;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .home-top__actions > .workspace-logout {
    right: 12px;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .workspace-logout .category-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin: 0;
    background: transparent;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-header .home-top__actions > :is(.workspace-theme, .workspace-mobile-settings, .workspace-logout):focus-visible {
    outline: 2px solid var(--theme-primary, #0aa6b2);
    outline-offset: -2px;
  }
}
html.wc-mobile-browser body {
  touch-action: pan-x pan-y;
  overscroll-behavior-y: none;
  overflow-x: clip;
}
html.wc-mobile-browser #app {
  box-sizing: border-box;
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
}
html.wc-mobile-browser .app-theme-root {
  min-height: 0;
  margin-top: 0 !important;
}
/* Prevent iOS focus zoom on controls, without changing template/export typography. */
html.wc-mobile-browser input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [data-template-canvas] *, .template-surface *, #resizableDiv *),
html.wc-mobile-browser textarea:not([data-template-canvas] *, .template-surface *, #resizableDiv *),
html.wc-mobile-browser select:not([data-template-canvas] *, .template-surface *, #resizableDiv *) {
  font-size: 16px !important;
}
html.wc-mobile-browser :is(.home-shell, .images-editor, .tabs-shell, .ant-modal, .ant-drawer) {
  touch-action: pan-x pan-y;
}

@media (max-width: 900px) {
  html.wc-mobile-browser .images-editor.images-editor--web .images-editor__right-footer {
    height: auto !important;
    padding-bottom: 8px !important;
  }
  html.wc-mobile-browser .images-editor .images-editor__right-footer .field-reset-notice {
    flex-shrink: 0;
    margin: 8px 6px;
    padding: 6px;
  }
  html.wc-mobile-browser .images-editor :is(.canvas-desktop-reset-control, .canvas-desktop-scroll-control) {
    display: none !important;
  }
  html.wc-mobile-browser .images-editor :is(.canvas-mobile-reset-control, .canvas-mobile-scroll-control) {
    display: inline-flex !important;
  }
  html.wc-mobile-browser .images-editor .images-editor__center-footer .canvas-mobile-reset-control {
    margin-inline-start: 0 !important;
  }
  html.wc-mobile-browser .images-editor .canvas-default-data-trigger {
    display: inline-flex !important;
  }
  html.wc-mobile-browser .images-editor .images-editor__center-footer .canvas-wallpaper-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
  }
  html.wc-mobile-browser .images-editor .images-editor__center-footer .canvas-wallpaper-trigger > .anticon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
  }
  html.wc-mobile-browser .images-editor .images-editor__center-footer .canvas-wallpaper-trigger > .anticon + span {
    margin-inline-start: 0;
  }
  /* Keep the favorites row below the editor toolbar's two-row Home button. */
  html.wc-mobile-browser .layout-tabs-bar {
    z-index: 20;
  }
  html.wc-mobile-browser .home-workspace .home-footerbar__mobile-lock-slot {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: center;
    height: 30px;
    min-width: 30px;
    position: static;
  }
  /* A relocated lock must not retain the narrow desktop header positioning. */
  html.wc-mobile-browser .home-workspace .workspace-fixed-footer .home-footerbar__mobile-lock-slot .home-footerbar__lock-btn {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
    flex: 0 0 auto;
    width: auto;
    min-width: 30px;
    max-width: none;
    line-height: 1;
    vertical-align: middle;
  }
  html.wc-mobile-browser .home-workspace .home-footerbar__mobile-lock-slot .anticon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
  }
  html.wc-mobile-browser .home-workspace .workspace-fixed-footer .home-footerbar__inner {
    flex-wrap: nowrap;
  }
  html.wc-mobile-browser .home-workspace .home-footerbar__right--mobile-lock {
    display: none !important;
  }
  html.wc-mobile-browser .home-workspace .workspace-fixed-footer :is(.home-footerbar__lock-expiry, .home-footerbar__mobile-lock-slot .home-footerbar__lock-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 10px !important;
    border: 1px solid var(--home-border);
    border-radius: 8px;
    background: var(--home-surface-strong);
    color: var(--home-text);
    font-size: 12px;
    white-space: nowrap;
  }
  html.wc-mobile-browser .home-workspace .workspace-brand-logo {
    width: 52px !important;
    height: 52px !important;
  }
  html.wc-mobile-browser .home-workspace .workspace-brand-logo img {
    width: 52px !important;
    height: 52px !important;
  }
  html.wc-mobile-browser .home-workspace .workspace-brand-logo--default img {
    width: 72px !important;
    height: 72px !important;
    left: -10px !important;
    top: -6px !important;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .home-sider {
    padding-bottom: 4px !important;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .workspace-right-column .home-content {
    padding-top: 4px !important;
  }
  html.wc-mobile-browser .home-workspace.home-workspace--web .workspace-right-column .workspace-fixed-footer {
    margin-top: 6px;
    padding-top: 6px !important;
  }
  html.wc-mobile-browser .home-workspace--web {
    height: calc(100dvh - env(safe-area-inset-top, 0px)) !important;
    min-height: 0 !important;
  }
  html.wc-mobile-browser .images-editor.images-editor--web {
    height: calc(100dvh - 30px - env(safe-area-inset-top, 0px)) !important;
    overflow: visible !important;
  }
  html.wc-mobile-browser .images-editor.images-editor--web .images-editor__topbar {
    z-index: 30 !important;
    overflow: visible !important;
  }
  html.wc-mobile-browser .images-editor .main {
    position: relative;
    isolation: isolate;
  }
  html.wc-mobile-browser .images-editor .images-tabs {
    overflow: visible;
  }
  html.wc-mobile-browser .images-tabs .images-tabs__home .buttons {
    position: absolute !important;
    inset: -28px auto auto 6px !important;
    z-index: 1 !important;
    width: 54px;
    height: 54px;
    flex-direction: column;
    gap: 4px;
  }
  html.wc-mobile-browser .images-tabs .images-tabs__tools {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
  }
  html.wc-mobile-browser .images-tabs .images-tabs__list {
    padding-right: 0;
  }
  html.wc-mobile-browser .images-editor.images-editor--web .images-editor__actions-footer {
    padding-left: 10px;
    padding-right: 10px;
  }
  html.wc-mobile-browser .images-editor.images-editor--web .images-editor__actions-footer > div {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 6px;
    flex-wrap: nowrap;
  }
  html.wc-mobile-browser .images-editor.images-editor--web .images-editor__actions-footer .ant-btn {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
  }
  html.wc-mobile-browser .images-editor {
    --editor-mobile-toggle-width: 42px !important;
    --editor-mobile-toggle-step: 58px !important;
  }
  html.wc-mobile-browser .images-editor.images-editor--web .images-editor__template-toggle:not(.images-editor__tools-toggle) {
    height: 52px;
    font-size: 12px;
  }
  html.wc-mobile-browser .images-editor.images-editor--web .images-editor__tool-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 1;
  }
  html.wc-mobile-browser .images-editor .images-editor__tool-icon svg {
    display: block !important;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  html.wc-mobile-browser .images-editor .images-editor__tool-icon .mobile-tool-glyph {
    display: none;
  }
}

.canvas-mobile-reset-control,.canvas-mobile-scroll-control,.canvas-default-data-trigger,.home-footerbar__mobile-lock-slot{display:none}

#showImage .wc-boc-counterparty-account,#showImage .wc-boc-counterparty-account .show-data-container,#showImage .wc-boc-counterparty-account .editable-content{white-space:nowrap!important}

@media(max-width:900px){html.wc-mobile-browser .workspace-brand-logo img.workspace-default-brand-image{width:72px!important;height:72px!important;left:-10px!important;top:-6px!important}html.wc-mobile-browser .canvas-default-data-trigger{display:inline-flex!important}html.wc-mobile-browser .images-editor__center-footer>div>div{gap:6px;flex-wrap:wrap}html.wc-mobile-browser .canvas-mobile-reset-control,html.wc-mobile-browser .canvas-mobile-scroll-control{align-items:center;justify-content:center;gap:4px}html.wc-mobile-browser .home-footerbar__mobile-lock-slot{display:inline-flex!important}}

.home-workspace .workspace-search .workspace-search-label,.home-workspace .workspace-search .workspace-search-hint{font-size:inherit;font-weight:inherit;margin-right:0;color:inherit;vertical-align:baseline}
@media(max-width:900px){html.wc-mobile-browser .home-workspace .workspace-search .workspace-search-label{font-size:12px;font-weight:400}}
.backup-actions .backup-icon{display:block;width:26px;height:26px;flex:none}
