* {
  box-sizing: border-box;
}

.mobile-records {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.mobile-record {
  min-width: 0;
}
.mobile-record-field {
  min-width: 0;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.mobile-record-label {
  color: #888;
  font-size: 12px;
  margin-bottom: 4px;
}
.mobile-record-summary > :first-child {
  font-size: 16px;
  font-weight: 600;
}
.mobile-record summary {
  color: #db2777;
  cursor: pointer;
  padding: 12px 0;
}
.mobile-record-actions {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}
@media (max-width: 767px) {
  .ant-pro-layout .ant-pro-layout-content {
    padding: 16px !important;
    min-width: 0;
  }
  .ant-pro-layout-container,
  .ant-layout-content,
  .ant-space-item {
    min-width: 0;
  }
  .ant-card-head {
    flex-wrap: wrap;
    padding: 12px 16px !important;
  }
  .ant-card-head-wrapper {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .ant-card-head-title {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .ant-card-body {
    padding: 16px !important;
  }
  .ant-card-extra {
    margin-inline-start: 0 !important;
    max-width: 100%;
  }
  .ant-btn {
    min-height: 44px;
    min-width: 44px;
    height: auto;
    white-space: normal;
  }
  .ant-input,
  .ant-input-number-input {
    font-size: 16px !important;
  }
  .ant-select-single {
    min-height: 44px;
  }
  .ant-space {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .mobile-record .ant-space,
  .mobile-record-actions {
    overflow-wrap: anywhere;
  }
  .mobile-record .ant-typography {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .ant-drawer-content-wrapper {
    max-width: 100vw;
  }
  .ant-drawer-right > .ant-drawer-content-wrapper {
    width: 100% !important;
  }
  .ant-drawer-body {
    padding: 16px !important;
  }
  .ant-drawer-footer,
  .ant-modal-footer {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .ant-modal {
    max-width: calc(100vw - 24px);
    margin: 12px auto;
    top: 0;
    padding-bottom: 12px;
  }
  .ant-modal .ant-form > .ant-space,
  .mobile-filter .ant-space {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .ant-modal .ant-form-item,
  .ant-modal .ant-form-item-control-input,
  .mobile-filter .ant-input-affix-wrapper,
  .mobile-filter .ant-select,
  .mobile-filter .ant-input {
    width: 100% !important;
    max-width: 100%;
  }
  .ant-modal .ant-form-item {
    margin-inline-end: 0 !important;
  }
  .ant-modal .ant-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .ant-descriptions-item-content {
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .ant-image {
    max-width: 100%;
  }
  pre {
    max-width: 100%;
    overflow-x: auto;
  }
}
@media (max-width: 767px) {
  .ant-card-head-title {
    flex-basis: 100%;
  }
  .ant-card-extra .ant-space {
    gap: 8px !important;
  }
  .mobile-record .ant-typography code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .mobile-filter .ant-space-item > .ant-btn {
    width: 100%;
  }
}

.ant-layout-content,
.ant-card,
.ant-pro-layout-content {
  min-width: 0;
}
@media (max-width: 767px) {
  .ant-card-head-wrapper {
    align-items: flex-start;
    flex-direction: column;
  }
}
.mobile-record-previews {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 767px) {
  .ant-switch {
    min-height: 44px;
    min-width: 64px;
  }
  .ant-switch .ant-switch-handle {
    top: calc(50% - 9px);
  }
  .ant-modal-container {
    max-height: calc(100dvh - 24px);
    display: flex;
    flex-direction: column;
  }
  .ant-modal-body {
    min-height: 0;
    overflow-y: auto;
  }
  .ant-modal-header,
  .ant-modal-footer {
    flex-shrink: 0;
  }
}
@media (max-width: 767px) {
  .mobile-record .ant-card-head-title {
    font-size: 16px;
    font-weight: 600;
  }
  .mobile-record .ant-card-head-title .ant-typography {
    display: block;
    max-width: 100%;
  }
  .ant-pagination-prev,
  .ant-pagination-next,
  .ant-pagination-prev > button,
  .ant-pagination-next > button {
    min-width: 44px;
    min-height: 44px;
  }
  .ant-typography-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    vertical-align: middle;
  }
}
.mobile-record .ant-card-head-title {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.mobile-record-title {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .theme-effect-row {
    flex-wrap: wrap;
  }
  .theme-effect-name {
    min-width: 0;
    flex-basis: calc(100% - 100px) !important;
    overflow-wrap: anywhere;
  }
}
body {
  margin: 0;
  padding: 0;
}
