/* 3Dverzum Egyedi Kiszúró Generátor – mobil alkalmazásfelület, 0.4.14-dev.2 */
@media (max-width: 760px) {
  html.dzv-mobile-page-locked,
  body.dzv-mobile-page-locked {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  .dzv-generator-root.dzv-mobile-ui-active {
    box-sizing: border-box !important;
    position: fixed !important;
    inset: var(--dzv-mobile-top, 0px) 0 0 0 !important;
    z-index: 9990 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #f4f5f7 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  .dzv-generator-root.dzv-mobile-ui-active > .dzv-howto,
  .dzv-generator-root.dzv-mobile-ui-active > #generatorApp {
    display: none !important;
  }

  .dzv-mobile-shell {
    --dzv-nav-expanded: 70px;
    --dzv-nav-compact: 52px;
    --dzv-safe-bottom: env(safe-area-inset-bottom, 0px);
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 0 calc(var(--dzv-nav-expanded) + var(--dzv-safe-bottom));
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    background: #eef0f3;
    transition: grid-template-rows .28s cubic-bezier(.2,.8,.2,1);
  }

  .dzv-mobile-shell.is-panel-open {
    grid-template-rows: minmax(145px, 1fr) minmax(0, auto) calc(var(--dzv-nav-compact) + var(--dzv-safe-bottom));
  }

  .dzv-mobile-stage {
    min-width: 0;
    min-height: 0;
    padding: 8px 8px 4px;
    overflow: hidden;
  }

  .dzv-mobile-stage .viewer-shell {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 34px rgba(17,17,17,.13) !important;
    overflow: hidden !important;
  }

  .dzv-mobile-stage #viewer {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 18px !important;
    touch-action: none;
  }

  .dzv-mobile-stage .viewer-toolbar {
    top: 8px;
    left: 8px;
    right: 8px;
  }

  .dzv-mobile-stage .viewer-toolbar .viewer-info,
  .dzv-mobile-stage .viewer-toolbar .toolbar-card:last-child,
  .dzv-mobile-stage .viewer-footer {
    display: none !important;
  }

  .dzv-mobile-stage .toolbar-card {
    padding: 5px;
    gap: 4px;
    border-radius: 10px;
  }

  .dzv-mobile-stage .toolbar-card button {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .dzv-mobile-sheet {
    position: relative;
    min-height: 0;
    max-height: min(54dvh, 470px);
    padding: 0 12px 10px;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.7);
    border-radius: 22px 22px 0 0;
    background: rgba(250,250,251,.93);
    box-shadow: 0 -14px 34px rgba(20,24,31,.15);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(24px);
    transition: opacity .2s ease, transform .28s cubic-bezier(.2,.8,.2,1);
    z-index: 20;
  }

  .dzv-mobile-sheet.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .dzv-mobile-sheet-grab {
    width: 42px;
    height: 5px;
    margin: 7px auto 3px;
    border-radius: 999px;
    background: #c9ccd1;
    touch-action: none;
    cursor: grab;
  }

  .dzv-mobile-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    gap: 10px;
  }

  .dzv-mobile-sheet-head h2 {
    margin: 0 !important;
    font: 800 15px/1.2 Inter,Arial,sans-serif !important;
    color: #17191d !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }

  .dzv-mobile-sheet-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #eceef1 !important;
    color: #3b3f46 !important;
    box-shadow: none !important;
  }

  .dzv-mobile-sheet-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .dzv-mobile-sheet-content {
    max-height: calc(min(54dvh, 470px) - 58px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 2px 1px 10px;
    -webkit-overflow-scrolling: touch;
  }

  .dzv-mobile-ported-section {
    display: block !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .dzv-mobile-ported-section > .section-summary {
    display: none !important;
  }

  .dzv-mobile-ported-section > .section-body {
    display: block !important;
    padding: 2px 0 8px !important;
    border: 0 !important;
    background: transparent !important;
  }

  .dzv-mobile-shell[data-active-panel="text"] .dzv-mobile-sheet {
    max-height: min(43dvh, 350px);
  }

  .dzv-mobile-shell[data-active-panel="text"] .dzv-mobile-sheet-content {
    max-height: calc(min(43dvh, 350px) - 58px);
  }

  .dzv-mobile-shell[data-active-panel="text"] #textInput {
    min-height: 104px !important;
    max-height: 170px !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.9) !important;
  }

  .dzv-mobile-shell[data-active-panel="shape"] .dzv-mobile-sheet {
    max-height: 190px;
  }

  .dzv-mobile-shell[data-active-panel="shape"] .dzv-mobile-sheet-content {
    max-height: 132px;
    overflow-y: hidden;
  }

  .dzv-mobile-shell[data-shape-mode="shape"] #shapeSection .dimension-main-grid,
  .dzv-mobile-shell[data-shape-mode="shape"] #shapeSection .safe-margin-panel,
  .dzv-mobile-shell[data-shape-mode="shape"] #shapeSection #cornerRadiusField {
    display: none !important;
  }

  .dzv-mobile-shell[data-shape-mode="shape"] #shapeSection .shape-choice-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 9px !important;
    overflow-x: auto;
    padding: 3px 10px 10px 1px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .dzv-mobile-shell[data-shape-mode="shape"] #shapeSection .shape-choice-grid::-webkit-scrollbar {
    display: none;
  }

  .dzv-mobile-shell[data-shape-mode="shape"] #shapeSection .shape-choice {
    flex: 0 0 76px !important;
    width: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
    padding: 8px 5px !important;
    scroll-snap-align: start;
  }

  .dzv-mobile-shell[data-shape-mode="shape"] #shapeSection .rounding-row {
    display: none !important;
  }

  .dzv-mobile-shell[data-shape-mode="size"] #shapeSection .shape-choice-grid,
  .dzv-mobile-shell[data-shape-mode="size"] #shapeSection > .section-body > .field-grid > .shape-choice-grid {
    display: none !important;
  }

  .dzv-mobile-shell[data-shape-mode="size"] #shapeSection .dimension-main-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 10px !important;
  }

  .dzv-mobile-shell[data-shape-mode="size"] #shapeSection .rounding-row {
    margin-top: 10px !important;
  }

  .dzv-mobile-shell[data-active-panel="bands"] .dzv-mobile-sheet {
    max-height: min(55dvh, 480px);
  }

  .dzv-mobile-shell[data-active-panel="bands"] .band-workspace {
    grid-template-columns: 48px minmax(150px, 1fr) !important;
  }

  .dzv-mobile-shell[data-active-panel="summary"] .dzv-mobile-sheet {
    max-height: min(68dvh, 560px);
  }

  .dzv-mobile-shell[data-active-panel="summary"] #customerSummary {
    display: block !important;
  }

  .dzv-mobile-shell[data-active-panel="summary"] .customer-summary-body {
    display: block !important;
  }

  .dzv-mobile-shell[data-active-panel="bands"] .uniform-font-panel {
    grid-template-columns: minmax(104px, .72fr) minmax(174px, 1.28fr) !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  .dzv-mobile-shell[data-active-panel="bands"] .uniform-font-panel .inline-check {
    min-height: 34px !important;
  }

  .dzv-mobile-shell[data-active-panel="bands"] .uniform-font-panel .inline-check span {
    font-size: 10px !important;
    line-height: 1.15 !important;
  }

  .dzv-mobile-shell[data-active-panel="bands"] .uniform-font-panel .font-stepper.compact {
    grid-template-columns: 34px minmax(82px, 1fr) 34px !important;
    gap: 6px !important;
  }

  .dzv-mobile-shape-cue {
    display: none;
    position: absolute;
    top: 56px;
    bottom: 8px;
    z-index: 8;
    width: 38px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #e30613 !important;
    box-shadow: none !important;
    place-items: center;
    touch-action: manipulation;
  }

  .dzv-mobile-shape-cue svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(255,255,255,.9));
  }

  .dzv-mobile-shape-cue-left {
    left: 0;
    background: linear-gradient(90deg, rgba(250,250,251,.99) 30%, rgba(250,250,251,0)) !important;
  }

  .dzv-mobile-shape-cue-right {
    right: 0;
    background: linear-gradient(270deg, rgba(250,250,251,.99) 30%, rgba(250,250,251,0)) !important;
  }

  .dzv-mobile-shell[data-active-panel="shape"].shape-can-scroll-left .dzv-mobile-shape-cue-left,
  .dzv-mobile-shell[data-active-panel="shape"].shape-can-scroll-right .dzv-mobile-shape-cue-right {
    display: grid;
  }

  .dzv-mobile-nav {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    align-items: start;
    min-height: 0;
    padding: 4px 5px calc(4px + var(--dzv-safe-bottom));
    border-top: 1px solid #dedfe3;
    background: rgba(255,255,255,.97);
    box-shadow: 0 -7px 20px rgba(20,24,31,.08);
    z-index: 30;
    transition: padding .22s ease;
  }

  .dzv-mobile-nav button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 5px 1px 3px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #555b64 !important;
    box-shadow: none !important;
    transition: color .18s ease, background .18s ease, transform .22s ease, min-height .22s ease;
    touch-action: manipulation;
  }

  .dzv-mobile-nav button svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: width .22s ease, height .22s ease;
  }

  .dzv-mobile-nav button span {
    max-height: 15px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1;
    font-weight: 750;
    white-space: nowrap;
    opacity: 1;
    transition: opacity .16s ease, max-height .22s ease;
  }

  .dzv-mobile-shell.is-panel-open .dzv-mobile-nav button {
    min-height: 44px;
    padding-block: 2px !important;
  }

  .dzv-mobile-shell.is-panel-open .dzv-mobile-nav button svg {
    width: 22px;
    height: 22px;
  }

  .dzv-mobile-shell.is-panel-open .dzv-mobile-nav button span {
    max-height: 0;
    opacity: 0;
  }

  .dzv-mobile-nav button.is-active {
    color: #e30613 !important;
    background: #fdebed !important;
    transform: translateY(-5px);
  }

  .dzv-mobile-nav .dzv-mobile-cart {
    color: #b9000b !important;
  }

  .dzv-mobile-nav .dzv-mobile-cart.is-ready {
    background: #e30613 !important;
    color: #fff !important;
  }

  .dzv-mobile-nav button:disabled {
    opacity: .4 !important;
  }

  .dzv-mobile-shell .dimension-stepper input,
  .dzv-mobile-shell input,
  .dzv-mobile-shell select,
  .dzv-mobile-shell textarea {
    font-size: 16px;
  }

  .dzv-mobile-shell .mobile-notice-modal {
    display: none !important;
  }
}

