/*
 * R44 CSS-only display/control compatibility layer.
 * Button/control geometry source of truth:
 * D:/拿破仑修复版/3-7备份doudou_lat_backup/www/wwwroot/doudou.lat/assets/info-79tPWUBt.css
 * No JavaScript, auth, WebSocket, API, APK, or database behavior is changed.
 */

/* Keep the current white surrounding UI. */
html body .image-wrapper.with-sidebar[data-v-fc0266af],
html body .image-wrapper.with-sidebar[data-v-fc0266af] > .inner-sidebar[data-v-fc0266af] {
  background: #fff !important;
  background-color: #fff !important;
}

/* Keep the current black viewport and preserve live-frame intrinsic dimensions. */
html body .screenlayers[data-v-fc0266af] {
  height: auto !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #05070a !important;
  background-color: #05070a !important;
}

html body .screenlayers[data-v-fc0266af] > img:not([data-wx-keyboard-cover="1"]) {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
}

@supports selector(:has(*)) {
  html body .screenlayers[data-v-fc0266af]:not(:has(> img[src^="data:image/"])) {
    aspect-ratio: 1 / 2 !important;
    min-height: 0 !important;
  }
  html body .screenlayers[data-v-fc0266af]:has(> img[src^="data:image/"]) {
    aspect-ratio: auto !important;
    min-height: 0 !important;
  }
}

/*
 * Restore the complete effective button/control layout from the Napoleon backup.
 * Apply on desktop/control-panel widths, including Windows 150% display scaling.
 */
@media (min-width: 768px) {
  html body .image-container[data-v-fc0266af] {
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-top: 20px !important;
  }

  html body .content-wrapper[data-v-fc0266af] {
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 40px !important;
    overflow: visible !important;
  }

  html body .tabs-wrapper[data-v-fc0266af] {
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    flex: 0 1 auto !important;
    overflow: visible !important;
  }

  html body .tabs-wrapper[data-v-fc0266af] .n-tabs-tab {
    height: 42px !important;
    padding: 0 20px !important;
    justify-content: center !important;
    font-size: 15px !important;
    line-height: 42px !important;
  }

  html body .image-box-group[data-v-fc0266af] {
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    flex: 0 1 auto !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }

  html body .image-box[data-v-fc0266af] {
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    flex: 0 1 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  html body .button-container[data-v-fc0266af] {
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: auto !important;
    flex-wrap: nowrap !important;
    align-items: normal !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
  }

  html body .image-container[data-v-fc0266af] .n-button {
    min-height: auto !important;
  }

  html body .image-container[data-v-fc0266af] .button-row[data-v-fc0266af] {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-width: auto !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  html body .image2-input-wrapper[data-v-fc0266af] {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    justify-content: center !important;
    margin-top: 16px !important;
  }

  html body .image2-input-row[data-v-fc0266af] {
    display: flex !important;
    width: 470px !important;
    max-width: none !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
  }

  html body .image2-input-row[data-v-fc0266af] .n-input-wrapper,
  html body .image2-input-row[data-v-fc0266af] .n-input {
    width: 350px !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 1 auto !important;
  }

  html body .image2-input-row[data-v-fc0266af] .n-button {
    width: 180px !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 1 auto !important;
  }
}

/* Preserve the compact responsive stack below the control-panel breakpoint. */
@media (max-width: 767px) {
  html body .image2-input-row[data-v-fc0266af] {
    width: 100% !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  html body .image2-input-row[data-v-fc0266af] .n-input,
  html body .image2-input-row[data-v-fc0266af] .n-button {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }
}

/* Latest-app-update badge: light background, never a dark bar. */
html body .layout-header-right[data-v-58dc70c3] > div:first-child > span:first-child[style*="background-color"] {
  display: inline-flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  padding: 10px 14px !important;
  border: 1px solid #f6c453 !important;
  border-radius: 999px !important;
  background: #fffaf0 !important;
  background-color: #fffaf0 !important;
  color: #c45100 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}