@media (max-width: 390px) {
  .dzv-mobile-nav button span { font-size: 8px; }
  .dzv-mobile-shell[data-active-panel="bands"] .uniform-font-panel {
    grid-template-columns: 98px minmax(164px, 1fr) !important;
    gap: 6px !important;
  }
  .dzv-mobile-shell[data-shape-mode="size"] #shapeSection .dimension-main-grid {
    grid-template-columns: 1fr !important;
  }
}


@media (max-width: 760px) {
  .dzv-mobile-shell .viewer-status-stack { display: none !important; }

  .dzv-mobile-shell .view-toolbar-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .dzv-mobile-status-indicator {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 2px 10px rgba(20,24,31,.10) !important;
    color: #4b5563 !important;
    touch-action: manipulation;
  }
  .dzv-mobile-status-indicator .dzv-mobile-status-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font: 900 12px/1 Inter,Arial,sans-serif;
    background: #f1f2f5;
    color: #555b64;
  }
  .dzv-mobile-status-indicator[data-status="good"] .dzv-mobile-status-glyph { background: #dff3e7; color: #127247; }
  .dzv-mobile-status-indicator[data-status="warn"] .dzv-mobile-status-glyph { background: #fff1d9; color: #b66f00; }
  .dzv-mobile-status-indicator[data-status="bad"] .dzv-mobile-status-glyph { background: #fde5e8; color: #b9000b; }
  .dzv-mobile-status-indicator.is-open { box-shadow: 0 0 0 2px rgba(227,6,19,.14), 0 2px 10px rgba(20,24,31,.14) !important; }
  .dzv-mobile-status-indicator.is-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid currentColor;
    opacity: .24;
    animation: dzvMobilePulse .8s ease-out 1;
  }
  @keyframes dzvMobilePulse {
    from { transform: scale(.88); opacity: .35; }
    to { transform: scale(1.28); opacity: 0; }
  }

  .dzv-mobile-shell[data-active-panel="bands"] .uniform-font-panel {
    grid-template-columns: minmax(118px,1fr) minmax(170px,188px) !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 8px !important;
  }
  .dzv-mobile-shell[data-active-panel="bands"] .uniform-font-panel .inline-check {
    min-height: 34px !important;
    margin-bottom: 0 !important;
    align-self: center;
  }
  .dzv-mobile-shell[data-active-panel="bands"] .uniform-font-panel .font-stepper.compact {
    margin-top: 0 !important;
  }

  .dzv-mobile-shell[data-active-panel="summary"] .customer-summary-body {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(152px, 176px);
    align-items: start;
    gap: 12px;
  }
  .dzv-mobile-shell[data-active-panel="summary"] .customer-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 0 !important;
  }
  .dzv-mobile-shell[data-active-panel="summary"] #filamentPickerSection {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  .dzv-mobile-finalize-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .dzv-mobile-finalize-controls .height-clearance-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 !important;
  }
  .dzv-mobile-finalize-controls .height-step-field {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    gap: 8px;
    padding: 10px !important;
    border: 1px solid #e4e6ea !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.88) !important;
  }
  .dzv-mobile-finalize-controls .height-step-field .height-label-row {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
  }
  .dzv-mobile-finalize-controls .height-step-field .height-label-row > span:first-child {
    font-size: 12px;
    line-height: 1.15;
    font-weight: 800;
    color: #1f2937;
  }
  .dzv-mobile-finalize-controls .height-step-field .compact-height-stepper {
    width: 100%;
    margin: 0 !important;
  }
  .dzv-mobile-finalize-controls .height-step-field .help-trigger {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }
  .dzv-mobile-finalize-price {
    padding: 12px 12px 11px;
    border: 1px solid #e4e6ea;
    border-radius: 14px;
    background: rgba(255,255,255,.92);
  }
  .dzv-mobile-finalize-price small {
    display: block;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.2;
    margin-bottom: 4px;
  }
  .dzv-mobile-finalize-price strong {
    display: block;
    color: #17191d;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 900;
  }
  .dzv-mobile-finalize-price strong[data-ready="0"] {
    font-size: 14px;
    color: #6b7280;
    font-weight: 800;
  }
}

@media (max-width: 390px) {
  .dzv-mobile-shell[data-active-panel="bands"] .uniform-font-panel {
    grid-template-columns: minmax(104px,1fr) minmax(160px,178px) !important;
  }
  .dzv-mobile-shell[data-active-panel="summary"] .customer-summary-body {
    grid-template-columns: 1fr !important;
  }
}


@media (max-width: 760px) {
  /* A régi státuszdoboz fizikailag a rejtett stash-be kerül; ez csak a biztonsági háló. */
  .dzv-mobile-stash .viewer-status-stack,
  .dzv-mobile-stash #statusBox {
    display: none !important;
  }

  /* Kattintásra megjelenő állapotsáv közvetlenül a felső toolbar alatt. */
  .dzv-mobile-status-popover {
    top: 58px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 8px 24px rgba(20,24,31,.13) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Mobilon a Sávok panel csak a közvetlen, soronkénti szerkesztést mutatja. */
  .dzv-mobile-shell[data-active-panel="bands"] #bandCountHint,
  .dzv-mobile-shell[data-active-panel="bands"] .uniform-font-panel,
  .dzv-mobile-shell[data-active-panel="bands"] .band-master-control,
  .dzv-mobile-shell[data-active-panel="bands"] .band-font-editor,
  .dzv-mobile-shell[data-active-panel="bands"] .band-control-title,
  .dzv-mobile-shell[data-active-panel="bands"] .band-bottom-gap {
    display: none !important;
  }

  .dzv-mobile-shell[data-active-panel="bands"] .band-panel,
  .dzv-mobile-shell[data-active-panel="bands"] .band-control-unit {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .dzv-mobile-shell[data-active-panel="bands"] .band-workspace {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  .dzv-mobile-shell[data-active-panel="bands"] .band-preview-column {
    display: block !important;
    width: 100% !important;
  }

  .dzv-mobile-shell[data-active-panel="bands"] .band-mini-shape {
    min-height: 238px !important;
    border-width: 3px !important;
    border-color: #e30613 !important;
    border-radius: 12px !important;
    box-shadow: inset 0 0 0 5px rgba(227,6,19,.08) !important;
    background:
      linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.88)),
      repeating-linear-gradient(0deg, transparent 0 21px, rgba(120,129,142,.12) 21px 22px),
      repeating-linear-gradient(90deg, transparent 0 21px, rgba(120,129,142,.12) 21px 22px) !important;
  }

  .dzv-mobile-shell[data-active-panel="bands"] .band-safe-zone {
    border-color: rgba(227,6,19,.32) !important;
  }

  .dzv-mobile-shell[data-active-panel="bands"] .band-mini-bar {
    grid-template-columns: 14px minmax(0,1fr) 0 78px !important;
    gap: 5px !important;
    min-height: 38px !important;
    padding: 2px 4px 2px 3px !important;
    background: rgba(255,205,210,.96) !important;
    border-color: rgba(227,6,19,.34) !important;
    color: #4d1116 !important;
    overflow: visible !important;
  }

  .dzv-mobile-shell[data-active-panel="bands"] .band-mini-position {
    display: none !important;
  }

  .dzv-mobile-shell[data-active-panel="bands"] .band-mini-label {
    font-size: 10px !important;
    line-height: 1.15 !important;
    text-align: center !important;
  }

  .dzv-mobile-band-font-controls {
    display: grid;
    grid-template-columns: repeat(2, 36px);
    gap: 4px;
    align-items: center;
    justify-content: end;
    pointer-events: auto;
  }

  .dzv-mobile-band-font-step {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    min-width: 36px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border: 1px solid rgba(227,6,19,.18) !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,.94) !important;
    color: #222 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    touch-action: manipulation;
  }

  .dzv-mobile-band-font-step span {
    margin-left: 1px;
    font-size: 9px;
    vertical-align: super;
  }

  .dzv-mobile-band-font-step:active:not(:disabled) {
    transform: scale(.95);
    border-color: #e30613 !important;
    background: #fff4f5 !important;
  }

  .dzv-mobile-band-font-step:disabled {
    opacity: .42 !important;
  }

  .dzv-mobile-band-font-busy .band-mini-bar {
    cursor: wait !important;
  }

  .dzv-mobile-band-font-busy .band-mini-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 8;
    background: rgba(255,255,255,.12);
    pointer-events: auto;
  }

  .dzv-mobile-shell[data-active-panel="bands"] #autoArrangeBands {
    width: 100% !important;
    min-height: 42px !important;
    margin-top: 10px !important;
    border: 1px solid #e30613 !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: #e30613 !important;
    font-weight: 800 !important;
  }
}

@media (max-width: 390px) {
  .dzv-mobile-shell[data-active-panel="bands"] .band-mini-bar {
    grid-template-columns: 12px minmax(0,1fr) 0 72px !important;
    gap: 3px !important;
  }
  .dzv-mobile-band-font-controls {
    grid-template-columns: repeat(2, 34px);
    gap: 3px;
  }
  .dzv-mobile-band-font-step {
    width: 34px !important;
    min-width: 34px !important;
  }
}


@media (max-width: 760px) {
  /* A státuszüzenet a felső toolbar tényleges második sora. */
  .dzv-mobile-stage .viewer-toolbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    pointer-events: none !important;
  }

  .dzv-mobile-stage .viewer-toolbar > .toolbar-cluster {
    width: 100% !important;
    min-width: 0 !important;
    pointer-events: auto !important;
  }

  .dzv-mobile-stage .viewer-toolbar > .dzv-mobile-status-popover {
    position: static !important;
    inset: auto !important;
    display: block;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.97) !important;
    box-shadow: 0 7px 18px rgba(20,24,31,.11) !important;
    color: #343941 !important;
    font: 650 12px/1.35 Inter,Arial,sans-serif !important;
    pointer-events: auto !important;
    z-index: 1 !important;
  }

  .dzv-mobile-stage .viewer-toolbar > .dzv-mobile-status-popover[hidden] {
    display: none !important;
  }

  .dzv-mobile-stage .viewer-toolbar > .dzv-mobile-status-popover[data-status="good"] {
    border: 1px solid rgba(27,135,84,.22) !important;
  }
  .dzv-mobile-stage .viewer-toolbar > .dzv-mobile-status-popover[data-status="warn"] {
    border: 1px solid rgba(232,146,0,.25) !important;
  }
  .dzv-mobile-stage .viewer-toolbar > .dzv-mobile-status-popover[data-status="bad"] {
    border: 1px solid rgba(227,6,19,.22) !important;
  }

  /* A két vásárlói nézetváltó címke maradjon olvasható kis kijelzőn is. */
  .dzv-mobile-shell .view-toolbar-card #viewIso,
  .dzv-mobile-shell .view-toolbar-card #viewUser {
    min-width: 0 !important;
    padding-inline: 9px !important;
  }
}


/* 0.4.14-dev.8: panel-súgók, kompakt felső műveletsor és automatikusan záródó státuszsáv. */
@media (max-width: 760px) {
  .dzv-mobile-sheet-title-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }

  .dzv-mobile-panel-help-button {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 0 !important;
    border: 1px solid #d9dde3 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #66707d !important;
    font: 900 12px/1 Inter,Arial,sans-serif !important;
    box-shadow: none !important;
  }

  .dzv-mobile-panel-help-button[aria-expanded="true"] {
    border-color: rgba(227,6,19,.35) !important;
    background: #fdebed !important;
    color: #c9000c !important;
  }

  .dzv-mobile-panel-help {
    margin: 0 0 8px;
    padding: 9px 11px;
    border: 1px solid #e2e5e9;
    border-radius: 12px;
    background: rgba(255,255,255,.94);
    color: #4f5661;
    font: 650 11px/1.35 Inter,Arial,sans-serif;
  }

  .dzv-mobile-panel-help[hidden] { display: none !important; }

  .dzv-mobile-stage .viewer-toolbar .view-toolbar-card {
    gap: 5px !important;
  }

  .dzv-mobile-stage .viewer-toolbar #undoBtn,
  .dzv-mobile-stage .viewer-toolbar #redoBtn {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 10px !important;
  }

  .dzv-mobile-stage .viewer-toolbar #undoBtn span:last-child,
  .dzv-mobile-stage .viewer-toolbar #redoBtn span:last-child {
    display: none !important;
  }

  .dzv-mobile-stage .viewer-toolbar #undoBtn span[aria-hidden="true"],
  .dzv-mobile-stage .viewer-toolbar #redoBtn span[aria-hidden="true"] {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .dzv-mobile-toolbar-reset {
    min-width: 58px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 9px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #18191c !important;
    color: #fff !important;
    font: 850 10px/1 Inter,Arial,sans-serif !important;
    box-shadow: none !important;
    white-space: nowrap;
  }

  .dzv-mobile-status-indicator {
    margin-left: auto !important;
  }
}

@media (max-width: 390px) {
  .dzv-mobile-toolbar-reset {
    min-width: 48px !important;
    padding-inline: 6px !important;
    font-size: 9px !important;
  }
  .dzv-mobile-stage .viewer-toolbar .view-toolbar-card #viewUser {
    padding-inline: 7px !important;
    font-size: 11px !important;
  }
}


/* 0.4.14-dev.11: a Forma súgó ugyanabban a normál panelhelyen jelenik meg, mint a többi menü súgója. */
@media (max-width: 760px) {
  .dzv-mobile-shell[data-active-panel="shape"] .dzv-mobile-sheet {
    max-height: 248px;
    overflow: hidden;
  }

  .dzv-mobile-shell[data-active-panel="shape"] .dzv-mobile-sheet-content {
    max-height: 132px;
    overflow-y: hidden;
  }

  .dzv-mobile-shell[data-active-panel="shape"] .dzv-mobile-panel-help {
    position: static;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 0 8px;
    box-shadow: none;
  }
}


/* 0.4.14-dev.12: a Forma súgódoboz jobb kerete ne fusson bele a panel overflow-határába. */
@media (max-width: 760px) {
  .dzv-mobile-shell[data-active-panel="shape"] .dzv-mobile-sheet-content {
    padding-right: 3px !important;
  }

  .dzv-mobile-shell[data-active-panel="shape"] .dzv-mobile-panel-help {
    width: calc(100% - 2px) !important;
    max-width: calc(100% - 2px) !important;
    margin-right: 2px !important;
  }
}


/* 0.4.14-dev.13: a Forma súgó kerete belső rajzolással készül, így egyik oldala sem vágható le. */
@media (max-width: 760px) {
  .dzv-mobile-shell[data-active-panel="shape"] .dzv-mobile-panel-help {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 1px 8px 0 !important;
    border: 0 !important;
    box-shadow: inset 0 0 0 1px #dfe3e8 !important;
  }
}


/* 0.4.14-dev.14: a formasor jobb/bal lapozógombja csak a formasor fölött legyen,
   ne fedje le a súgódoboz jobb szélét. */
@media (max-width: 760px) {
  .dzv-mobile-shell[data-active-panel="shape"] .dzv-mobile-shape-cue {
    top: 104px !important;
  }

  .dzv-mobile-shell[data-active-panel="shape"] .dzv-mobile-panel-help {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 0 8px !important;
    border: 1px solid #dfe3e8 !important;
    box-shadow: none !important;
  }
}

/* 0.4.17 – a Divi mobilmenü maradjon a generátor alkalmazásrétege fölött. */
@media (max-width: 760px) {
  body.dzv-generator-mobile-mounted #page-container {
    overflow: visible !important;
  }

  body.dzv-generator-mobile-mounted #main-header,
  body.dzv-generator-mobile-mounted .et-l--header,
  body.dzv-generator-mobile-mounted header[role="banner"] {
    z-index: 100100 !important;
  }

  body.dzv-generator-mobile-mounted #main-header .et_mobile_menu,
  body.dzv-generator-mobile-mounted .et-l--header .et_mobile_menu,
  body.dzv-generator-mobile-mounted .mobile_nav .et_mobile_menu {
    z-index: 100110 !important;
  }
}
