html,
body,
#root {
  min-height: 100%;
  margin: 0;
  scrollbar-gutter: stable;
}

body {
  background: #f4f6f9;
  color: #1f2937;
  overflow-y: scroll;
}

.compact-notice {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #475467;
  font-size: 12px;
  line-height: 20px;
}

.compact-notice-marker {
  display: inline-grid;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #1677ff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.compact-notice-success .compact-notice-marker {
  color: #389e0d;
}

.compact-notice-warning .compact-notice-marker {
  color: #d48806;
}

.compact-notice-error .compact-notice-marker {
  color: #cf1322;
}

.compact-notice-message {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
}

.compact-notice-warning .compact-notice-message {
  color: #8c5a00;
}

.compact-notice-error .compact-notice-message {
  color: #b42318;
}

.compact-notice-detail-button.ant-btn {
  height: 20px;
  padding: 0 2px;
  font-size: 12px;
}

.compact-notice-action {
  display: inline-flex;
  flex: 0 0 auto;
}

.compact-notice-action .ant-btn {
  height: 22px;
  padding: 0 7px;
  font-size: 12px;
}

.compact-notice-detail {
  max-width: min(440px, calc(100vw - 48px));
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.6;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #eef3f8;
}

.login-card {
  width: min(420px, 100%);
  box-shadow: 0 16px 42px rgba(15, 35, 65, 0.12);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand .ant-typography {
  margin-bottom: 0;
}

.login-note {
  margin: 14px 0 0;
}

.app-layout {
  min-height: 100vh;
}

.sidebar {
  position: relative;
  min-height: 100vh;
  min-width: 220px;
  background: #fff !important;
  border-right: 1px solid #e8edf3;
  box-shadow: 1px 0 0 rgba(17, 24, 39, 0.02);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 68px;
  padding: 0 18px;
  color: #172033;
  background: #fff;
  border-bottom: 1px solid #edf1f5;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  overflow: hidden;
  background: transparent;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: #7b8794;
  font-size: 12px;
}

.sidebar .ant-menu {
  margin-top: 12px;
  padding: 0 10px var(--sidebar-menu-bottom-padding, 0);
  color: #303846;
  background: transparent !important;
}

.sidebar .ant-menu-dark,
.sidebar .ant-menu-dark > .ant-menu,
.sidebar .ant-menu-dark .ant-menu-sub,
.sidebar .ant-menu-sub {
  color: #303846;
  background: transparent !important;
}

.sidebar .ant-menu-inline {
  border-inline-end: 0;
}

.sidebar .ant-menu .ant-menu-item,
.sidebar .ant-menu .ant-menu-submenu-title {
  width: 100%;
  height: 40px;
  margin: 3px 0;
  padding-inline: 22px 16px !important;
  border-radius: 8px;
  color: #303846 !important;
  font-size: 14px;
  line-height: 40px;
}

.sidebar .ant-menu .ant-menu-submenu-title {
  margin-bottom: 3px;
}

.sidebar .ant-menu .ant-menu-item-selected {
  color: #1768e5 !important;
  background: transparent !important;
  border-radius: 0;
  box-shadow: inset 3px 0 0 #1768e5;
  font-weight: 500;
}

.sidebar .ant-menu .ant-menu-item:hover,
.sidebar .ant-menu .ant-menu-submenu-title:hover {
  color: #1768e5 !important;
  background: #f7faff !important;
}

.sidebar .ant-menu .ant-menu-submenu-open > .ant-menu-submenu-title {
  color: #303846 !important;
  background: transparent !important;
}

.sidebar .ant-menu .ant-menu-submenu-arrow {
  color: #6f7b8a !important;
}

.sidebar .ant-menu .ant-menu-sub .ant-menu-item {
  height: 36px;
  margin: 2px 0;
  padding-inline-start: 36px !important;
  font-size: 13.5px;
  line-height: 36px;
}

.nav-icon {
  display: none;
  width: 18px;
  min-width: 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 15px;
}

.sidebar .ant-menu-title-content {
  margin-inline-start: 0;
}

.app-version-label {
  position: fixed;
  left: 18px;
  bottom: 14px;
  z-index: 20;
  width: 184px;
  padding: 5px 0;
  color: #8b97a6;
  background: rgba(250, 252, 255, 0.92);
  border: 1px solid rgba(232, 237, 243, 0.92);
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 1px;
  pointer-events: none;
}

.table-loading-empty {
  display: block;
  padding: 24px 0;
  color: #8b97a6;
  font-size: 13px;
  text-align: center;
}

.login-version-label {
  position: fixed;
  left: 18px;
  bottom: 14px;
  color: #8b97a6;
  font-size: 11px;
  line-height: 1.4;
  cursor: help;
}

.material-report-pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #e8edf3;
}

.topbar-note {
  margin-left: 14px;
  font-size: 12px;
}

.main-content {
  min-width: 0;
  padding: 24px;
}

.dashboard-authority-value {
  margin: 4px 0 12px;
  color: #111827;
  font-size: 24px;
  font-weight: 600;
}

.main-content:has(.material-workspace) {
  padding: 18px 20px;
  height: calc(100vh - 64px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-header,
.table-toolbar,
.step-actions,
.plan-account-title,
.plan-option-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header {
  margin-bottom: 20px;
}

.main-content:has(.material-workspace) .page-header {
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.page-header .ant-typography {
  margin-bottom: 2px;
}

.content-card,
.section-card {
  border: 1px solid #e7ecf2;
  box-shadow: 0 2px 8px rgba(23, 43, 77, 0.03);
}

.filter-card + .content-card {
  margin-top: 14px;
}

.material-real-card + .material-real-card {
  margin-top: 14px;
}

.material-real-notice {
  flex: 0 0 auto;
  margin-bottom: 6px;
}

.material-real-notice.ant-alert,
.material-real-notice .ant-alert {
  padding: 4px 10px;
}

.material-real-notice .ant-alert-message {
  font-size: 12px;
  line-height: 18px;
}

.material-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.material-directory-card {
  min-width: 240px;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.material-directory-card .ant-card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.material-directory-group {
  margin-top: 10px;
}

.material-directory-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 4px 8px;
  color: #6b7280;
  font-size: 12px;
}

.material-directory-title > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-directory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 30px;
  margin: 1px 0;
  padding: 0 8px 0 10px;
  color: #1f2937;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: default;
  text-align: left;
}

.material-directory-item:hover {
  background: #f2f6ff;
}

.material-directory-item.active {
  color: #1768e5;
  background: #eaf2ff;
  font-weight: 600;
}

.material-directory-item.nested {
  padding-left: 18px;
}

.material-directory-main {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  min-height: 30px;
  height: auto;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  gap: 6px;
  text-align: left;
}

.material-directory-toggle-button,
.material-directory-label-button {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 30px;
  height: auto;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
}

.material-directory-toggle-button {
  flex: 0 0 16px;
  align-self: flex-start;
  justify-content: flex-start;
  padding-top: 5px;
  cursor: pointer;
}

.material-directory-toggle-button:disabled {
  cursor: default;
}

.material-directory-label-button {
  flex: 1 1 auto;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
  padding: 5px 0;
  cursor: pointer;
  text-align: left;
}

.material-directory-toggle {
  position: relative;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  color: #8b95a5;
}

.material-directory-toggle::before {
  position: absolute;
  top: 3px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(-45deg);
  transform-origin: center;
}

.material-directory-toggle.expanded::before {
  top: 2px;
  transform: rotate(45deg);
}

.material-directory-toggle.empty::before {
  display: none;
}

.material-directory-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #2563eb;
}

.material-directory-icon.kind-all {
  color: #2563eb;
}

.material-directory-icon.kind-all::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 7px 0 0 currentColor, 0 7px 0 currentColor, 7px 7px 0 currentColor;
  content: "";
}

.material-directory-icon.kind-recent {
  color: #0f8f85;
}

.material-directory-icon.kind-recent::before {
  position: absolute;
  inset: 2px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.material-directory-icon.kind-recent::after {
  position: absolute;
  top: 5px;
  left: 8px;
  width: 4px;
  height: 5px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  content: "";
}

.material-directory-icon.kind-mine {
  color: #7c3aed;
}

.material-directory-icon.kind-mine::before {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.material-directory-icon.kind-mine::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 7px 7px 3px 3px;
  content: "";
}

.material-directory-icon.kind-person,
.material-directory-icon.kind-subfolder,
.material-directory-icon.kind-deepfolder,
.material-directory-icon.kind-unfiled {
  color: #1d6eea;
}

.material-directory-icon.kind-subfolder {
  color: #0f9f6e;
}

.material-directory-icon.kind-deepfolder {
  color: #d97706;
}

.material-directory-icon.kind-unfiled {
  color: #64748b;
}

.material-directory-icon.kind-person::before,
.material-directory-icon.kind-subfolder::before,
.material-directory-icon.kind-deepfolder::before,
.material-directory-icon.kind-unfiled::before {
  position: absolute;
  top: 5px;
  left: 1px;
  width: 14px;
  height: 10px;
  background: color-mix(in srgb, currentColor 10%, white);
  border: 1.4px solid currentColor;
  border-radius: 2px;
  content: "";
}

.material-directory-icon.kind-person::after,
.material-directory-icon.kind-subfolder::after,
.material-directory-icon.kind-deepfolder::after,
.material-directory-icon.kind-unfiled::after {
  position: absolute;
  top: 3px;
  left: 2px;
  width: 7px;
  height: 4px;
  background: #fff;
  border: 1.4px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  content: "";
}

.material-directory-icon.kind-person::before {
  box-shadow: inset 9px 0 0 color-mix(in srgb, currentColor 15%, white);
}

.material-directory-icon.kind-person::after {
  box-shadow: 8px 5px 0 -2px currentColor;
}

.material-directory-icon.kind-subfolder::before {
  box-shadow: inset 3px 0 0 currentColor;
}

.material-directory-icon.kind-deepfolder::before {
  box-shadow: inset 0 -3px 0 color-mix(in srgb, currentColor 24%, white);
}

.material-directory-icon.kind-unfiled::before {
  border-style: dashed;
}

.material-directory-item.active .material-directory-toggle,
.material-directory-item.active .material-directory-icon {
  color: #1768e5;
}

.material-directory-label {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.material-directory-item.is-subfolder {
  min-height: 29px;
}

.material-directory-item.is-subfolder .material-directory-main {
  align-items: center;
  min-height: 29px;
  height: 29px;
  gap: 4px;
}

.material-directory-item.is-subfolder .material-directory-toggle-button {
  align-self: center;
  align-items: center;
  min-height: 29px;
  height: 29px;
  padding-top: 0;
}

.material-directory-item.is-subfolder .material-directory-label-button {
  align-items: center;
  min-height: 29px;
  height: 29px;
  padding: 0;
  gap: 4px;
}

.material-directory-item.is-subfolder .material-directory-icon {
  margin-top: 0;
}

.material-directory-item.is-subfolder .material-directory-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 12px;
  font-weight: 400;
  line-height: 29px;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

.material-directory-item.is-subfolder.active .material-directory-label {
  font-weight: 600;
}

.material-directory-item em {
  color: #8b95a5;
  font-style: normal;
  font-size: 12px;
}

.material-directory-node-hint {
  color: #8b95a5;
  font-size: 12px;
  line-height: 24px;
  white-space: nowrap;
}

.material-main-panel {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.material-filter-card .ant-card-body {
  padding: 6px 8px;
}

.material-filter-card {
  flex: 0 0 auto;
}

.material-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.material-search-row .ant-btn,
.material-filter-grid-v11 .ant-btn {
  height: 26px;
  padding: 0 10px;
}

.material-main-search-input {
  flex: 0 0 300px;
  max-width: 300px;
}

.material-main-search-input .ant-input-wrapper,
.material-main-search-input .ant-input-affix-wrapper,
.material-main-search-input .ant-input-group-addon,
.material-main-search-input .ant-input-search-button {
  height: 26px;
}

.material-main-search-input .ant-input-affix-wrapper {
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.material-main-search-input .ant-input-group-addon {
  padding: 0;
}

.material-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) 100px;
  gap: 8px;
  margin-top: 8px;
}

.material-table-card {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  margin-top: 6px;
}

.material-table-card .ant-card-body {
  min-height: 0;
  overflow: visible;
  padding: 6px 8px;
}

.material-action-bar,
.material-table-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.material-action-bar {
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 8px;
  margin-bottom: 2px;
}

.material-action-left,
.material-action-right {
  row-gap: 4px !important;
}

.material-action-bar .ant-btn {
  height: 26px;
  padding: 0 9px;
}

.material-list-inline-notice {
  flex: 0 0 auto;
  margin-top: 6px;
}

.material-table-summary {
  flex: 0 0 auto;
  margin: 2px 0;
  padding: 4px 8px;
  background: #f7f9fc;
  border-radius: 6px;
  font-size: 12px;
}

.material-summary-stats {
  flex: 1 1 auto;
  min-width: 0;
  row-gap: 3px;
}

.material-summary-note {
  flex: 0 1 260px;
  max-width: 100%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-thumb {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.material-thumb-image {
  color: #08979c;
  background: #d9f7f5;
}

.material-thumb-video {
  color: #1768e5;
  background: #e6f0ff;
}

.material-filter-grid-v11 {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.material-filter-grid-v11 .ant-select {
  flex: 0 0 auto;
  min-width: 116px;
  max-width: 190px;
}

.material-filter-grid-v11 .ant-select-selector,
.material-filter-grid-v11 .ant-picker {
  min-height: 26px;
}

.material-filter-grid-v11 .material-date-range-filter {
  flex: 0 0 252px;
  width: 252px;
}

.material-date-range-presets {
  padding-top: 2px;
}

.material-date-range-presets .ant-btn {
  height: 22px;
  padding: 0 4px;
  color: #16a34a;
  font-size: 12px;
}

.material-filter-grid-v11 .material-uploader-filter {
  width: 132px;
}

.material-filter-grid-v11 .material-type-filter {
  width: 104px;
}

.material-filter-grid-v11 .material-tag-filter {
  width: 124px;
}

.material-filter-grid-v11 .ant-btn {
  flex: 0 0 auto;
}

.material-table-card .ant-table {
  font-size: 12px;
}

.material-table-card .ant-table-wrapper {
  min-height: 0;
  overflow: visible;
}

.material-table-card .ant-spin-nested-loading,
.material-table-card .ant-spin-container {
  min-height: 0;
}

.material-table-card .ant-spin-container {
  display: block;
}

.material-table-card .ant-table {
  min-height: 0;
}

.material-table-card .ant-table-container {
  height: auto;
  min-height: 0;
}

.material-table-card .ant-table-header {
  flex: 0 0 auto;
  overflow: hidden !important;
  position: relative;
  z-index: 1;
  background: #fff;
}

.material-table-card .ant-table-body {
  min-height: 0;
  overflow: auto !important;
}

.material-table-card .ant-table-thead > tr > th {
  background: #fff;
}

.material-table-card .ant-pagination {
  flex: 0 0 auto;
  margin: 8px 0 0;
}

.material-table-card .ant-table-thead > tr > th,
.material-table-card .ant-table-tbody > tr > td {
  padding: 7px 8px;
}

.material-inline-create-folder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px;
  gap: 8px;
  margin: -8px 0 14px;
}

.material-upload-modal .ant-modal-body {
  max-height: min(80vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.material-upload-modal.is-upload-session .ant-modal-content {
  display: flex;
  flex-direction: column;
  height: min(796px, calc(100vh - 36px));
}

.material-upload-modal.is-upload-session .ant-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.material-upload-modal.is-upload-session .ant-modal-header,
.material-upload-modal.is-upload-session .ant-modal-footer {
  flex: 0 0 auto;
}

.material-upload-modal .ant-upload-list {
  max-height: min(28vh, 220px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.material-upload-modal.is-uploading.has-many-files .ant-upload-list {
  height: 180px;
  min-height: 180px;
  max-height: 180px;
}

.material-upload-modal.is-uploading .ant-upload-list-item,
.material-upload-modal.is-uploading .ant-upload-list-item-container {
  transition: none !important;
  animation: none !important;
}

.material-upload-modal .ant-modal-body::-webkit-scrollbar,
.material-upload-modal .ant-upload-list::-webkit-scrollbar {
  width: 6px;
}

.material-upload-modal .ant-modal-body::-webkit-scrollbar-thumb,
.material-upload-modal .ant-upload-list::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.material-upload-modal .ant-modal-body:hover::-webkit-scrollbar-thumb,
.material-upload-modal .ant-upload-list:hover::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
}

.material-upload-modal .ant-upload-list-item {
  min-height: 26px;
}

.material-upload-detail-list {
  display: grid;
  gap: 2px;
  overflow: hidden;
}

.material-upload-detail-list.is-collapsed {
  max-height: none;
}

.material-upload-detail-list.is-expanded {
  max-height: 240px;
  overflow: auto;
  padding: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.material-upload-detail-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  min-height: 26px;
  padding: 1px 4px;
  font-size: 12px;
  line-height: 24px;
}

.material-upload-detail-row:hover {
  background: #f5f5f5;
}

.material-upload-detail-row.is-failed {
  background: #fff7f7;
}

.material-upload-count-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.material-upload-file-icon {
  color: #8c8c8c;
  line-height: 1;
}

.material-upload-summary-card {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}

.material-upload-summary-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

.material-upload-file-name {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: #374151;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.material-upload-file-status {
  white-space: nowrap;
}

.material-upload-more-line {
  line-height: 22px;
  padding-left: 4px;
}

.material-upload-failed-list {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
  padding: 8px 10px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff7f7;
}

.material-upload-failed-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(180px, 1.1fr);
  gap: 10px;
  align-items: start;
  font-size: 12px;
}

.material-upload-failed-reason {
  overflow-wrap: anywhere;
  white-space: normal;
}

.material-upload-current-file {
  display: inline-block;
  max-width: 430px;
  overflow: hidden;
  color: #374151;
  font-weight: 500;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.material-upload-collapse-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding-left: 22px;
  font-size: 12px;
}

.material-upload-collapse-row .ant-btn-link {
  height: 22px;
  padding: 0;
  font-size: 12px;
}

.material-upload-stage-row {
  min-height: 20px;
  padding-left: 22px;
  font-size: 12px;
}

.material-batch-search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.material-upload-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(220px, 1fr) minmax(160px, 0.7fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: start;
}

.material-upload-grid .ant-form-item {
  margin-bottom: 12px;
}

.material-path-cell {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.material-detail-long-text {
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.material-upload-plus {
  margin: 0;
  color: #1768e5;
  font-size: 32px;
  line-height: 1;
}

.section-card {
  margin-top: 16px;
}

.metric-card {
  min-height: 112px;
  overflow: hidden;
  border: 1px solid #e7ecf2;
  border-left-width: 4px;
}

.metric-card .ant-card-body {
  padding: 16px 18px;
}

.metric-blue { border-left-color: #1677ff; }
.metric-green { border-left-color: #52c41a; }
.metric-red { border-left-color: #ff4d4f; }
.metric-orange { border-left-color: #fa8c16; }

.metric-card .ant-statistic-title {
  font-size: 13px;
}

.metric-card .ant-statistic-content {
  font-size: 26px;
}

.metric-card .ant-typography {
  font-size: 12px;
}

.metric-clickable {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.metric-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(23, 43, 77, 0.08);
}

.dashboard-middle {
  margin-top: 12px;
}

.dashboard-card .ant-card-head {
  min-height: 42px;
  padding: 0 14px;
}

.dashboard-card .ant-card-head-title {
  padding: 10px 0;
  font-size: 15px;
}

.dashboard-card .ant-card-body {
  padding: 14px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-actions .ant-btn {
  height: 34px;
}

.compact-link {
  height: auto;
  padding: 0;
}

.dashboard-card .ant-table-thead > tr > th,
.dashboard-card .ant-table-tbody > tr > td {
  padding: 8px 10px;
  font-size: 12px;
}

.dashboard-card .ant-alert {
  padding: 8px 10px;
}

.dashboard-role-page {
  --dashboard-accent: #2f7cf6;
  --dashboard-accent-soft: #edf4ff;
  color: #1f2937;
}

.dashboard-role-supervisor {
  --dashboard-accent: #6d5ce7;
  --dashboard-accent-soft: #f2f0ff;
}

.dashboard-role-operator {
  --dashboard-accent: #5b5bd6;
  --dashboard-accent-soft: #f1f1ff;
}

.dashboard-role-editor {
  --dashboard-accent: #168b8f;
  --dashboard-accent-soft: #edf9f8;
}

.dashboard-role-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 132px;
  padding: 22px 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5eaf1;
  border-top: 3px solid var(--dashboard-accent);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(29, 46, 74, 0.045);
}

.dashboard-role-intro {
  min-width: 0;
}

.dashboard-role-kicker {
  margin-bottom: 5px;
  color: var(--dashboard-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.dashboard-role-intro h2 {
  margin: 0;
  color: #172033;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.dashboard-role-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #758196;
  font-size: 12px;
}

.dashboard-role-status .ant-tag {
  margin-left: 2px;
  border-radius: 999px;
}

.dashboard-quick-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 460px;
  gap: 8px;
}

.dashboard-quick-actions .ant-btn {
  height: 34px;
  padding-inline: 15px;
  border-radius: 6px;
}

.dashboard-quick-actions .ant-btn-primary {
  background: var(--dashboard-accent);
  border-color: var(--dashboard-accent);
  box-shadow: none;
}

.dashboard-load-alert {
  margin-top: 12px;
}

.dashboard-first-load {
  margin-top: 8px;
}

.dashboard-empty-card {
  border-radius: 8px;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.dashboard-metric-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 260px));
}

.dashboard-metric-grid .metric-card {
  min-width: 0;
  min-height: 116px;
  border-top-color: #e7ecf2;
  border-right-color: #e7ecf2;
  border-bottom-color: #e7ecf2;
  border-radius: 8px;
  box-shadow: none;
}

.dashboard-metric-grid .metric-card .ant-card-body {
  padding: 15px 16px;
}

.dashboard-metric-grid .metric-card .ant-statistic-content {
  margin: 2px 0 5px;
  color: #172033;
  font-size: 24px;
  font-weight: 600;
}

.dashboard-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 12px;
}

.dashboard-primary-grid > .section-card {
  height: calc(100% - 16px);
}

.dashboard-action-card,
.dashboard-overview-card,
.dashboard-editor-focus,
.dashboard-recent-card {
  border-color: #e5eaf1;
  border-radius: 9px;
  box-shadow: 0 3px 14px rgba(29, 46, 74, 0.035);
}

.dashboard-action-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-action-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f4;
}

.dashboard-action-row:last-child {
  border-bottom: 0;
}

.dashboard-action-dot {
  width: 7px;
  height: 7px;
  background: #7c8ba1;
  border-radius: 50%;
}

.dashboard-action-danger .dashboard-action-dot {
  background: #e5484d;
  box-shadow: 0 0 0 4px #fff0f0;
}

.dashboard-action-warning .dashboard-action-dot {
  background: #d98b16;
  box-shadow: 0 0 0 4px #fff6e8;
}

.dashboard-action-neutral .dashboard-action-dot {
  background: #4a7ee7;
  box-shadow: 0 0 0 4px #edf4ff;
}

.dashboard-action-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.dashboard-action-copy > .ant-typography {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-calm-state {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 132px;
  padding: 0 12px;
}

.dashboard-calm-check {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: #258456;
  font-size: 18px;
  background: #eaf8f0;
  border-radius: 50%;
}

.dashboard-overview-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.dashboard-overview-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-overview-pair > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: #f7f9fc;
  border: 1px solid #edf0f4;
  border-radius: 7px;
}

.dashboard-overview-pair strong {
  overflow: hidden;
  color: #172033;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-overview-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 26px;
  color: #5d697b;
  font-size: 13px;
}

.dashboard-overview-line b {
  color: #172033;
  font-weight: 600;
  text-align: right;
}

.dashboard-overview-card .ant-progress {
  margin: -5px 0 1px;
}

.dashboard-editor-focus-main {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 8px 0 18px;
}

.dashboard-editor-focus-main > div:not(.dashboard-editor-focus-divider) {
  min-width: 130px;
}

.dashboard-editor-focus-value {
  margin-bottom: 2px;
  color: #172033;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.dashboard-editor-focus-divider {
  width: 1px;
  height: 44px;
  background: #e7ebf0;
}

.dashboard-editor-focus-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.dashboard-role-editor .dashboard-editor-focus-actions .ant-btn-primary {
  background: var(--dashboard-accent);
  border-color: var(--dashboard-accent);
  box-shadow: none;
}

.dashboard-editor-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 132px;
  justify-content: center;
  padding: 0 4px;
}

.dashboard-recent-card .ant-table-wrapper {
  margin: -2px 0;
}

.dashboard-recent-card .ant-table-thead > tr > th {
  color: #536074;
  font-weight: 500;
  background: #f7f9fc;
}

.dashboard-batch-id-button {
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  background: transparent;
  cursor: pointer;
}

.dashboard-batch-id-button:hover,
.dashboard-batch-id-button:focus-visible {
  color: #2f7cf6;
  text-decoration: underline;
  outline: none;
}

.dashboard-data-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 12px 2px 4px;
  color: #8994a5;
  font-size: 11px;
}

.dashboard-data-footnote span + span::before {
  margin-right: 16px;
  color: #c2c9d3;
  content: "·";
}

@media (max-width: 1280px) {
  .dashboard-role-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .dashboard-quick-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .dashboard-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-metric-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-role-hero {
    padding: 19px;
  }

  .dashboard-role-intro h2 {
    font-size: 20px;
  }

  .dashboard-role-status {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .dashboard-metric-grid,
  .dashboard-metric-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-primary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-primary-grid > .section-card {
    height: auto;
  }
}

@media (max-width: 560px) {
  .dashboard-role-hero {
    padding: 17px;
  }

  .dashboard-quick-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-quick-actions .ant-btn {
    padding-inline: 8px;
  }

  .dashboard-metric-grid,
  .dashboard-metric-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-action-row {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .dashboard-action-row > .ant-btn {
    grid-column: 2;
    justify-self: start;
  }

  .dashboard-overview-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-editor-focus-main {
    gap: 18px;
  }

  .dashboard-editor-focus-main > div:not(.dashboard-editor-focus-divider) {
    min-width: 0;
  }

  .dashboard-editor-focus-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-data-footnote {
    flex-direction: column;
  }

  .dashboard-data-footnote span + span::before {
    display: none;
  }
}

.flow-steps {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 22px 0;
  color: #1768e5;
}

.flow-steps b {
  color: #a7b3c5;
}

.table-toolbar {
  min-height: 42px;
  margin-bottom: 14px;
}

.selection-note {
  margin: 4px 0 12px;
  color: #667085;
}

.material-selection-toolbar,
.batch-search-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.material-selection-toolbar {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid #d8e7ff;
  border-radius: 6px;
  background: #fbfdff;
}

.batch-search-actions {
  margin: 12px 0;
}

.batch-search-button {
  border-color: #08a057 !important;
  background: #08a057 !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 2px 7px rgba(8, 160, 87, 0.2);
}

.batch-search-button:hover,
.batch-search-button:focus {
  border-color: #078746 !important;
  background: #078746 !important;
  color: #fff !important;
}

.batch-search-button .batch-search-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.batch-search-button[disabled],
.batch-search-button.ant-btn-disabled {
  border-color: #d9d9d9 !important;
  background: #f5f5f5 !important;
  color: rgba(0, 0, 0, 0.25) !important;
  box-shadow: none;
}

.batch-search-button[disabled] .batch-search-icon,
.batch-search-button.ant-btn-disabled .batch-search-icon {
  background: rgba(0, 0, 0, 0.08);
}

.batch-search-summary {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: #f7f9fc;
}

.batch-search-summary .ant-statistic-content {
  font-size: 20px;
}

.compact-search-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0;
  padding: 6px 8px;
  border-radius: 5px;
  background: #f7f9fc;
  color: #667085;
  font-size: 12px;
}

.compact-search-summary span {
  white-space: nowrap;
}

.compact-search-summary b {
  margin: 0 2px;
  color: #101828;
  font-size: 14px;
}

.material-search-result-table .ant-table {
  font-size: 14px;
}

.material-search-result-table .ant-table-thead > tr > th,
.material-search-result-table .ant-table-tbody > tr > td {
  padding: 6px 8px !important;
}

.batch-match-cell {
  display: block;
  min-width: 0;
  color: #303133;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.batch-match-cell .ant-typography {
  display: block;
  max-width: 100%;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.compact-distribute-modal textarea.ant-input {
  font-size: 12px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(230px, 1.5fr) 128px 118px 160px 88px;
  gap: 10px;
}

.material-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  font-size: 13px;
}

.material-icon.video {
  color: #1768e5;
  background: #eaf3ff;
}

.material-icon.image {
  color: #13a8a8;
  background: #e6fffb;
}

.material-library-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 14px;
}

.directory-card .ant-card-body {
  padding: 8px;
}

.directory-group {
  margin-top: 8px;
}

.directory-group-header,
.person-folder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.directory-group-header .ant-btn {
  height: auto;
  padding: 0 8px;
  font-size: 12px;
}

.directory-group-label {
  padding: 7px 10px 4px;
  color: #98a2b3;
  font-size: 12px;
}

.directory-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  color: #475467;
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.directory-item:hover {
  background: #f4f7fb;
}

.directory-item.active {
  color: #1768e5;
  background: #eaf3ff;
}

.directory-item.nested {
  padding-left: 20px;
  font-size: 13px;
}

.directory-item small {
  color: #98a2b3;
}

.person-folder-node {
  margin-bottom: 2px;
}

.person-folder-row {
  border-radius: 5px;
}

.person-folder-row:hover,
.person-folder-row.active {
  background: #f4f7fb;
}

.person-folder-row.active .person-folder-main {
  color: #1768e5;
}

.person-folder-main {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  overflow: hidden;
  color: #475467;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-toggle {
  width: 24px;
  padding: 8px 0;
  color: #1768e5;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.person-folder-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0;
  padding-right: 5px;
}

.person-folder-actions .ant-btn {
  height: 24px;
  padding: 0 4px;
  font-size: 12px;
}

.person-folder-actions button {
  white-space: nowrap;
}

.person-folder-actions button:hover {
  color: #1768e5;
}

.subfolder-node {
  margin-top: 2px;
}

.subfolder-row .person-folder-main {
  font-size: 13px;
}

.folder-toolbar-actions {
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid #e7ecf2;
}

.folder-toolbar-actions .ant-btn {
  height: 28px;
  padding: 0 9px;
}

.material-toolbar-folder {
  display: inline-block;
  max-width: 220px;
  height: 22px;
  overflow: hidden;
  line-height: 22px;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.material-library-content {
  min-width: 0;
}

.asset-search-row,
.material-action-bar,
.material-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.asset-search-row .ant-input-search {
  max-width: 620px;
}

.asset-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.asset-filter-grid .ant-select {
  min-width: 138px;
}

.report-range-picker {
  min-width: 272px;
}

.report-range-shortcuts {
  padding: 4px 0;
}

.report-range-shortcuts .ant-btn {
  height: 24px;
  padding: 0 7px;
  border-color: #00a854;
  color: #00a854;
  font-size: 12px;
}

.report-range-shortcuts .ant-btn:hover {
  border-color: #00a854 !important;
  color: #00a854 !important;
  background: #f0fff7;
}

.report-range-shortcuts .ant-btn.ant-btn-two-chinese-chars,
.report-range-shortcuts .ant-btn.ant-btn-two-chinese-chars > * {
  letter-spacing: normal;
}

.report-range-shortcuts .report-range-confirm {
  min-width: 92px;
  color: #fff !important;
}

.material-report-filter-card .ant-card-body {
  padding: 6px 8px;
}

.material-report-filter-card .report-filter-grid {
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.material-report-filter-card .report-filter-grid .report-range-picker {
  flex: 0 0 270px;
  width: 270px;
}

.material-report-filter-control {
  display: flex;
  align-items: center;
  height: 28px;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9dfe8;
  border-radius: 4px;
}

.material-report-filter-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 72px;
  height: 100%;
  padding: 0 12px;
  color: #2f3747;
  background: #fff;
  border-right: 1px solid #d9dfe8;
  font-size: 13px;
  line-height: 28px;
  white-space: nowrap;
}

.material-report-material-search-control {
  flex: 0 0 250px;
  min-width: 250px;
  max-width: 250px;
}

.material-report-account-control {
  flex: 0 0 210px;
  min-width: 210px;
  max-width: 210px;
}

.material-report-filter-card .report-filter-grid .material-report-name-search,
.material-report-filter-card .report-filter-grid .material-report-account-select {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.material-report-filter-card .report-filter-grid > .material-report-platform-select {
  flex: 0 0 132px;
  width: 132px;
  min-width: 132px;
  height: 28px;
}

.material-report-filter-card .ant-select,
.material-report-filter-card .ant-picker,
.material-report-filter-card .ant-input,
.material-report-filter-card .ant-btn {
  height: 28px;
  font-size: 12px;
}

.material-report-filter-card .material-report-filter-control .ant-select,
.material-report-filter-card .material-report-filter-control .ant-input {
  height: 26px;
}

.material-report-filter-card .material-report-filter-control .ant-input,
.material-report-filter-card .material-report-filter-control .ant-select-selector {
  border: 0 !important;
  box-shadow: none !important;
}

.material-report-filter-card .material-report-filter-control .ant-input {
  padding: 0 12px;
}

.material-report-filter-card .material-report-filter-control .ant-select-selector {
  height: 26px !important;
  padding: 0 28px 0 12px !important;
  background: transparent !important;
}

.material-report-filter-card .material-report-filter-control .ant-select-selection-search-input {
  height: 26px !important;
}

.material-report-filter-card .material-report-filter-control .ant-select-selection-item,
.material-report-filter-card .material-report-filter-control .ant-select-selection-placeholder {
  line-height: 26px !important;
}

.material-report-filter-card .report-filter-grid > .material-report-platform-select .ant-select-selector {
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 11px !important;
}

.material-report-filter-card .report-filter-grid > .material-report-platform-select .ant-select-selection-search-input {
  height: 28px !important;
}

.material-report-filter-card .report-filter-grid > .material-report-platform-select .ant-select-selection-item,
.material-report-filter-card .report-filter-grid > .material-report-platform-select .ant-select-selection-placeholder {
  line-height: 28px !important;
}

.material-report-filter-card .ant-btn {
  flex: 0 0 auto;
  padding: 0 14px;
}

.material-report-filter-card .green-action-button,
.material-report-filter-card .green-action-button:not(:disabled):hover {
  border-color: #1768e5 !important;
  background: #1768e5 !important;
}

.material-report-card .ant-card-body {
  padding: 10px;
}

.material-report-summary-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(104px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.material-report-summary-item {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f8fafc;
}

.material-report-summary-item span,
.material-report-summary-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-report-summary-item span {
  color: #6b7280;
  font-size: 12px;
}

.material-report-summary-item strong {
  margin-top: 3px;
  color: #111827;
  font-size: 15px;
}

.material-report-page-status {
  min-height: 24px;
  margin: -10px 0 8px;
}

.material-report-subtitle {
  font-size: 12px;
}

.material-report-loading-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  color: #5f6b7a;
  font-size: 12px;
}

.material-report-inline-loading {
  margin: -2px 0 6px;
  padding: 5px 8px;
  color: #5f6b7a;
  background: #f8fbff;
  border: 1px solid #e6eef8;
  border-radius: 4px;
  font-size: 12px;
}

.material-report-safety-alert,
.material-report-error-alert {
  margin-bottom: 12px;
}

.material-report-summary-card .ant-card-body {
  padding: 12px;
}

.material-report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.material-report-metric-card .ant-card-body {
  padding: 12px;
}

.material-report-metric-card .ant-statistic-title {
  margin-bottom: 4px;
  font-size: 12px;
}

.material-report-metric-card .ant-statistic-content {
  font-size: 20px;
}

.material-report-section-row {
  margin-top: 12px;
}

.material-report-distribution-list {
  width: 100%;
}

.material-report-distribution-item {
  width: 100%;
}

.material-report-distribution-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.material-report-card .table-toolbar {
  min-height: 30px;
  gap: 8px;
  margin-bottom: 8px;
}

.material-report-card .table-toolbar .ant-btn,
.material-report-card .table-toolbar .ant-input {
  height: 27px;
  font-size: 12px;
}

.material-report-table .ant-table {
  color: #303846;
  font-size: 12px;
  border: 1px solid #eef1f5;
  border-radius: 4px;
}

.material-report-table .ant-table-thead > tr > th {
  padding: 10px 11px !important;
  background: #fafbfc !important;
  color: #687386;
  border-right: 1px solid #edf0f5 !important;
  border-bottom: 1px solid #e8edf3 !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.material-report-table .ant-table-tbody > tr > td {
  padding: 8px 11px !important;
  color: #4e5969;
  border-right: 1px solid #eef1f5 !important;
  border-bottom: 1px solid #eef1f5 !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
  vertical-align: middle;
}

.material-report-table .ant-table-tbody > tr.ant-table-measure-row {
  height: 0 !important;
  visibility: hidden;
}

.material-report-table .ant-table-tbody > tr.ant-table-measure-row > td {
  height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

.material-report-table .ant-table-tbody > tr.ant-table-measure-row > td > div {
  height: 0 !important;
  overflow: hidden !important;
}

.material-report-table .ant-table-tbody > tr:hover > td {
  background: #fafcff !important;
}

.material-report-table .ant-table-tbody > tr > td.material-report-number-cell {
  color: #5f6b7a;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  text-align: right;
}

.material-report-table .ant-btn-sm {
  height: 20px;
  padding: 0 5px;
  font-size: 11px;
}

.material-report-table .ant-tag {
  margin-inline-end: 3px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 18px;
}

.report-compact-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-tag-line {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.ad-report-filter-card {
  margin-bottom: 12px;
}

.ad-report-filter-card .ant-card-body {
  padding: 14px 18px;
}

.ad-report-notice-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-bottom: 12px;
}

.ad-report-filter-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ad-report-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.ad-report-filter-row:last-child {
  margin-bottom: 0;
}

.ad-report-label {
  color: #111827;
  font-weight: 600;
  white-space: nowrap;
}

.green-segment .ant-radio-button-wrapper {
  height: 32px;
  line-height: 30px;
}

.green-segment .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
  color: #08a34a !important;
  border-color: #08a34a !important;
  background: #effff5 !important;
}

.green-segment .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {
  background-color: #08a34a !important;
}

.ad-report-card .ant-card-body {
  padding: 18px;
}

.ad-report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ad-report-metric-card .ant-card-body {
  padding: 12px 14px;
}

.ad-report-metric-card .ant-statistic-title {
  margin-bottom: 4px;
  color: #6b7280;
}

.ad-report-metric-card .ant-statistic-content {
  color: #111827;
  font-size: 20px;
  font-weight: 700;
}

.ad-report-table .ant-table {
  font-size: 12px;
}

.ad-report-table .ant-table-thead > tr > th {
  padding: 8px 10px !important;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.ad-report-table .ant-table-tbody > tr > td {
  padding: 8px 10px !important;
  font-size: 12px;
  line-height: 1.35;
  vertical-align: middle;
}

.ad-report-table .summary-row > td {
  background: #fafafa !important;
  font-weight: 700;
}

.ad-report-table .ant-tag {
  margin-inline-end: 0;
  padding: 0 5px;
  font-size: 11px;
  line-height: 18px;
}

.auth-detail-card .ant-card-body {
  padding: 14px;
}

.auth-detail-summary {
  margin-bottom: 14px;
}

.auth-account-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -2px 0 10px;
  font-size: 12px;
}

.auth-detail-summary .ant-descriptions-item-label,
.auth-detail-summary .ant-descriptions-item-content {
  padding: 7px 9px !important;
  font-size: 12px;
}

.account-groups-table .ant-table {
  font-size: 13px;
}

.account-groups-table .ant-table-thead > tr > th,
.account-groups-table .ant-table-tbody > tr > td {
  padding: 7px 8px !important;
  line-height: 1.3;
}

.account-groups-table .ant-tag {
  margin-inline-end: 0;
  padding-inline: 5px;
}

.account-groups-table .ant-btn-sm {
  padding-inline: 8px;
}

.account-group-detail-modal .ant-modal-content {
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.account-group-detail-modal .ant-modal-body {
  min-height: 0;
}

.account-group-detail-content,
.account-group-detail-accounts {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.account-group-detail-accounts {
  flex: 1;
}

.account-group-detail-table {
  min-height: 0;
}

.account-group-counts {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.auth-account-table .ant-table {
  font-size: 12px;
}

.auth-account-table .ant-table-thead > tr > th,
.auth-account-table .ant-table-tbody > tr > td {
  padding: 8px 10px !important;
  line-height: 1.35;
}

.auth-account-table .ant-tag {
  margin-inline-end: 4px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 18px;
}

.auth-real-account-card .ant-card-body {
  padding: 12px;
}

.material-list-card {
  margin-top: 14px;
}

.material-list-card .ant-card-body {
  padding: 12px;
}

.material-list-card .ant-table {
  font-size: 12px;
}

.material-list-card .ant-table-thead > tr > th {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.material-list-card .ant-table-tbody > tr > td {
  padding: 6px 10px;
  line-height: 1.35;
}

.material-list-card .ant-table-tbody > tr {
  height: 48px;
}

.material-list-card .material-icon {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  font-size: 11px;
}

.material-list-card .ant-tag {
  margin-inline-end: 4px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 18px;
}

.material-list-card .ant-btn-sm {
  height: 24px;
  padding: 0 5px;
  font-size: 12px;
}

.material-list-card .ant-checkbox-inner {
  width: 14px;
  height: 14px;
}

.batch-record-card .ant-card-body {
  padding: 10px 12px;
}

.batch-record-table .ant-table {
  font-size: 12px;
}

.batch-record-table .ant-table-thead > tr > th {
  padding: 7px 8px !important;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.batch-record-table .ant-table-tbody > tr > td {
  padding: 7px 8px !important;
  font-size: 12px;
  line-height: 1.3;
  vertical-align: middle;
}

.batch-record-table .ant-table-tbody > tr > td .ant-typography {
  font-size: 12px;
}

.batch-record-table .ant-btn-sm {
  height: 23px;
  padding: 0 6px;
  font-size: 12px;
}

.batch-record-table .ant-tag {
  margin-inline-end: 0;
  padding: 0 5px;
  font-size: 11px;
  line-height: 18px;
}

.batch-record-table .ant-table-pagination {
  margin: 8px 0 0;
}

.prepare-detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.prepare-summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fafafa;
  padding: 8px 10px;
  font-size: 12px;
}

.prepare-summary-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.prepare-summary-note {
  flex: 1 1 260px;
}

.prepare-detail-warning {
  padding: 6px 10px;
}

.prepare-detail-warning .ant-alert-message {
  font-size: 12px;
}

.prepare-account-panel,
.prepare-detail-panel {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  padding: 8px;
}

.prepare-detail-section-title {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.prepare-account-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 390px;
  overflow: auto;
}

.prepare-account-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.prepare-account-item:hover,
.prepare-account-item.is-active {
  border-color: #b7eb8f;
  background: #f6ffed;
  box-shadow: inset 3px 0 0 #52c41a;
}

.prepare-account-name,
.prepare-account-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prepare-account-name {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

.prepare-account-meta {
  margin-top: 2px;
  font-size: 11px;
  color: #6b7280;
}

.prepare-account-count {
  display: inline-flex;
  margin-top: 5px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1677ff;
  font-size: 11px;
  line-height: 18px;
  font-weight: 600;
}

.prepare-detail-panel .ant-table {
  table-layout: fixed;
  font-size: 12px;
}

.prepare-detail-panel .ant-table-thead > tr > th,
.prepare-detail-panel .ant-table-tbody > tr > td {
  padding: 7px 8px !important;
}

.prepare-detail-table-wrap {
  max-height: 390px;
  overflow-y: auto;
}

.prepare-detail-panel .ant-table-tbody > tr.prepare-failure-highlight > td {
  background: #fff1f0 !important;
  transition: background 0.2s ease;
}

.prepare-account-plan-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  min-width: 0;
}

.prepare-account-plan-name,
.prepare-account-plan-meta {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prepare-account-plan-name {
  color: #111827;
  font-size: 13px;
  line-height: 19px;
}

.prepare-account-plan-meta {
  color: #6b7280;
  font-size: 12px;
  line-height: 18px;
}

.existing-plan-modal-title,
.task-detail-modal-title {
  display: inline-flex;
  max-width: 100%;
  align-items: baseline;
  gap: 8px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
}

.existing-plan-modal-title span,
.task-detail-modal-title span {
  max-width: 420px;
  overflow: hidden;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.existing-plan-overview {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #fbfcfe;
}

.existing-plan-overview-main,
.existing-plan-overview-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.existing-plan-overview-main {
  color: #4b5563;
  font-size: 13px;
}

.existing-plan-assignment-rule {
  color: #9aa3b1;
  font-size: 12px;
  font-weight: 400;
}

.existing-plan-overview-main strong {
  color: #374151;
  font-weight: 650;
}

.existing-plan-overview-main .is-success strong {
  color: #16a34a;
}

.existing-plan-overview-main .is-failed strong {
  color: #dc2626;
}

.existing-plan-overview-main .is-running strong {
  color: #1677ff;
}

.existing-plan-overview-meta {
  color: #8b95a3;
  font-size: 12px;
}

.new-plan-detail-overview {
  display: flex;
  min-height: 58px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #fbfcfe;
}

.new-plan-detail-modal .ant-modal-body {
  overflow-x: hidden;
}

.new-plan-detail-overview-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.new-plan-detail-overview-main,
.new-plan-detail-overview-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.new-plan-detail-overview-meta {
  color: #8b95a3;
  font-size: 12px;
}

.new-plan-detail-refresh {
  flex: 0 0 auto;
  width: 86px;
}

.batch-record-refresh-button {
  width: 94px;
}

.batch-detail-refresh-button,
.oceanengine-batch-detail-refresh {
  width: 86px;
  flex: 0 0 86px;
}

.batch-plan-detail-modal .ant-modal-body {
  max-height: calc(100vh - 190px);
  overflow: auto;
}

.batch-detail-loading {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: #8b95a3;
  font-size: 13px;
}

.batch-plan-detail-actions {
  justify-content: flex-end;
}

.batch-plan-detail-layout {
  display: grid;
  min-height: 420px;
  min-width: 0;
}

.batch-plan-detail-layout.has-account-list {
  grid-template-columns: 210px minmax(0, 1fr);
}

.batch-plan-account-list {
  display: flex;
  max-height: 580px;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  overflow: auto;
  border: 1px solid #e7eaf0;
  border-right: 0;
  background: #fff;
}

.batch-plan-account-item {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 8px 12px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #f2f4f7;
  background: #fff;
  color: #3f4652;
  cursor: pointer;
  text-align: left;
}

.batch-plan-account-item span {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}

.batch-plan-account-item small {
  display: block;
  width: 100%;
  overflow: hidden;
  margin-top: 2px;
  color: #8b96a8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-plan-account-item:hover,
.batch-plan-account-item.is-active {
  color: #245fbd;
  background: #f3f7ff;
}

.batch-plan-account-item.is-active {
  box-shadow: inset 3px 0 0 #3b82f6;
}

.batch-plan-table-panel {
  min-width: 0;
  border: 1px solid #e7eaf0;
  background: #fff;
}

.batch-plan-account-header {
  display: flex;
  min-height: 48px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 10px 14px;
  border-bottom: 1px solid #e7eaf0;
  background: #fafbfc;
  color: #3f4652;
  font-size: 13px;
}

.batch-plan-account-header b {
  color: #4b5563;
  font-weight: 500;
}

.batch-plan-detail-table .ant-table {
  border: 0 !important;
  border-radius: 0 !important;
}

.batch-plan-detail-table .ant-table-container {
  border: 0 !important;
}

.batch-plan-detail-table .ant-table-container::before,
.batch-plan-detail-table .ant-table-container::after {
  display: none !important;
}

.batch-plan-detail-table .ant-table-thead > tr > th {
  padding: 10px 12px !important;
  border-right: 1px solid #e7ebf1 !important;
  border-bottom: 1px solid #e7eaf0 !important;
  background: #fafbfc !important;
  color: #596273 !important;
  font-size: 13px;
  font-weight: 500 !important;
  text-align: center;
}

.batch-plan-detail-table .ant-table-tbody > tr > td {
  min-height: 76px;
  padding: 10px 14px !important;
  border-right: 1px solid #edf0f4 !important;
  border-bottom: 1px solid #edf0f4 !important;
  color: #454d5a;
  font-size: 13px;
  font-weight: 400;
  vertical-align: middle;
}

.oceanengine-batch-detail-modal .batch-plan-detail-table .ant-table-tbody > tr > td {
  min-height: 54px;
  padding: 6px 10px !important;
}

.oceanengine-batch-detail-modal .batch-plan-material-cell {
  gap: 1px;
  line-height: 18px;
}

.batch-plan-detail-table .ant-table-thead > tr > th:last-child,
.batch-plan-detail-table .ant-table-tbody > tr > td:last-child {
  border-right: 0 !important;
}

.batch-plan-detail-table .ant-table-tbody > tr.ant-table-measure-row {
  height: 0 !important;
  visibility: hidden;
}

.batch-plan-detail-table .ant-table-tbody > tr.ant-table-measure-row > td {
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.batch-plan-detail-table .ant-table-tbody > tr.ant-table-measure-row > td > div {
  height: 0 !important;
  overflow: hidden !important;
}

.batch-plan-detail-table .ant-table-tbody > tr:hover > td {
  background: #fafcff !important;
}

.batch-plan-info-cell,
.batch-plan-material-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  line-height: 19px;
}

.batch-plan-entity-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.batch-plan-entity-name {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #454d5a;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-plan-copy-id.ant-btn {
  height: auto;
  padding: 0;
  color: #7b8493;
  font-size: 12px;
  line-height: 18px;
}

.batch-plan-copy-id.ant-btn:hover {
  color: #1677ff;
}

.batch-plan-info-cell span,
.batch-plan-material-cell span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-plan-status {
  font-size: 13px;
  font-weight: 500;
  cursor: default;
}

.batch-plan-status.is-success {
  color: #3f9b68;
}

.batch-plan-status.is-running {
  color: #1677ff;
}

.batch-plan-status.is-partial,
.batch-plan-status.is-failed {
  color: #d85b5b;
}

.batch-plan-status-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.batch-plan-failure-summary {
  display: -webkit-box;
  max-width: 160px;
  overflow: hidden;
  color: #c85b5b;
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.batch-plan-field-label {
  color: #8a93a3;
  font-weight: 400;
}

.batch-plan-field-value {
  color: #454d5a;
  font-weight: 400;
}

.batch-plan-account-header strong .batch-plan-field-value {
  font-weight: 500;
}

.batch-plan-budget.is-empty .batch-plan-field-label,
.batch-plan-budget.is-empty .batch-plan-field-value {
  color: #a2a9b4;
}

.batch-plan-failure-tooltip {
  max-width: 360px;
  font-size: 12px;
  line-height: 19px;
}

.batch-plan-failure-tooltip span {
  color: rgba(255, 255, 255, 0.72);
}

.new-plan-detail-section {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e8ecf3;
  border-radius: 8px;
  background: #fff;
}

.new-plan-detail-section-title {
  margin-bottom: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 650;
}

.new-plan-detail-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.new-plan-detail-field {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 6px;
  background: #f7f8fa;
}

.new-plan-detail-field.is-wide {
  grid-column: 1 / -1;
}

.new-plan-detail-field .ant-typography {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 20px;
}

.new-plan-detail-plan-names {
  white-space: pre-line;
}

.existing-plan-detail-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 12px;
  min-height: 420px;
}

.existing-plan-account-list,
.existing-plan-detail-content {
  border: 1px solid #e8ecf3;
  border-radius: 8px;
  background: #fff;
  overflow: auto;
}

.existing-plan-account-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 560px;
  padding: 6px;
}

.existing-plan-account-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  padding: 8px 9px;
  box-shadow: inset 3px 0 0 transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.existing-plan-account-item.is-success {
  box-shadow: inset 3px 0 0 #d1fae5;
}

.existing-plan-account-item.is-running {
  box-shadow: inset 3px 0 0 #bfdbfe;
}

.existing-plan-account-item.is-partial {
  box-shadow: inset 3px 0 0 #fed7aa;
}

.existing-plan-account-item.is-failed {
  box-shadow: inset 3px 0 0 #fecaca;
}

.existing-plan-account-item.is-stopped {
  box-shadow: inset 3px 0 0 #e5e7eb;
}

.existing-plan-account-item:hover,
.existing-plan-account-item.is-active {
  border-color: #dbeafe;
  background: #f8fbff;
  box-shadow: inset 3px 0 0 #60a5fa;
}

.existing-plan-account-title,
.existing-plan-account-meta,
.existing-plan-account-counts {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.existing-plan-account-title {
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.existing-plan-account-meta {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  line-height: 18px;
}

.existing-plan-account-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.existing-plan-account-tags .ant-tag {
  margin-inline-end: 0;
  font-size: 11px;
  line-height: 18px;
}

.existing-plan-account-counts {
  margin-top: 4px;
  color: #4b5563;
  font-size: 12px;
  line-height: 18px;
}

.existing-plan-detail-content {
  max-height: 560px;
  padding: 10px;
}

.existing-plan-selected-account {
  display: flex;
  align-items: center;
  min-height: 24px;
  padding: 0 2px;
}

.existing-plan-plan-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
  max-height: 150px;
  overflow: auto;
  padding: 1px 2px 6px;
}

.existing-plan-plan-item {
  min-width: 0;
  border: 1px solid #eef2f7;
  border-radius: 7px;
  background: #fff;
  padding: 8px 9px;
  box-shadow: inset 3px 0 0 transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.existing-plan-plan-item.is-success {
  box-shadow: inset 3px 0 0 #dcfce7;
}

.existing-plan-plan-item.is-running {
  box-shadow: inset 3px 0 0 #dbeafe;
}

.existing-plan-plan-item.is-partial {
  box-shadow: inset 3px 0 0 #ffedd5;
}

.existing-plan-plan-item.is-failed {
  box-shadow: inset 3px 0 0 #fee2e2;
}

.existing-plan-plan-item.is-stopped {
  box-shadow: inset 3px 0 0 #e5e7eb;
}

.existing-plan-plan-item:hover,
.existing-plan-plan-item.is-active {
  border-color: #bbf7d0;
  background: #f7fdf9;
  box-shadow: inset 3px 0 0 #22c55e;
}

.existing-plan-plan-title,
.existing-plan-plan-meta,
.existing-plan-plan-counts {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.existing-plan-plan-title {
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.existing-plan-plan-meta {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  line-height: 18px;
}

.existing-plan-plan-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.existing-plan-plan-tags .ant-tag {
  margin-inline-end: 0;
  font-size: 11px;
  line-height: 18px;
}

.existing-plan-plan-counts {
  margin-top: 4px;
  color: #4b5563;
  font-size: 12px;
  line-height: 18px;
}

.existing-plan-plan-failure {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: #b42318;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.existing-plan-card {
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.existing-plan-material-list {
  padding: 6px 12px 8px;
}

.existing-plan-material-body {
  max-height: 300px;
  overflow: auto;
}

.existing-plan-material-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f3f6;
}

.existing-plan-material-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) 76px minmax(240px, 1fr) 150px;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f1f3f6;
  font-size: 13px;
}

.existing-plan-material-row .ant-tag {
  font-size: 11px;
  line-height: 18px;
  margin-inline-end: 0;
}

.existing-plan-success-muted,
.existing-plan-status-muted {
  color: #8b95a3;
  font-size: 12px;
  line-height: 18px;
}

.existing-plan-material-row:last-child {
  border-bottom: 0;
}

.existing-plan-material-row.is-head {
  color: #8b95a3;
  font-size: 12px;
  font-weight: 500;
}

.existing-plan-material-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.existing-plan-material-name .ant-typography,
.existing-plan-material-time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.existing-plan-material-name .ant-typography:first-child {
  color: #374151;
  font-weight: 600;
}

@media (max-width: 900px) {
  .batch-plan-detail-layout.has-account-list {
    grid-template-columns: 1fr;
  }

  .batch-plan-account-list {
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    border-right: 1px solid #e7eaf0;
    border-bottom: 0;
  }

  .batch-plan-account-item {
    min-width: 180px;
    border-right: 1px solid #f2f4f7;
    border-bottom: 0;
  }

  .existing-plan-detail-layout {
    grid-template-columns: 1fr;
  }

  .existing-plan-account-list,
  .existing-plan-detail-content {
    max-height: none;
  }

  .existing-plan-material-row {
    grid-template-columns: 1fr;
  }

  .existing-plan-plan-list {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .new-plan-detail-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .existing-plan-overview {
    align-items: flex-start;
    flex-direction: column;
  }

  .existing-plan-overview-meta {
    align-items: flex-start;
  }

  .new-plan-detail-overview {
    gap: 10px;
  }

  .new-plan-detail-overview-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .new-plan-detail-field-grid {
    grid-template-columns: 1fr;
  }

  .new-plan-detail-field.is-wide {
    grid-column: auto;
  }
}

.prepare-material-summary {
  display: inline-block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.prepare-plan-material-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.prepare-plan-material-item {
  min-width: 0;
  line-height: 1.35;
}

.prepare-plan-material-name {
  display: block;
  max-width: 210px;
}

.prepare-plan-material-meta,
.prepare-plan-material-more {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 16px;
}

.prepare-plan-material-tooltip {
  display: block;
  max-width: 380px;
  white-space: pre-line;
  word-break: break-word;
  line-height: 1.5;
}

.prepare-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.prepare-config-item {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fafafa;
  padding: 7px 8px;
}

.prepare-config-item .ant-typography {
  display: block;
  max-width: 100%;
  line-height: 18px;
}

.prepare-config-section {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  padding: 8px;
}

.prepare-config-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: stretch;
}

.prepare-config-snapshot-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 172px;
  min-height: 58px;
  border: 1px solid #eef2f7;
  border-radius: 5px;
  background: #fbfdff;
  padding: 6px 8px;
}

.prepare-config-snapshot-row .ant-typography {
  max-width: 100%;
  line-height: 17px;
}

.prepare-config-extra-tag {
  align-self: center;
  margin-inline-end: 0;
  cursor: default;
}

.nowrap-text {
  white-space: nowrap;
}

.material-action-bar {
  margin-bottom: 8px;
}

.material-action-left,
.material-action-bar > .ant-space:first-child {
  flex: 1;
  min-width: 420px;
}

.material-action-bar > .ant-space:last-child {
  flex: 0 1 auto;
  justify-content: flex-end;
}

.material-result-bar {
  margin-bottom: 6px;
  padding: 6px 8px;
  border-radius: 5px;
  background: #f7f9fc;
  font-size: 12px;
}

.asset-push-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px 10px;
  border: 1px solid #edf1f7;
  border-radius: 5px;
  background: #fbfcfe;
  font-size: 12px;
}

.material-preview {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: start;
}

.preview-placeholder {
  display: grid;
  height: 112px;
  place-items: center;
  border-radius: 8px;
  font-size: 34px;
}

.preview-placeholder.video {
  color: #1768e5;
  background: #eaf3ff;
}

.preview-placeholder.image {
  color: #13a8a8;
  background: #e6fffb;
}

.upload-symbol {
  margin: 4px 0;
  color: #1768e5;
  font-size: 42px;
  line-height: 1;
}

.upload-form {
  margin-top: 18px;
}

.distribute-panel {
  min-height: 345px;
}

.platform-grid,
.mode-grid,
.account-grid,
.plan-groups,
.template-grid {
  display: grid;
  gap: 14px;
}

.platform-grid {
  grid-template-columns: repeat(3, 1fr);
}

.platform-option {
  display: flex !important;
  align-items: center;
  height: 92px !important;
  padding: 16px !important;
  border: 1px solid #dfe6ef !important;
  border-radius: 8px !important;
}

.platform-option::before {
  display: none !important;
}

.platform-option.ant-radio-button-wrapper-checked {
  border-color: #1768e5 !important;
  box-shadow: 0 0 0 2px rgba(23, 104, 229, 0.1);
}

.platform-logo {
  display: grid;
  width: 42px;
  height: 42px;
  margin-right: 12px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #1768e5;
  font-weight: 700;
}

.mode-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin: 24px auto;
}

.mode-option {
  display: flex !important;
  align-items: center;
  height: 124px !important;
  padding: 22px !important;
  border: 1px solid #dfe6ef !important;
  border-radius: 10px !important;
}

.mode-option::before,
.template-option::before {
  display: none !important;
}

.mode-option.ant-radio-button-wrapper-checked,
.template-option.ant-radio-button-wrapper-checked {
  border-color: #1768e5 !important;
  box-shadow: 0 0 0 2px rgba(23, 104, 229, 0.1);
}

.mode-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-right: 16px;
  place-items: center;
  border-radius: 10px;
  color: #1768e5;
  background: #eaf3ff;
  font-size: 24px;
}

.mode-option .ant-typography {
  margin: 0 0 6px;
}

.account-search {
  max-width: 360px;
  margin-bottom: 14px;
}

.account-grid {
  grid-template-columns: repeat(2, 1fr);
}

.account-option {
  margin: 0 !important;
  padding: 18px;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  background: #fff;
}

.plan-account {
  overflow: hidden;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
}

.plan-account-title {
  padding: 12px 16px;
  background: #f7f9fc;
}

.plan-option {
  display: flex;
  margin: 0 !important;
  padding: 13px 16px;
  border-top: 1px solid #edf0f4;
}

.plan-option > span:last-child {
  flex: 1;
}

.template-grid {
  grid-template-columns: repeat(3, 1fr);
}

.template-option {
  display: block !important;
  height: 112px !important;
  padding: 16px !important;
  border: 1px solid #dfe6ef !important;
  border-radius: 8px !important;
}

.template-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.template-card-meta {
  margin-top: 10px;
  color: #1768e5;
  font-size: 13px;
}

.template-summary,
.batch-meta-card {
  margin-bottom: 16px;
  border: 1px solid #d8e7ff;
  background: #fbfdff;
}

.distribute-rule-card {
  padding-bottom: 0;
}

.distribute-rule-card > .ant-card-body {
  padding: 10px;
  overflow-x: auto;
}

.distribute-topbar,
.bottom-actions,
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.distribute-topbar {
  margin-bottom: 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid #edf0f4;
  background: transparent;
}

.green-action-button,
.green-action-button:not(:disabled):hover {
  border-color: #08a34a !important;
  background: #08a34a !important;
}

.green-outline-button,
.green-outline-button:not(:disabled):hover {
  color: #08a34a !important;
  border-color: #08a34a !important;
}

.distribution-board {
  display: grid;
  grid-template-columns: 22fr 40fr 16fr 22fr;
  overflow: hidden;
  border: 1px solid #cfd5dc;
  border-radius: 0;
  background: #fff;
}

.distribution-board:not(.distribution-board-three) {
  min-width: 1200px;
}

.distribution-board.distribution-board-three {
  grid-template-columns: 1fr 1.9fr 1.1fr;
}

.board-span-2 {
  grid-column: span 2;
}

.board-group-header,
.board-column-title,
.board-cell {
  border-right: 1px solid #d8dde6;
}

.board-group-header {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-bottom: 1px solid #cfd5dc;
  background: #fafafa;
  color: #333;
  font-weight: 700;
  font-size: 13px;
}

.board-column-title {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  border-bottom: 1px solid #cfd5dc;
  background: #fff;
  font-size: 13px;
}

.board-column-title .ant-btn-link {
  height: 20px;
  padding: 0;
  color: #08a34a;
  font-size: 12px;
}

.board-cell {
  min-height: 360px;
  max-height: 360px;
  padding: 6px;
  overflow: auto;
}

.board-last {
  border-right: 0;
}

.board-cell .selected-card-list,
.board-cell .selected-material-cards {
  gap: 5px;
  max-height: none;
  overflow: visible;
}

.board-pill-card,
.distribution-board .selected-plan-card,
.distribution-board .selected-material-card {
  border: 0;
  border-radius: 6px;
  background: #eef1f5;
}

.board-pill-card {
  padding: 7px 8px;
}

.distribution-board .selected-account-card,
.distribution-board .selected-plan-card,
.distribution-board .selected-material-card {
  align-items: flex-start;
  gap: 6px;
  padding: 7px 8px;
  font-size: 12px;
}

.distribution-board .selected-plan-card,
.distribution-board .selected-material-card {
  margin: 0;
}

.distribution-board .ant-tag {
  margin-inline-end: 4px;
  padding: 0 4px;
  font-size: 12px;
  line-height: 18px;
}

.distribution-board .material-icon {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  font-size: 12px;
}

.distribution-board .ant-btn-link {
  height: 20px;
  padding: 0;
  font-size: 12px;
}

.distribution-board .plan-group-title {
  padding: 5px 8px;
  color: #fff;
  background: #08b451;
  font-size: 12px;
}

.missing-plan-card {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  border-radius: 6px;
  border: 1px dashed #ffccc7;
  background: #fff7f6;
  font-size: 12px;
}

.board-empty-state {
  display: grid;
  min-height: 140px;
  place-items: center;
  gap: 10px;
  color: #98a2b3;
}

.plan-result-panel {
  display: grid;
  gap: 8px;
}

.plan-result-panel > div {
  padding: 0;
  border-radius: 6px;
  background: transparent;
}

.plan-settings-panel {
  display: grid;
  gap: 8px;
  padding: 4px 6px;
}

.plan-setting-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.plan-setting-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-plan-simple-summary {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 4px 0;
}

.new-plan-simple-summary-row {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.65;
}

.new-plan-simple-summary-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.new-plan-simple-summary-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.new-plan-summary-card {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.new-plan-summary-header {
  display: flex;
  height: 34px;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  border-bottom: 1px solid #edf0f4;
}

.new-plan-summary-header .ant-tag,
.new-plan-summary-account-card .ant-tag {
  margin-inline-end: 0;
}

.new-plan-summary-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #faad14;
}

.new-plan-summary-status-dot.is-ready {
  background: #22a06b;
}

.new-plan-summary-section {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.new-plan-summary-section-heading {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.new-plan-summary-section-heading .ant-typography:first-child {
  font-size: 13px;
  font-weight: 600;
}

.new-plan-summary-name-section {
  max-height: 110px;
}

.new-plan-summary-name-list {
  display: grid;
  min-height: 0;
  gap: 4px;
  overflow-y: auto;
}

.new-plan-summary-name-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f7f8fa;
}

.new-plan-summary-name-index {
  color: #98a2b3;
  font-size: 12px;
}

.new-plan-summary-name-value,
.new-plan-summary-account-name,
.new-plan-summary-account-meta > span,
.new-plan-summary-param-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-plan-summary-more-row {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.new-plan-summary-all-names {
  display: grid;
  width: min(520px, 72vw);
  max-height: 280px;
  gap: 6px;
  overflow: auto;
  word-break: break-all;
}

.new-plan-summary-account-list {
  display: grid;
  max-height: 164px;
  gap: 7px;
  overflow-y: auto;
}

.new-plan-summary-account-card {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f7f8fa;
}

.new-plan-summary-account-card.has-error {
  background: #fff2f0;
}

.new-plan-summary-account-line,
.new-plan-summary-account-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.new-plan-summary-account-line {
  justify-content: space-between;
}

.new-plan-summary-account-name {
  flex: 1;
}

.new-plan-summary-account-meta {
  color: #667085;
  font-size: 12px;
}

.new-plan-summary-account-meta > span {
  max-width: 45%;
}

.new-plan-summary-account-error {
  color: #d92d20;
}

.new-plan-summary-params {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.new-plan-summary-param {
  display: grid;
  min-width: 0;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.new-plan-summary-param-label {
  color: #98a2b3;
  font-size: 12px;
}

.new-plan-summary-param-value {
  color: #1d2939;
  font-size: 13px;
  font-weight: 600;
}

.new-plan-summary-empty {
  display: grid;
  min-height: 140px;
  place-content: center;
  justify-items: center;
  gap: 10px;
}

.plan-setting-modal-summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  margin: 8px 0 10px;
  padding: 8px;
  border-radius: 6px;
  background: #f6f8fb;
}

.plan-setting-modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.plan-picker-title-action {
  min-width: 112px;
  height: 30px;
  border-radius: 6px;
  font-weight: 600;
}

.plan-picker-hint {
  display: block;
  margin: 4px 0 8px;
  color: #667085;
}

.new-plan-form {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

.new-plan-config-modal .ant-modal-body {
  max-height: min(76vh, 820px);
  overflow-y: auto;
}

.new-plan-form-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  row-gap: 6px;
  min-width: 0;
}

.new-plan-form-row > .ant-typography:first-child,
.new-plan-form-label-placeholder {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  line-height: 1.4;
}

.new-plan-form-row > :nth-child(2) {
  min-width: 0;
}

.new-plan-form-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
  min-width: 0;
}

.new-plan-form-content-stacked {
  display: grid;
  align-items: start;
  justify-items: start;
  gap: 4px;
}

.new-plan-form-row .ant-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qianchuan-selector-option {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 2px 0;
}

.qianchuan-selector-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.qianchuan-selector-main .ant-typography {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qianchuan-selector-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
}

.confirm-text-ellipsis {
  display: inline-block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.plan-name-editor {
  display: grid;
  gap: 10px;
}

.new-plan-limited-control {
  width: 100%;
  max-width: 620px;
  min-width: 0;
}

.new-plan-limited-control > .ant-btn {
  margin-top: 8px;
}

.new-plan-aweme-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.new-plan-aweme-select {
  flex: 0 1 260px;
  width: 260px;
  min-width: 240px;
  max-width: 280px;
}

.new-plan-product-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.new-plan-product-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.new-plan-product-picker-trigger {
  flex: 0 1 260px;
  width: 260px;
  min-width: 240px;
  max-width: 280px;
  text-align: left;
}

.new-plan-product-picker-trigger > span {
  display: block;
  min-width: 0;
}

.new-plan-product-picker-trigger-text {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-plan-selection-count-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.new-plan-selection-count-row .ant-btn {
  height: 22px;
  padding-inline: 0;
}

.qianchuan-aweme-popup {
  overflow-x: hidden;
}

.qianchuan-aweme-popup .ant-select-item-option-content {
  min-width: 0;
  overflow: hidden;
}

.new-plan-product-picker-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.new-plan-product-picker-search {
  flex: 0 1 300px;
  width: 300px;
  max-width: 34%;
}

.compact-distribute-modal.new-plan-product-picker-modal .new-plan-product-picker-toolbar .ant-input,
.compact-distribute-modal.new-plan-product-picker-modal .new-plan-product-picker-toolbar .ant-input-search-button,
.compact-distribute-modal.new-plan-product-picker-modal .new-plan-product-picker-toolbar > .ant-btn {
  height: 32px;
}

.compact-distribute-modal.new-plan-product-picker-modal .ant-modal-content {
  display: flex;
  max-height: 88vh;
  flex-direction: column;
}

.compact-distribute-modal.new-plan-product-picker-modal .ant-modal-body {
  display: flex;
  min-height: 0;
  max-height: calc(88vh - 100px);
  flex: 0 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.compact-distribute-modal.new-plan-product-picker-modal .ant-modal-footer {
  flex: 0 0 auto;
}

.new-plan-product-picker-table {
  min-height: 0;
  flex: 0 1 auto;
}

.new-plan-product-picker-table .ant-table-cell {
  vertical-align: middle;
}

.new-plan-product-picker-table .ant-table-selection-column {
  padding-inline: 16px;
}

.new-plan-product-picker-table .ant-tag {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-picker-search {
  flex: 0 1 220px;
  width: 220px;
  max-width: 26%;
}

.new-plan-inline-note {
  display: block;
  margin: 0;
  line-height: 1.6;
}

.plan-name-single-editor-shell {
  display: grid;
  gap: 8px;
}

.plan-name-input-row {
  position: relative;
  min-width: 0;
}

.plan-name-single-input {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  padding: 6px 112px 6px 11px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: rgba(0, 0, 0, 0.88);
  font-size: 14px;
  line-height: 22px;
  outline: none;
  white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-name-single-input:empty::before {
  color: rgba(0, 0, 0, 0.25);
  content: attr(data-placeholder);
  pointer-events: none;
}

.plan-name-single-input:focus {
  border-color: #4096ff;
  box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
}

.oceanengine-name-template-input {
  padding-right: 11px;
}

.plan-name-input-row.is-invalid .plan-name-single-input {
  border-color: #ff4d4f;
}

.plan-name-inline-token {
  border-bottom: 1px dotted #91caff;
  background: #f5faff;
}

.plan-name-random-suffix {
  color: #595959;
  background: #fafafa;
}

.plan-name-character-count {
  position: absolute;
  top: 7px;
  right: 10px;
  padding-left: 6px;
  background: #fff;
  font-size: 12px;
  line-height: 22px;
  pointer-events: none;
}

.plan-name-token-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.plan-name-options-row {
  min-height: 28px;
}

.plan-name-options-row .ant-input-number {
  width: 88px;
}

.plan-name-nearby-error {
  display: block;
  line-height: 1.5;
}

.plan-name-all-entry {
  display: flex;
  align-items: center;
  min-height: 24px;
  gap: 4px;
}

.plan-name-all-entry .ant-btn-link {
  height: 24px;
  padding: 0 4px;
}

.plan-name-all-popover {
  display: grid;
  gap: 7px;
  width: min(520px, 70vw);
  max-height: 280px;
  overflow-y: auto;
}

.plan-name-all-popover > div {
  display: grid;
  gap: 2px;
  overflow-wrap: anywhere;
}

.plan-name-all-popover > div.is-invalid {
  padding-left: 8px;
  border-left: 2px solid #ff4d4f;
}

.new-plan-selection-count {
  display: block;
  margin-top: 4px;
}

.new-plan-budget-invalid .ant-input-number {
  border-color: #ff4d4f;
}

.plan-setting-account-result {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.new-plan-form-row > div > .ant-btn + .tiny-note,
.new-plan-form-row textarea.ant-input + .ant-input-data-count + .tiny-note {
  margin-top: 8px;
}

.new-plan-form-row .tiny-note {
  display: block;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .new-plan-summary-params {
    grid-template-columns: 1fr;
  }

  .new-plan-form-row {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .new-plan-form-row > .ant-typography:first-child {
    min-height: 0;
  }

  .new-plan-form-label-placeholder {
    display: none;
  }

  .new-plan-form-note-row {
    row-gap: 0;
  }

  .new-plan-limited-control {
    max-width: none;
  }

  .new-plan-aweme-control {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .new-plan-product-control {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .new-plan-aweme-select,
  .new-plan-product-picker-trigger {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .new-plan-product-picker-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .new-plan-product-picker-search {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }

  .account-picker-search {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0 !important;
    max-width: none;
  }

  .plan-name-single-input {
    padding-right: 11px;
    height: 36px;
  }

  .plan-name-character-count {
    position: static;
    display: block;
    margin-top: 3px;
    text-align: right;
  }
}

.dynamic-token-panel {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  background: #f6f8fb;
}

.dynamic-token-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dynamic-token-label {
  flex: 0 0 auto;
  font-size: 12px;
}

.dynamic-token-buttons {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.dynamic-token-button.ant-btn {
  height: 26px;
  padding: 0 9px;
  border-radius: 4px;
  background: #fff;
  line-height: 24px;
}

.dynamic-token-hint {
  display: block;
  font-size: 12px;
  line-height: 18px;
}

.short-setting-switch {
  justify-self: start;
  width: auto !important;
  min-width: 44px !important;
  max-width: 56px;
}

.douyin-product-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  min-height: 360px;
}

.douyin-account-list,
.douyin-product-panel {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 12px;
}

.douyin-account-scroll {
  display: grid;
  gap: 8px;
  max-height: 320px;
  margin-top: 10px;
  overflow: auto;
}

.douyin-account-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.douyin-account-item.active {
  border-color: #1677ff;
  background: #eef6ff;
}

.plan-picker-footer-hint {
  margin: 8px 0 0;
  color: #98a2b3;
  font-size: 12px;
  text-align: right;
}

.title-package-summary {
  display: block;
  margin-bottom: 0;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: #eef1f5;
  font-size: 12px;
}

.title-package-summary .ant-typography-secondary {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-package-summary .ant-space {
  margin-top: 10px;
}

.title-pack-tabs {
  display: flex;
  gap: 10px;
  margin: -4px 0 14px;
  border-bottom: 1px solid #e5e7eb;
}

.title-pack-tab {
  padding: 9px 16px;
  color: #667085;
  border-bottom: 2px solid transparent;
}

.title-pack-tab.active {
  color: #08a34a;
  border-bottom-color: #08a34a;
  background: #edfff5;
  font-weight: 600;
}

.title-pack-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.title-pack-toolbar .ant-input-search {
  width: 260px;
}

.title-pack-form-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.title-pack-form-row.align-start {
  align-items: start;
}

.title-pack-edit-modal .ant-table-wrapper {
  min-width: 0;
}

.distribution-board-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-top: 10px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

.quote-inline-state {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 3px 0;
  font-size: 12px;
}

.board-summary-line {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  min-height: 38px;
  margin-bottom: 0;
  color: #667085;
  font-size: 13px;
  box-sizing: border-box;
}

.board-footer-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  min-height: 38px;
  box-sizing: border-box;
}

.quote-disabled-reason {
  align-self: center;
  margin-right: auto;
  font-size: 13px;
}

.distribution-secondary-button,
.distribution-primary-button {
  height: 38px !important;
  min-width: 116px;
  padding: 0 18px;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #d0d5dd;
  border-radius: 6px;
  color: #344054;
  background: #fff;
  box-sizing: border-box;
  font-weight: 500;
  line-height: 36px;
  box-shadow: none;
}

.distribution-secondary-button:not(:disabled):hover {
  border-color: #98a2b3;
  color: #1d2939;
  background: #f9fafb;
}

.distribution-primary-button,
.distribution-primary-button:not(:disabled):hover,
.distribution-primary-button:not(:disabled):focus {
  min-width: 168px;
  padding: 0 24px;
  border-color: #98a2b3 !important;
  border-radius: 6px;
  color: #1d2939 !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  font-weight: 600;
}

.distribution-primary-button:not(:disabled):hover {
  border-color: #667085 !important;
  color: #101828 !important;
  background: #f9fafb !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.distribution-primary-button:disabled {
  min-width: 168px;
  color: #98a2b3 !important;
  background: #f9fafb !important;
  border-color: #eaecf0 !important;
  border-radius: 6px;
  box-shadow: none;
}

.material-modal-settings {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 210px 210px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #f7f9fc;
}

.material-modal-settings .ant-select {
  width: 100%;
}

.distribution-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.distribution-flow {
  display: grid;
  gap: 14px;
}

.flow-card .ant-card-head {
  background: #fbfcff;
}

.flow-step {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #1768e5;
  background: #eaf3ff;
  font-size: 13px;
  font-weight: 700;
}

.distribution-side-card {
  position: sticky;
  top: 84px;
  border-color: #b7d5ff;
  background: #fbfdff;
}

.selected-card-list,
.selected-material-cards {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
}

.selected-account-card,
.selected-plan-card,
.selected-material-card,
.mini-account-card,
.plain-template-card {
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  background: #fff;
}

.selected-account-card,
.selected-plan-card,
.selected-material-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
}

.selected-material-card {
  align-items: center;
}

.plan-group-card {
  overflow: hidden;
  border: 1px solid #d8e7ff;
  border-radius: 8px;
}

.plan-group-title {
  padding: 8px 12px;
  color: #1768e5;
  background: #eaf3ff;
  font-weight: 700;
}

.block-radio {
  display: flex;
  margin-top: 8px;
}

.tiny-note {
  margin: 8px 0 0 !important;
}

.material-type-tabs {
  margin-bottom: 12px;
}

.side-section {
  display: grid;
  gap: 10px;
}

.side-section .ant-select {
  width: 100%;
}

.side-summary {
  padding-top: 10px;
  border-top: 1px solid #edf0f4;
}

.side-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.side-actions .ant-btn-primary {
  height: 38px;
}

.plain-template-card {
  padding: 14px;
  cursor: pointer;
  text-align: left;
}

.plain-template-card:hover {
  border-color: #1768e5;
}

.modal-filter-row,
.report-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-filter-row .ant-input,
.modal-filter-row .ant-select,
.report-filter-grid .ant-select {
  min-width: 180px;
}

.batch-account-box {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #f7f9fc;
}

.batch-account-match-button {
  justify-self: start;
  width: fit-content;
  min-width: 0;
  padding-inline: 12px;
}

.selected-row td {
  background: #f0f7ff !important;
}

.plan-edit-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
}

.plan-edit-accounts {
  padding-right: 12px;
  border-right: 1px solid #edf0f4;
}

.mini-account-card {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
}

.mini-account-card:hover,
.mini-account-card.active {
  border-color: #1768e5;
  background: #f0f7ff;
}

.current-plan-account {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f7f9fc;
}

.distribution-rule-notice {
  flex: 0 1 auto;
}

.main-content:has(.distribute-compact-page) {
  padding: 12px 14px;
}

.distribute-compact-page {
  width: 100%;
  max-width: none;
  color: #667085;
  font-size: 12px;
  font-weight: 400;
}

.distribute-compact-page *,
.compact-distribute-modal * {
  font-weight: 400 !important;
}

.distribute-compact-page :is(h1, h2, h3, h4, h5, h6),
.compact-distribute-modal :is(h1, h2, h3, h4, h5, h6),
.distribute-compact-page .ant-typography:not(.ant-typography-danger),
.compact-distribute-modal .ant-typography:not(.ant-typography-danger),
.distribute-compact-page .board-group-header,
.distribute-compact-page .board-column-title,
.distribute-compact-page .board-summary-line,
.compact-distribute-modal .ant-modal-title,
.compact-distribute-modal .ant-table-cell,
.compact-distribute-modal .ant-form-item-label > label {
  color: #667085;
}

.distribute-compact-page .ant-typography-secondary,
.compact-distribute-modal .ant-typography-secondary,
.distribute-compact-page .compact-card-meta,
.compact-distribute-modal .tiny-note {
  color: #98a2b3 !important;
}

.distribute-compact-page .plan-group-title,
.distribute-compact-page .plan-group-title .ant-typography,
.distribute-compact-page .ant-btn-primary,
.distribute-compact-page .green-action-button,
.compact-distribute-modal .ant-btn-primary {
  color: #fff;
}

.distribute-compact-page .page-header {
  margin-bottom: 8px;
}

.distribute-compact-page .page-header h3.ant-typography {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.25;
}

.distribute-compact-page .page-header .ant-typography-secondary {
  font-size: 12px;
}

.distribute-compact-page .ant-btn {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.distribute-compact-page .ant-btn-sm {
  height: 22px;
  padding: 0 6px;
  font-size: 12px;
}

.distribute-compact-page .ant-select-selector,
.compact-distribute-modal .ant-select-selector,
.compact-distribute-modal .ant-input,
.compact-distribute-modal .ant-btn {
  font-size: 12px !important;
}

.distribute-compact-page .ant-select-single {
  height: 28px;
}

.distribute-compact-page .ant-select-single .ant-select-selector {
  height: 28px !important;
  padding: 0 8px !important;
}

.distribute-compact-page .ant-select-single .ant-select-selection-item {
  line-height: 26px !important;
}

.distribute-compact-page .distribute-topbar {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.distribute-compact-page .distribution-board {
  grid-template-columns: 22fr 40fr 16fr 22fr;
}

.distribute-compact-page .distribution-board.distribution-board-three {
  grid-template-columns: 0.95fr 1.9fr 1.05fr;
}

.distribute-compact-page .board-group-header {
  min-height: 28px;
  font-size: 12px;
}

.distribute-compact-page .board-column-title {
  min-height: 28px;
  padding: 3px 7px;
  font-size: 12px;
}

.distribute-compact-page .board-cell {
  min-height: 360px;
  max-height: 360px;
  padding: 5px;
}

.distribute-compact-page .selected-card-list,
.distribute-compact-page .selected-material-cards {
  gap: 4px;
}

.distribute-compact-page .selected-account-card,
.distribute-compact-page .selected-plan-card,
.distribute-compact-page .selected-material-card,
.distribute-compact-page .board-pill-card,
.distribute-compact-page .title-package-summary,
.distribute-compact-page .missing-plan-card {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.2;
}

.distribute-compact-page .selected-account-card,
.distribute-compact-page .selected-plan-card,
.distribute-compact-page .selected-material-card {
  min-height: 38px;
  align-items: center;
}

.distribute-compact-page .distribution-board .ant-typography {
  font-size: 12px;
  line-height: 1.2;
}

.compact-card-body {
  min-width: 0;
  flex: 1;
}

.compact-card-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card-meta {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 0;
  margin-top: 0;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 16px;
  white-space: nowrap;
}

.compact-card-meta .ant-typography {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.distribute-compact-page .plan-group-card {
  border-radius: 4px;
}

.distribute-compact-page .plan-group-title {
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1.3;
}

.distribute-compact-page .material-icon {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.distribute-compact-page .ant-tag {
  font-size: 11px;
  line-height: 15px;
}

.distribute-compact-page .board-summary-line {
  gap: 4px 14px;
  font-size: 12px;
}

.distribute-compact-page .distribution-board-footer {
  margin-top: 8px;
}

.compact-distribute-modal .ant-modal-content {
  font-size: 12px;
}

.compact-distribute-modal .ant-modal-header {
  margin-bottom: 8px;
}

.compact-distribute-modal .ant-modal-title {
  font-size: 14px;
}

.compact-distribute-modal .ant-modal-body {
  max-height: 62vh;
  overflow: auto;
  padding-right: 2px;
}

.compact-distribute-modal .ant-modal-footer {
  margin-top: 10px;
}

.compact-distribute-modal .ant-table {
  font-size: 12px;
}

.compact-distribute-modal .ant-table-cell {
  padding: 5px 7px !important;
}

.new-plan-required-mark {
  color: #1677ff;
}

.new-plan-promotion-card-trigger {
  min-width: 92px;
}

.promotion-card-mode-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.promotion-card-editor {
  min-height: 350px;
  border: 1px solid #dbe7f5;
  border-radius: 10px;
  background: #fbfdff;
}

.promotion-card-editor.has-products {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.promotion-card-product-list {
  padding: 10px;
  border-right: 1px solid #dbe7f5;
  background: #f5f9fe;
}

.promotion-card-product-list button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #3f526b;
  text-align: left;
  cursor: pointer;
}

.promotion-card-product-list button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promotion-card-product-list button small {
  color: #8091a7;
  white-space: nowrap;
}

.promotion-card-product-list button.active {
  border-color: #9cc7ff;
  background: #fff;
  color: #1459a6;
}

.promotion-card-fields {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px 22px;
}

.promotion-card-field {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.promotion-card-field.align-start {
  align-items: start;
}

.promotion-card-field > div {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.promotion-card-title-input {
  width: 220px;
}

.promotion-card-selling-input {
  width: 220px;
}

.promotion-card-action-select {
  width: 120px !important;
}

.promotion-card-selling-points {
  display: grid;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}

.promotion-card-selling-point {
  display: grid;
  grid-template-columns: 220px 76px 46px;
  align-items: center;
  gap: 8px;
}

.promotion-card-add-selling-point {
  width: fit-content;
  justify-self: start;
}

.promotion-card-smart-switch {
  width: 44px;
  min-width: 44px;
  justify-self: start;
}

.material-image-picker-toolbar {
  display: grid;
  grid-template-columns: auto 210px auto;
  align-items: center;
  justify-content: start;
  gap: 10px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #f7faff;
}

.material-image-picker-search.ant-input-affix-wrapper {
  width: 260px;
  height: 32px !important;
  margin-left: 14px;
  padding: 0 7px 0 10px;
  border-radius: 6px;
  font-size: 13px;
}

.material-image-folder-tree-select {
  display: inline-flex;
  width: 210px;
  min-width: 210px;
  height: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px 0 10px;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  line-height: 30px;
  text-align: left;
}

.material-image-folder-tree-select:hover,
.material-image-folder-tree-select:focus-visible,
.material-image-folder-tree-select.is-open {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgb(22 119 255 / 10%);
  outline: 0;
}

.material-image-folder-tree-select-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-image-folder-tree-select-arrow {
  flex: 0 0 auto;
  margin-left: 8px;
  color: #667085;
  font-size: 12px;
}

.material-image-folder-picker-modal .ant-modal-content {
  display: flex;
  height: min(560px, calc(100vh - 48px));
  flex-direction: column;
}

.material-image-folder-picker-modal .ant-modal-body {
  min-height: 0;
  padding: 8px 18px;
  overflow: auto;
  flex: 1 1 auto;
}

.material-image-folder-picker-tree {
  min-width: max-content;
  padding: 4px 2px 12px;
  background: transparent;
  font-size: 13px;
}

.material-image-folder-picker-tree .ant-tree-treenode {
  min-height: 28px;
  align-items: center;
  padding: 1px 0;
}

.material-image-folder-picker-tree .ant-tree-node-content-wrapper {
  min-height: 26px;
  padding: 3px 8px !important;
  border-radius: 6px;
  line-height: 20px;
  white-space: nowrap;
}

.material-image-folder-picker-tree .ant-tree-node-selected {
  color: #0958d9;
  font-weight: 600;
  background: #e6f4ff !important;
}

.material-image-folder-picker-tree .ant-tree-switcher {
  width: 24px;
  height: 28px;
  line-height: 28px;
  color: #667085;
}

.material-image-folder-picker-tree .ant-tree-indent-unit {
  width: 18px;
}

.material-image-folder-picker-tree .ant-tree-iconEle {
  width: 22px;
  height: 22px;
  margin-right: 5px;
  vertical-align: top;
}

.material-image-folder-icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 15px;
  margin-top: 4px;
  border: 1.5px solid #6698ff;
  border-radius: 3px;
  background: #f7faff;
}

.material-image-folder-icon::before {
  position: absolute;
  top: -5px;
  left: 2px;
  width: 9px;
  height: 5px;
  border: 1.5px solid #6698ff;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #f7faff;
  content: "";
}

.material-image-folder-all-icon {
  display: inline-block;
  width: 20px;
  height: 22px;
}

.material-image-picker-search.ant-input-affix-wrapper .ant-input {
  height: 30px !important;
  font-size: 13px;
}

.material-image-picker-search-button {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #667085;
  cursor: pointer;
}

.material-image-picker-search-button:hover {
  background: #f2f4f7;
  color: #1677ff;
}

.material-image-picker-search-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1.5px solid currentcolor;
  border-radius: 50%;
}

.material-image-picker-search-icon::after {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 5px;
  height: 1.5px;
  border-radius: 2px;
  background: currentcolor;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.material-image-picker-hidden-upload {
  position: fixed;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.material-image-picker-selection-alert {
  margin-bottom: 10px;
}

.material-image-picker-usage-hint {
  margin: -2px 0 10px 2px;
  color: #8a6a12;
  font-size: 12px;
  line-height: 18px;
}

.material-image-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 184px);
  gap: 10px;
  justify-content: start;
}

.material-image-picker-card {
  position: relative;
  display: flex;
  height: 224px !important;
  min-width: 0;
  padding: 0 !important;
  overflow: hidden;
  flex-direction: column;
  text-align: left;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.material-image-picker-card:hover,
.material-image-picker-card.is-selected {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgb(22 119 255 / 12%);
}

.material-image-picker-card.is-disabled {
  border-color: #e4e7ec;
  background: #f7f8fa;
  color: #98a2b3;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

.material-image-picker-radio {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  border: 1.5px solid #b8c2cf;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
}

.material-image-picker-card.is-selected .material-image-picker-radio {
  border: 5px solid #1677ff;
}

.material-image-picker-card.is-disabled .material-image-picker-radio {
  border-color: #d0d5dd;
  background: #eef1f4;
}

.material-image-picker-card-preview {
  display: flex;
  width: 100%;
  height: 126px;
  flex: 0 0 126px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #edf0f3;
  background: #f5f7fa;
  color: #98a2b3;
  font-size: 12px;
}

.material-image-picker-card-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.material-image-picker-card.is-disabled .material-image-picker-card-preview img {
  opacity: 0.58;
}

.material-image-picker-card-meta {
  display: grid;
  min-width: 0;
  padding: 8px 9px 9px;
  gap: 2px;
  font-size: 12px;
  line-height: 18px;
}

.material-image-picker-card-name {
  display: block;
  overflow: hidden;
  color: #1d2939;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-image-picker-card.is-disabled .material-image-picker-card-name {
  color: #667085;
}

.material-image-picker-card-reason {
  overflow: hidden;
  color: #d4380d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-image-picker-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 14px;
}

.material-image-picker-empty {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.material-image-upload-card-wrap {
  position: relative;
  display: inline-flex;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
}

.material-image-upload-card {
  position: relative;
  display: flex;
  width: 104px;
  height: 104px;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  background: #fafbfc;
  color: #667085;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.material-image-upload-card:hover,
.material-image-upload-card:focus-visible {
  border-color: #1677ff;
  background: #f7faff;
  box-shadow: 0 0 0 2px rgb(22 119 255 / 10%);
  outline: 0;
}

.material-image-upload-card.has-image {
  border-style: solid;
  background: #f5f7fa;
}

.material-image-upload-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.material-image-upload-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}

.material-image-upload-card-plus {
  color: #98a2b3;
  font-size: 24px;
  font-weight: 300;
  line-height: 24px;
}

.material-image-upload-card.is-failed {
  border-color: #ffccc7;
  background: #fff2f0;
  color: #cf1322;
}

.material-image-upload-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 48%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.material-image-upload-card.has-image:hover .material-image-upload-card-overlay,
.material-image-upload-card.has-image:focus-visible .material-image-upload-card-overlay {
  opacity: 1;
}

.material-image-upload-card-clear {
  position: absolute;
  z-index: 2;
  top: -7px;
  right: -7px;
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d0d5dd;
  border-radius: 50%;
  background: #fff;
  color: #667085;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  line-height: 18px;
  box-shadow: 0 1px 3px rgb(16 24 40 / 12%);
}

.material-image-upload-card-clear:hover,
.material-image-upload-card-clear:focus-visible {
  border-color: #ff7875;
  color: #cf1322;
  outline: 0;
}

@media (max-width: 900px) {
  .promotion-card-editor.has-products {
    grid-template-columns: 1fr;
  }

  .promotion-card-product-list {
    border-right: 0;
    border-bottom: 1px solid #dbe7f5;
  }

  .material-image-picker-toolbar {
    grid-template-columns: 1fr;
  }

  .material-image-picker-search.ant-input-affix-wrapper,
  .material-image-folder-tree-select {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .material-image-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promotion-card-selling-point {
    grid-template-columns: minmax(180px, 1fr) 76px 46px;
  }
}

.compact-distribute-modal .ant-table-thead > tr > th {
  padding: 6px 7px !important;
}

.compact-distribute-modal .ant-btn {
  height: 26px;
  padding: 0 9px;
  font-size: 12px;
}

.compact-distribute-modal .ant-input,
.compact-distribute-modal .ant-select-single,
.compact-distribute-modal .ant-radio-button-wrapper {
  font-size: 12px;
}

.compact-distribute-modal .ant-select-single {
  height: 28px;
}

.compact-distribute-modal .ant-select-single .ant-select-selector {
  height: 28px !important;
}

.compact-distribute-modal .ant-select-single .ant-select-selection-item {
  line-height: 26px !important;
}

.compact-distribute-modal .modal-filter-row {
  gap: 6px;
  margin-bottom: 8px;
}

.compact-distribute-modal .modal-filter-row .ant-input,
.compact-distribute-modal .modal-filter-row .ant-select {
  min-width: 150px;
}

.compact-distribute-modal .material-picker-search-input {
  flex: 0 0 260px;
  width: 260px;
  max-width: min(260px, 100%);
}

.compact-distribute-modal.material-picker-modal .material-picker-batch-search-button.ant-btn {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
}

.compact-distribute-modal .folder-path-select {
  min-width: 210px;
}

.folder-path-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 2px;
  white-space: normal;
}

.folder-path-indent {
  display: inline-block;
  flex-shrink: 0;
}

.compact-distribute-modal .plan-edit-layout {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
}

.compact-distribute-modal .mini-account-card,
.compact-distribute-modal .current-plan-account,
.compact-distribute-modal .batch-account-box {
  padding: 7px 9px;
  border-radius: 5px;
  font-size: 12px;
}

.compact-distribute-modal .mini-account-card {
  margin-bottom: 7px;
}

.compact-distribute-modal .plan-edit-accounts {
  padding-right: 10px;
}

.compact-distribute-modal .material-modal-settings {
  grid-template-columns: minmax(180px, 1fr) 170px 170px auto;
  gap: 6px;
  margin-bottom: 8px;
  padding: 8px;
}

.compact-distribute-modal.material-picker-modal .ant-modal-content {
  display: flex;
  height: 86vh;
  max-height: 86vh;
  flex-direction: column;
}

.qianchuan-material-picker-wrap {
  overflow: hidden;
  overscroll-behavior: none;
}

.qianchuan-material-picker-wrap .compact-distribute-modal.material-picker-modal {
  top: 4vh;
  padding-bottom: 0;
}

.qianchuan-material-picker-wrap .compact-distribute-modal.material-picker-modal .ant-modal-body {
  overflow: clip;
}

.account-owned-material-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  flex: 1 1 auto;
}

.local-material-picker-layout {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
}

.local-material-picker-layout .account-owned-material-content {
  flex: 1 1 auto;
}

.account-owned-material-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  overflow-y: auto;
  border-right: 1px solid #f0f0f0;
  background: #fafafa;
}

.account-owned-material-sidebar > button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.account-owned-material-sidebar > button.is-active {
  border-color: #1677ff;
  background: #eaf3ff;
}

.account-owned-material-sidebar small {
  color: #8c8c8c;
}

.account-owned-material-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

@media (max-width: 760px) {
  .account-owned-material-layout {
    grid-template-columns: 1fr;
  }

  .account-owned-material-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .account-owned-material-sidebar > button {
    min-width: 180px;
  }
}

.qianchuan-material-picker-wrap .material-picker-table-wrap {
  overflow-anchor: none;
  overscroll-behavior: contain;
}

.compact-distribute-modal.material-picker-modal .ant-modal-body {
  display: flex;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  padding-right: 2px;
}

.compact-distribute-modal.material-picker-modal .ant-modal-footer {
  flex: 0 0 auto;
  margin-top: 8px;
}

.compact-distribute-modal.material-picker-modal.material-rule-settings-modal .ant-modal-content {
  height: auto;
  max-height: 82vh;
}

.compact-distribute-modal.material-picker-modal.material-rule-settings-modal .ant-modal-body {
  max-height: calc(82vh - 116px);
  overflow-y: auto;
}

.compact-distribute-modal.material-picker-modal.material-editor-modal .ant-modal-body {
  display: block;
  overflow-y: auto;
}

.compact-distribute-modal.material-editor-modal .material-modal-settings {
  display: block;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
}

.compact-distribute-modal.material-editor-modal .material-assignment-panel,
.compact-distribute-modal.material-editor-modal .assignment-rules-panel,
.compact-distribute-modal.material-editor-modal .assignment-custom-panel {
  margin-bottom: 6px;
}

.compact-distribute-modal.material-editor-modal .assignment-rules-panel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: 0;
  padding: 5px 8px 5px 10px;
  border: 0;
  border-left: 2px solid #dbeafe;
  border-radius: 0 6px 6px 0;
  background: #fbfdff;
}

.compact-distribute-modal.material-editor-modal .assignment-mode-section {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.compact-distribute-modal.material-editor-modal .assignment-mode-section > .assignment-section-heading {
  flex: 0 0 64px;
  white-space: nowrap;
}

.compact-distribute-modal.material-editor-modal .assignment-rule-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.compact-distribute-modal.material-editor-modal .assignment-rule-label {
  flex: 0 0 64px;
  color: #475467;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.compact-distribute-modal.material-editor-modal .assignment-rule-row.is-disabled {
  opacity: .58;
}

.material-editor-selection-section,
.material-editor-preview-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.material-editor-section-head,
.distribution-material-account-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.material-editor-section-head {
  margin-bottom: 9px;
}

.account-material-selection-summary {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.account-material-selection-summary > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  background: #fafbfc;
}

.account-material-selection-summary > div > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-material-id-cell {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.distribution-material-groups {
  display: grid;
  gap: 10px;
}

.distribution-material-account {
  min-width: 0;
}

.distribution-material-account + .distribution-material-account {
  padding-top: 10px;
  border-top: 1px solid #edf0f4;
}

.distribution-material-account-head {
  margin-bottom: 7px;
}

.distribution-material-account-head > .ant-typography:first-child {
  min-width: 0;
  max-width: 58%;
}

.distribution-material-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 7px;
}

.distribution-material-plan-tile {
  display: flex;
  min-width: 0;
  min-height: 86px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  padding: 8px;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  background: #f7f9fc;
}

.distribution-material-plan-name {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 17px;
  word-break: break-all;
}

.distribution-material-plan-tile .ant-btn-link {
  align-self: flex-end;
  height: 20px;
  padding: 0;
}

.distribution-material-groups.is-board .distribution-material-account-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.distribution-material-groups.is-board .distribution-material-account-head > .ant-typography:first-child {
  max-width: 100%;
}

.distribution-material-groups.is-board .distribution-material-plan-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.distribution-material-groups.is-board .distribution-material-plan-tile {
  min-height: 76px;
  padding: 6px;
}

.distribution-material-detail-modal .ant-modal-body {
  overflow: hidden;
}

@media (max-width: 720px) {
  .material-editor-section-head,
  .distribution-material-account-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .distribution-material-account-head > .ant-typography:first-child {
    max-width: 100%;
  }

  .distribution-material-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.compact-distribute-modal.material-picker-modal .material-rule-settings-body {
  align-items: stretch;
  margin-bottom: 0;
}

.compact-distribute-modal.material-picker-modal .material-modal-settings,
.compact-distribute-modal.material-picker-modal .modal-filter-row {
  flex: 0 0 auto;
}

.compact-distribute-modal.material-picker-modal .material-picker-mode-line,
.compact-distribute-modal.material-picker-modal .material-picker-type-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-distribute-modal.material-picker-modal .material-picker-mode-line .block-radio {
  margin-top: 0;
}

.compact-distribute-modal.material-picker-modal .material-rule-summary-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.compact-distribute-modal.material-picker-modal .material-rule-summary-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  color: #1f2937;
}

.compact-distribute-modal.material-picker-modal .material-rule-summary-items {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.compact-distribute-modal.material-picker-modal .material-rule-summary-primary {
  color: #111827;
}

.compact-distribute-modal.material-picker-modal .material-rule-edit-button.ant-btn {
  border-color: #1677ff !important;
  background: #eef5ff !important;
  color: #0958d9 !important;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(22, 119, 255, 0.18);
}

.compact-distribute-modal.material-picker-modal .material-rule-edit-button.ant-btn:not(:disabled):hover,
.compact-distribute-modal.material-picker-modal .material-rule-edit-button.ant-btn:not(:disabled):focus {
  border-color: #0958d9 !important;
  background: #dbeafe !important;
  color: #063f9f !important;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.26);
}

.compact-distribute-modal.material-picker-modal .material-rule-separator {
  margin: 0 6px;
  color: #9ca3af;
  font-weight: 400;
}

.compact-distribute-modal.material-picker-modal .material-assignment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.compact-distribute-modal.material-picker-modal .assignment-section {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.compact-distribute-modal.material-picker-modal .assignment-section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  line-height: 18px;
}

.compact-distribute-modal.material-picker-modal .assignment-section-heading .ant-typography-secondary {
  font-size: 12px;
}

.compact-distribute-modal.material-picker-modal .assignment-mode-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compact-distribute-modal.material-picker-modal .assignment-mode-card,
.compact-distribute-modal.material-picker-modal .assignment-scheme-card,
.compact-distribute-modal.material-picker-modal .assignment-plan-card,
.compact-distribute-modal.material-picker-modal .material-type-filter-button {
  position: relative;
  border: 1px solid #d7dce5;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.compact-distribute-modal.material-picker-modal .assignment-mode-card {
  display: flex;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  align-items: center;
  padding: 3px 30px 3px 8px;
  border-radius: 7px;
}

.compact-distribute-modal.material-picker-modal .assignment-mode-card:hover,
.compact-distribute-modal.material-picker-modal .assignment-scheme-card:hover,
.compact-distribute-modal.material-picker-modal .assignment-plan-card:hover,
.compact-distribute-modal.material-picker-modal .material-type-filter-button:hover {
  border-color: #1677ff;
}

.compact-distribute-modal.material-picker-modal .assignment-mode-card.is-active,
.compact-distribute-modal.material-picker-modal .assignment-scheme-card.is-active,
.compact-distribute-modal.material-picker-modal .assignment-plan-card.is-active,
.compact-distribute-modal.material-picker-modal .material-type-filter-button.is-active {
  border-color: #1677ff;
  background: #eaf3ff;
  color: #0958d9;
  box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.16);
}

.compact-distribute-modal.material-picker-modal .assignment-mode-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.compact-distribute-modal.material-picker-modal .assignment-mode-desc,
.compact-distribute-modal.material-picker-modal .assignment-card-desc {
  color: #667085;
  font-size: 12px;
  line-height: 16px;
}

.compact-distribute-modal.material-picker-modal .assignment-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.compact-distribute-modal.material-picker-modal .assignment-current-tag,
.compact-distribute-modal.material-picker-modal .assignment-muted-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.compact-distribute-modal.material-picker-modal .assignment-current-tag {
  background: #1677ff;
  color: #fff;
}

.compact-distribute-modal.material-picker-modal .assignment-muted-tag {
  background: #f2f4f7;
  color: #667085;
}

.compact-distribute-modal.material-picker-modal .assignment-card-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eaf3ff;
  color: #1677ff;
  flex: 0 0 auto;
}

.compact-distribute-modal.material-picker-modal .assignment-card-icon::before,
.compact-distribute-modal.material-picker-modal .assignment-card-icon::after {
  content: "";
  position: absolute;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-auto::before {
  width: 9px;
  height: 16px;
  transform: skew(-18deg);
}

.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-auto::after {
  width: 6px;
  height: 6px;
  right: 8px;
  bottom: 7px;
}

.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-custom {
  background: #f3e8ff;
  color: #8b5cf6;
}

.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-custom::before {
  width: 10px;
  height: 10px;
  top: 7px;
}

.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-custom::after {
  width: 16px;
  height: 7px;
  bottom: 6px;
}

.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-account-average::before,
.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-account-all::before,
.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-plan-average::before,
.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-inner-average::before,
.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-plan-all::before {
  width: 16px;
  height: 3px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-account-average::after,
.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-inner-average::after {
  width: 3px;
  height: 16px;
  box-shadow: -6px 0 0 currentColor, 6px 0 0 currentColor;
}

.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-account-all {
  background: #eaf8ef;
  color: #16a34a;
}

.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-plan-average {
  background: #fff4e5;
  color: #f97316;
}

.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-inner-average {
  background: #eef4ff;
  color: #2563eb;
}

.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-plan-all {
  background: #f3e8ff;
  color: #8b5cf6;
}

.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-plan-all::after,
.compact-distribute-modal.material-picker-modal .assignment-card-icon.is-account-all::after {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  background: transparent;
}

.compact-distribute-modal.material-picker-modal .assignment-select-dot {
  position: absolute;
  top: 50%;
  right: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid #d0d5dd;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  background: #fff;
  transform: translateY(-50%);
}

.compact-distribute-modal.material-picker-modal .assignment-select-dot.is-active {
  border-color: #1677ff;
  background: #1677ff;
}

.compact-distribute-modal.material-picker-modal .assignment-mode-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eef6ff;
}

.compact-distribute-modal.material-picker-modal .assignment-info-dot {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.compact-distribute-modal.material-picker-modal .assignment-rules-panel {
  background: #fbfdff;
}

.compact-distribute-modal.material-picker-modal .assignment-scheme-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.compact-distribute-modal.material-picker-modal .assignment-scheme-card,
.compact-distribute-modal.material-picker-modal .assignment-plan-card {
  display: flex;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  align-items: center;
  padding: 3px 30px 3px 8px;
  border-radius: 7px;
}

.compact-distribute-modal.material-picker-modal .assignment-card-title {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.compact-distribute-modal.material-picker-modal .assignment-card-note {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  background: #eef4ff;
  color: #2f5fbb;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.compact-distribute-modal.material-picker-modal .assignment-scheme-card:nth-child(2) .assignment-card-note {
  background: #eaf8ef;
  color: #128147;
}

.compact-distribute-modal.material-picker-modal .assignment-scheme-card:nth-child(3) .assignment-card-note {
  background: #fff4e5;
  color: #c25b0a;
}

.compact-distribute-modal.material-picker-modal .assignment-plan-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.compact-distribute-modal.material-picker-modal .assignment-plan-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.compact-distribute-modal.material-picker-modal .assignment-plan-card {
  min-height: 32px;
}

.compact-distribute-modal.material-picker-modal .assignment-plan-card:disabled {
  cursor: not-allowed;
}

.compact-distribute-modal.material-picker-modal.material-editor-modal .material-assignment-panel {
  padding: 4px 8px;
  background: #fff;
}

.compact-distribute-modal.material-picker-modal.material-editor-modal .assignment-mode-section {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.compact-distribute-modal.material-picker-modal.material-editor-modal .assignment-rules-panel {
  margin-left: 0;
}

@media (max-width: 720px) {
  .compact-distribute-modal.material-picker-modal.material-editor-modal .assignment-mode-section,
  .compact-distribute-modal.material-picker-modal.material-editor-modal .assignment-rule-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .compact-distribute-modal.material-picker-modal.material-editor-modal .assignment-mode-section > .assignment-section-heading {
    flex-basis: auto;
  }

  .compact-distribute-modal.material-picker-modal.material-editor-modal .assignment-rules-panel {
    margin-left: 4px;
  }
}

.compact-distribute-modal.material-picker-modal .material-type-filter-inline {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.compact-distribute-modal.material-picker-modal .material-type-filter-buttons {
  display: inline-flex;
  gap: 6px;
}

.compact-distribute-modal.material-picker-modal .material-type-filter-button {
  min-height: 32px;
  padding: 0 13px;
  border-radius: 7px;
  font-weight: 700;
  text-align: center;
}

.compact-distribute-modal.material-picker-modal .material-picker-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 6px;
}

.compact-distribute-modal.material-picker-modal .material-location-tree-select {
  flex: 0 1 210px;
  width: 210px;
}

.compact-distribute-modal.material-picker-modal .material-upload-time-select {
  flex: 0 0 142px;
  width: 142px;
}

.compact-distribute-modal.material-picker-modal .material-upload-time-range {
  flex: 0 0 220px;
  width: 220px;
}

.compact-distribute-modal.material-picker-modal .material-picker-filter-row .ant-input,
.compact-distribute-modal.material-picker-modal .material-picker-filter-row .ant-input-search,
.compact-distribute-modal.material-picker-modal .material-picker-filter-row .ant-input-search .ant-input,
.compact-distribute-modal.material-picker-modal .material-picker-filter-row .ant-input-search .ant-input-group-addon,
.compact-distribute-modal.material-picker-modal .material-picker-filter-row .ant-input-search .ant-btn,
.compact-distribute-modal.material-picker-modal .material-picker-filter-row .ant-select-selector {
  min-height: 32px;
}

.compact-distribute-modal.material-picker-modal .material-picker-search-input .ant-input-group {
  height: 32px;
}

.compact-distribute-modal.material-picker-modal .material-picker-search-input .ant-input-affix-wrapper {
  height: 32px;
  padding-top: 0;
  padding-bottom: 0;
  align-items: center;
}

.compact-distribute-modal.material-picker-modal .material-picker-search-input .ant-input {
  height: 30px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 30px;
}

.compact-distribute-modal.material-picker-modal .material-picker-search-input .ant-input-group-addon,
.compact-distribute-modal.material-picker-modal .material-picker-search-input .ant-input-search-button {
  height: 32px;
}

.compact-distribute-modal.material-picker-modal .material-picker-search-input .ant-input-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compact-distribute-modal.material-picker-modal .material-picker-selection-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  margin: 2px 0 6px;
}

.compact-distribute-modal.material-picker-modal .material-picker-selection-toolbar .tiny-note {
  margin: 0;
}

.compact-distribute-modal.material-picker-modal .assignment-custom-note {
  padding: 8px 10px;
  border-radius: 8px;
}

.compact-distribute-modal.material-picker-modal .assignment-custom-panel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fbfdff;
}

.compact-distribute-modal.material-picker-modal .assignment-custom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compact-distribute-modal.material-picker-modal .assignment-custom-table .ant-table {
  border-radius: 8px;
}

.compact-distribute-modal.material-picker-modal .assignment-account-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 3px;
  border-bottom: 1px solid #e5e7eb;
}

.compact-distribute-modal.material-picker-modal .assignment-account-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 4px 12px;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
}

.compact-distribute-modal.material-picker-modal .assignment-account-tab.is-active {
  background: #eaf3ff;
  color: #0958d9;
  font-weight: 600;
}

.compact-distribute-modal.material-picker-modal .assignment-account-tab.is-incomplete::after {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  content: "";
}

.compact-distribute-modal.material-picker-modal .assignment-custom-table .ant-table-row.is-unassigned > td {
  background: #fff7f6;
}

.compact-distribute-modal.material-picker-modal .assignment-custom-target {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  line-height: 18px;
}

.compact-distribute-modal.material-picker-modal .assignment-custom-material-select {
  width: 100%;
}

.compact-distribute-modal.material-picker-modal .assignment-custom-material-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  line-height: 18px;
}

.compact-distribute-modal.material-picker-modal .assignment-custom-material-list .ant-typography {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-distribute-modal.custom-material-picker-modal .custom-material-picker-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-distribute-modal.custom-material-picker-modal .custom-material-picker-search-input {
  flex: 0 1 25%;
  width: 25%;
  height: 32px;
  min-width: 180px;
}

.compact-distribute-modal.custom-material-picker-modal .custom-material-picker-search-input .ant-input,
.compact-distribute-modal.custom-material-picker-modal .custom-material-picker-search-input .ant-input-group-addon,
.compact-distribute-modal.custom-material-picker-modal .custom-material-picker-search-input .ant-btn {
  height: 32px;
}

.compact-distribute-modal.custom-material-picker-modal .custom-material-picker-time-select {
  flex: 0 0 136px;
  width: 136px;
}

.compact-distribute-modal.custom-material-picker-modal .custom-material-picker-location-select {
  flex: 0 1 25%;
  width: 25%;
  height: 32px;
  min-width: 180px;
}

.material-location-trigger {
  display: inline-flex;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  line-height: 30px;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.material-location-trigger:hover,
.material-location-trigger.is-open {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.08);
}

.material-location-trigger-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-location-trigger-arrow {
  flex: 0 0 auto;
  margin-left: 8px;
  color: #64748b;
  font-size: 12px;
  line-height: 1;
}

.material-location-custom-popover .ant-popover-inner {
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.material-location-custom-popover .ant-popover-inner-content {
  padding: 0;
}

.material-location-custom-dropdown {
  width: 340px;
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  background: #fff;
}

.material-location-custom-dropdown.is-compact {
  width: 190px;
}

.material-location-custom-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.material-location-custom-node {
  display: flex;
  min-width: 0;
  min-height: 28px;
  align-items: center;
  padding-top: 0;
  padding-right: 8px;
  padding-bottom: 0;
  border-radius: 6px;
  color: #1f2937;
  cursor: pointer;
  font-size: 13px;
  line-height: 20px;
  user-select: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.material-location-custom-node:hover {
  background: #f3f7ff;
}

.material-location-custom-node.is-selected {
  background: #e8f2ff;
  color: #0958d9;
  font-weight: 700;
}

.material-location-custom-node.is-in-selected-path {
  color: #0958d9;
}

.material-location-custom-node.is-all {
  padding-left: 10px;
}

.material-location-custom-arrow {
  display: inline-flex;
  flex: 0 0 14px;
  width: 14px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.material-location-custom-arrow.is-expanded {
  font-size: 12px;
}

.material-location-custom-arrow.is-placeholder {
  visibility: hidden;
}

.material-location-custom-folder-icon {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 11px;
  margin-right: 6px;
  border: 1px solid #7aa7ef;
  border-radius: 2px;
  background: #eef6ff;
}

.material-location-custom-folder-icon::before {
  position: absolute;
  top: -4px;
  left: 1px;
  width: 7px;
  height: 4px;
  border: 1px solid #7aa7ef;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  background: #eef6ff;
  content: "";
}

.material-location-custom-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-location-custom-empty {
  padding: 10px;
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
}

.compact-distribute-modal.custom-material-picker-modal .custom-material-picker-range {
  flex: 0 0 220px;
  width: 220px;
}

.compact-distribute-modal.custom-material-picker-modal .material-type-filter-inline {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.compact-distribute-modal.custom-material-picker-modal .material-type-filter-buttons {
  display: inline-flex;
  gap: 6px;
}

.compact-distribute-modal.custom-material-picker-modal .material-type-filter-button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #d7dce5;
  border-radius: 7px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.compact-distribute-modal.custom-material-picker-modal .material-type-filter-button:hover {
  border-color: #1677ff;
}

.compact-distribute-modal.custom-material-picker-modal .material-type-filter-button.is-active {
  border-color: #1677ff;
  background: #eaf3ff;
  color: #0958d9;
}

.compact-distribute-modal.material-picker-modal .material-picker-table-wrap {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
}

.compact-distribute-modal.material-picker-modal .material-picker-table-wrap .ant-table-wrapper {
  min-height: 0;
}

.compact-distribute-modal.material-picker-modal .material-picker-pagination {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #edf0f5;
}

.compact-distribute-modal.material-picker-modal .material-picker-page-size {
  width: 92px;
}

.compact-distribute-modal.material-picker-modal .material-picker-pagination .ant-pagination {
  margin: 0;
}

.compact-distribute-modal .batch-search-summary {
  margin: 8px 0;
  padding: 8px;
}

.compact-distribute-modal .batch-search-summary .ant-statistic-title {
  font-size: 12px;
}

.compact-distribute-modal .batch-search-summary .ant-statistic-content {
  font-size: 16px;
}

.template-select-modal .ant-modal-body {
  padding-top: 6px;
}

.template-select-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.template-select-table .ant-table {
  font-size: 12px;
}

.template-select-table .ant-table-thead > tr > th,
.template-select-table .ant-table-tbody > tr > td {
  padding: 6px 8px !important;
  line-height: 1.35;
}

.template-select-table .ant-tag {
  margin-inline-end: 0;
  font-size: 11px;
  line-height: 18px;
}

.template-select-table .ant-table-pagination {
  margin: 8px 0 0;
}

.confirm-distribution-modal .ant-modal-body {
  max-height: 68vh;
}

.confirm-summary {
  margin-bottom: 10px;
}

.confirm-summary .ant-descriptions-item-label,
.confirm-summary .ant-descriptions-item-content {
  padding: 6px 8px !important;
  font-size: 12px;
}

.confirm-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 6px;
}

.confirm-distribution-table .ant-table {
  font-size: 12px;
}

.confirm-distribution-table .ant-table-thead > tr > th,
.confirm-distribution-table .ant-table-tbody > tr > td {
  padding: 6px 8px !important;
  line-height: 1.35;
  vertical-align: top;
}

.confirm-distribution-table .ant-tag {
  margin-inline-end: 0;
  font-size: 11px;
  line-height: 18px;
}

.dry-run-blocker-popover {
  max-width: 440px;
}

.dry-run-mapping-title {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
}

.dry-run-mapping-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

.dry-run-mapping-item {
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
}

.dry-run-mapping-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dry-run-mapping-main .ant-typography {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dry-run-mapping-meta {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.confirm-material-stack {
  display: grid;
  gap: 4px;
  max-height: 122px;
  overflow: auto;
}

.confirm-material-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #f5f7fa;
}

.material-preview-empty {
  display: grid;
  min-height: 140px;
  place-items: center;
  border: 1px dashed #d0d5dd;
  border-radius: 8px;
  background: #f8fafc;
}

.material-preview-modal .ant-descriptions-item-label,
.material-preview-modal .ant-descriptions-item-content {
  padding: 7px 8px !important;
  font-size: 12px;
}

.success-text { color: #389e0d; }
.error-text { color: #cf1322; }
.processing-text { color: #d46b08; }

.prepare-failure-tooltip {
  display: block;
  max-width: 380px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
}

.ant-pagination .ant-pagination-simple-pager {
  display: none !important;
}

.ant-pagination .ant-pagination-options-quick-jumper {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.ant-pagination .ant-pagination-options-quick-jumper input {
  width: 56px;
  height: 32px;
  text-align: center;
}

.ant-pagination .ant-pagination-options-size-changer {
  min-width: 92px !important;
}

.ant-pagination .ant-pagination-options-size-changer .ant-select-selector {
  width: 92px !important;
  box-sizing: border-box !important;
}

.ant-pagination .ant-pagination-options-size-changer .ant-select-selection-item {
  white-space: nowrap !important;
}

.ant-pagination .ant-pagination-options-size-changer .ant-select-selection-search,
.ant-pagination .ant-pagination-options-size-changer .ant-select-selection-search-input {
  pointer-events: none !important;
  caret-color: transparent !important;
}

.ant-pagination .ant-pagination-options-size-changer,
.ant-pagination .ant-pagination-options-size-changer *,
.ant-pagination .ant-pagination-options-size-changer .ant-select-selector,
.ant-pagination .ant-pagination-options-size-changer .ant-select-selection-item,
.ant-pagination .ant-pagination-options-size-changer .ant-select-selection-search,
.ant-pagination .ant-pagination-options-size-changer .ant-select-selection-search-input {
  cursor: pointer !important;
}

.ant-pagination .ant-pagination-options-size-changer .ant-select-selection-search-input {
  user-select: none !important;
}

.material-report-column-modal .ant-modal-close {
  width: 44px;
  height: 44px;
  color: #4b5563;
  pointer-events: auto;
}

.material-report-column-modal .ant-modal-close:hover {
  color: #111827;
  background: #f3f4f6;
}

@media (max-width: 1180px) {
  .main-content {
    padding: 18px;
  }

  .app-layout > .ant-layout {
    min-width: 0;
  }

  .topbar {
    height: auto;
    min-height: 64px;
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .topbar > div,
  .topbar > .ant-space {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .page-header,
  .table-toolbar {
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 900px) {
  html,
  body,
  #root {
    max-width: 100%;
    overflow-x: hidden;
  }

  .main-content {
    width: 100%;
    padding: 12px;
    overflow-x: clip;
  }

  .main-content .ant-card,
  .main-content .ant-table-wrapper,
  .main-content .ant-space,
  .main-content .ant-row,
  .main-content .ant-col {
    min-width: 0;
    max-width: 100%;
  }

  .batch-record-table .ant-table-container,
  .batch-record-table .ant-table-content,
  .batch-record-table .ant-table-body {
    max-width: 100%;
    overflow-x: auto !important;
  }
}

@media (max-width: 1280px) {
  .material-workspace {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

.account-management-page {
  color: #475467;
}

.app-layout:has(.account-management-page) {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.app-layout:has(.account-management-page) > .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.app-layout:has(.account-management-page) > .ant-layout {
  min-width: 0;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.app-layout:has(.account-management-page) .topbar {
  flex: 0 0 64px;
}

.main-content:has(.account-management-page) {
  height: calc(100vh - 64px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.account-management-page .page-header h3.ant-typography {
  color: #344054;
  font-weight: 600;
}

.account-management-workbench {
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 14px;
}

.account-management-workbench > .ant-card-body {
  padding: 14px 16px 18px;
}

.account-management-command-bar,
.account-management-table-heading,
.account-setting-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-management-command-bar {
  min-height: 48px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef1f5;
}

.account-management-date-tools {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.account-management-status-strip {
  min-width: 0;
}

.account-management-status-help {
  color: #667085;
  cursor: help;
}

.account-management-status-divider {
  width: 1px;
  height: 14px;
  background: #d9dee7;
}

.account-management-inline-alert,
.account-management-inline-notice {
  margin-top: 8px;
}

.account-management-inline-alert.ant-alert {
  padding: 8px 12px;
  border-radius: 8px;
}

.results-history-notice {
  margin-bottom: 12px;
}

.account-management-table-heading {
  min-height: 48px;
  padding: 7px 0;
}

.account-management-table-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.account-management-table .ant-table-thead > tr > th {
  padding: 8px 10px;
  border-inline-end: 1px solid #eef1f5;
  background: #f7f8fa;
  color: #344054;
  font-size: 13px;
  font-weight: 500;
}

.account-management-table .ant-table-tbody > tr > td,
.account-management-table .ant-table-summary > tr > td {
  padding: 7px 10px;
  border-inline-end: 1px solid #eef1f5;
  font-size: 13px;
}

.account-management-table .ant-table-summary {
  background: #fff;
}

.account-management-table .ant-table-summary td {
  border-bottom: 1px solid #eef1f5;
  color: #344054;
  font-weight: 400;
}

.account-management-table .ant-table-thead > tr > th:last-child,
.account-management-table .ant-table-tbody > tr > td:last-child,
.account-management-table .ant-table-summary > tr > td:last-child {
  border-inline-end: 0;
}

.account-management-table .metric-missing {
  color: #98a2b3;
}

.account-management-empty-updating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667085;
}

.oceanengine-delivery-page .page-header h3.ant-typography {
  color: #344054;
  font-weight: 600;
}

.oceanengine-delivery-workbench .ant-card-body {
  padding: 14px 16px 18px;
}

.oceanengine-delivery-filters {
  flex-wrap: wrap;
}

.oceanengine-delivery-table .ant-table-summary {
  background: #fff;
}

.oceanengine-delivery-metric-loading {
  color: #98a2b3;
  font-size: 12px;
}

.account-setting-block {
  margin-top: 20px;
}

.account-setting-heading {
  margin-bottom: 8px;
}

.account-setting-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.account-setting-item {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  cursor: grab;
}

.account-setting-item-hidden {
  border-style: dashed;
  background: #fafafa;
  cursor: default;
}

.account-setting-grip {
  display: inline-block;
  width: 24px;
  color: #98a2b3;
  user-select: none;
}

@media (max-width: 760px) {
  .account-management-command-bar,
  .account-management-table-heading,
  .account-setting-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-management-workbench > .ant-card-body {
    padding: 16px;
  }

  .account-management-date-tools {
    justify-content: flex-start;
  }

  .account-setting-list {
    grid-template-columns: 1fr 1fr;
  }
}

.oceanengine-workbench-toolbar {
  flex: 0 0 auto;
  margin-bottom: 12px;
}

.oceanengine-create-page,
.main-content:has(> div:not([hidden]) > .oceanengine-create-page) > div:not([hidden]) {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  color: #475467;
  font-size: 12px;
}

.app-layout:has(.main-content > div:not([hidden]) > .oceanengine-create-page),
.app-layout:has(.main-content > div:not([hidden]) > .oceanengine-create-page) > .ant-layout {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.app-layout:has(.main-content > div:not([hidden]) > .oceanengine-create-page) > .sidebar {
  --sidebar-menu-bottom-padding: 56px;
  min-height: 0;
  overflow: hidden auto;
}

.app-layout:has(.main-content > div:not([hidden]) > .oceanengine-create-page) .topbar {
  flex: 0 0 auto;
}

.main-content:has(> div:not([hidden]) > .oceanengine-create-page) {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
}

.oceanengine-create-page > .page-header {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

.oceanengine-workbench.ant-card {
  flex: 1 0 360px;
  min-height: 360px;
  max-height: 490px;
  overflow: hidden;
  border-color: #d0d5dd;
  background: #fff;
}

.oceanengine-workbench > .ant-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.oceanengine-create-page .ant-typography,
.oceanengine-create-page .ant-btn,
.oceanengine-create-page .ant-select,
.oceanengine-create-page .ant-input,
.oceanengine-create-page .ant-radio-wrapper,
.oceanengine-create-page .ant-tag,
.oceanengine-create-page .ant-empty-description {
  color: #475467;
  font-size: 12px;
  font-weight: 400;
}

.oceanengine-create-page .ant-btn-primary,
.oceanengine-submit-confirm .ant-btn-primary {
  color: #fff;
}

.oceanengine-create-page strong,
.oceanengine-create-page .ant-typography strong {
  color: inherit;
  font-weight: 600;
}

.oceanengine-create-page .page-header h3.ant-typography {
  color: #475467;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.oceanengine-create-page .oceanengine-workbench-toolbar-row > .ant-space .ant-typography,
.oceanengine-create-page .oceanengine-matrix-cell-header > .ant-typography {
  color: #344054;
  font-weight: 400;
}

.oceanengine-create-page .ant-select-selection-item,
.oceanengine-create-page .ant-input,
.oceanengine-create-page .ant-btn-default {
  color: #475467;
  font-weight: 400;
}

.oceanengine-workbench-toolbar-row,
.oceanengine-workbench-footer,
.oceanengine-section-caption,
.oceanengine-mini-card-title,
.oceanengine-account-resource > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.oceanengine-workbench-toolbar-row {
  min-height: 28px;
}

.oceanengine-workbench-toolbar-row .ant-btn,
.oceanengine-workbench-toolbar-row .ant-select-single,
.oceanengine-workbench-footer .ant-btn {
  height: 28px;
  font-size: 12px;
}

.oceanengine-template-button {
  color: #fff !important;
}

.oceanengine-create-page .oceanengine-matrix-cell-header .ant-btn-link:not(:disabled),
.oceanengine-create-page .oceanengine-workbench-toolbar-row > .ant-btn:not(:disabled) {
  color: #1677ff;
  font-weight: 400;
}

.oceanengine-workbench-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.oceanengine-workbench-grid {
  display: flex;
  height: 100%;
  min-height: 0;
  min-width: 1375px;
  background: #fff;
}

.oceanengine-workbench.is-empty .oceanengine-workbench-grid {
  min-width: 1240px;
}

.oceanengine-matrix-cell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-right: 1px solid #d0d5dd;
  background: #fff;
  color: #475467;
}

.oceanengine-matrix-cell:last-child {
  border-right: 0;
}

.oceanengine-matrix-cell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  min-height: 28px;
  padding: 3px 7px;
  border-bottom: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  font-size: 12px;
}

.oceanengine-matrix-cell-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 7px;
  background: #fff;
}

.oceanengine-matrix-empty {
  display: flex;
  flex: 1;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: #667085;
}

.oceanengine-matrix-empty .ant-btn-primary {
  min-width: 86px;
}

.oceanengine-flat-summary {
  color: #475467;
  font-size: 13px;
  line-height: 2;
}

.oceanengine-mini-card {
  margin-bottom: 8px;
  padding: 9px 10px;
  border-radius: 6px;
  border: 1px solid #e4e7ec;
  background: #fff;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.oceanengine-account-row {
  margin-bottom: 4px;
  padding: 5px 0 8px;
  border-bottom: 1px solid #e4e7ec;
  color: #475467;
  font-size: 13px;
  line-height: 1.35;
}

.oceanengine-account-row .oceanengine-mini-card-title {
  min-height: 22px;
}

.oceanengine-account-row .ant-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  color: #1677ff;
}

.oceanengine-account-row .ant-typography-secondary {
  font-size: 11px;
  color: #667085;
}

.oceanengine-title-pack-summary + .oceanengine-title-pack-summary {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #d0d5dd;
}

.oceanengine-title-pack-summary .oceanengine-mini-card-title {
  margin-bottom: 4px;
  color: #344054;
}

.oceanengine-title-pack-summary .ant-btn {
  width: 22px;
  height: 22px;
  padding: 0;
}

.oceanengine-title-line {
  overflow: hidden;
  padding: 5px 0;
  border-bottom: 1px solid #e4e7ec;
  color: #475467;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oceanengine-workbench-footer {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 10px;
  border-top: 1px solid #d0d5dd;
  color: #475467;
  font-size: 12px;
  flex-wrap: wrap;
}

.oceanengine-project-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 180px;
  margin: -10px;
}

.oceanengine-project-mode button {
  border: 0;
  border-right: 1px solid #d0d5dd;
  background: #fff;
  color: #1677ff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  transition: background-color .15s ease, color .15s ease;
}

.oceanengine-project-mode button:last-child {
  border-right: 0;
}

.oceanengine-project-mode button:hover,
.oceanengine-project-mode button:focus-visible {
  background: #f7faff;
  color: #0958d9;
  outline: none;
}

.oceanengine-project-matrix-cell {
  display: flex;
  flex-direction: column;
}

.oceanengine-project-matrix-cell .oceanengine-matrix-cell-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.oceanengine-project-matrix-cell .oceanengine-project-mode {
  flex: 1;
  width: calc(100% + 20px);
}

.oceanengine-editor-selected-list {
  display: grid;
  gap: 8px;
  max-height: 220px;
  margin-top: 10px;
  overflow-y: auto;
}

.oceanengine-editor-selected-list .ant-card-head {
  min-height: 36px;
  padding: 0 12px;
}

.oceanengine-editor-selected-list .ant-card-head-title,
.oceanengine-editor-selected-list .ant-card-extra {
  padding: 6px 0;
}

.oceanengine-editor-selected-list .ant-card-body {
  padding: 9px 12px;
}

.oceanengine-account-resource {
  margin-bottom: 10px;
}

.oceanengine-account-resource > div {
  min-width: 0;
}

.oceanengine-rule-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.oceanengine-rule-row-top {
  align-items: start;
}

.oceanengine-rule-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.oceanengine-rule-option {
  min-height: 118px;
  padding: 18px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: #303642;
  cursor: pointer;
  text-align: left;
}

.oceanengine-rule-option strong,
.oceanengine-rule-option span {
  display: block;
}

.oceanengine-rule-option strong {
  margin-bottom: 10px;
  font-size: 17px;
}

.oceanengine-rule-option span {
  color: #7a8391;
  line-height: 1.6;
}

.oceanengine-rule-option.is-active {
  border-color: #1677ff;
  box-shadow: inset 0 0 0 1px #1677ff;
}

.oceanengine-rule-option.is-active strong,
.oceanengine-rule-option.is-active span {
  color: #1677ff;
}

.oceanengine-rule-option:disabled {
  background: #f5f5f5;
  color: #a8adb5;
  cursor: not-allowed;
}

.oceanengine-creative-settings {
  padding: 8px 20px;
  border: 1px solid #e8ebf0;
  border-radius: 6px;
  background: #fff;
}

.oceanengine-creative-setting-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  min-height: 62px;
  gap: 18px;
}

.oceanengine-creative-setting-row + .oceanengine-creative-setting-row {
  border-top: 1px solid #f0f1f3;
}

.oceanengine-material-allocation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oceanengine-material-allocation-options button {
  min-width: 112px;
  height: 36px;
  padding: 0 18px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: #303642;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.oceanengine-material-allocation-options button.is-active {
  border-color: #1677ff;
  background: #f3f8ff;
  box-shadow: inset 0 0 0 1px #1677ff;
  color: #1677ff;
}

.oceanengine-ad-group-count-control {
  display: flex;
  align-items: center;
}

.oceanengine-ad-group-count-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.oceanengine-ad-group-count-control .ant-btn {
  width: 92px;
  height: 38px;
  border-radius: 6px 0 0 6px;
  color: #303642;
  opacity: 1;
}

.oceanengine-ad-group-count-control .ant-input-number {
  width: 110px;
  height: 38px;
  margin-left: -1px;
  border-radius: 0 6px 6px 0;
}

.oceanengine-ad-group-count-control .ant-input-number-input {
  height: 36px;
  text-align: center;
}

.oceanengine-creative-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.oceanengine-creative-picker-actions > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.oceanengine-account-video-selection {
  margin: 12px 0 16px;
  padding: 6px 18px;
  border: 1px solid #e8ebf0;
  border-radius: 6px;
  background: #fafbfc;
}

.oceanengine-account-video-selection .ant-select {
  width: 100%;
}

.oceanengine-creative-preview {
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
  background: #f7f9fc;
}

.oceanengine-creative-editor-modal,
.oceanengine-video-library-modal {
  top: 20px;
  padding-bottom: 20px;
}

.oceanengine-creative-editor-modal .ant-modal-content {
  display: flex;
  flex-direction: column;
  height: min(780px, calc(100vh - 40px));
}

.oceanengine-creative-editor-modal .ant-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.oceanengine-group-preview-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.oceanengine-group-preview-account {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e3e8ef;
  border-radius: 7px;
  background: #fff;
}

.oceanengine-group-preview-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.oceanengine-group-preview-account-header {
  padding-bottom: 9px;
  border-bottom: 1px solid #eef1f5;
}

.oceanengine-group-preview-account-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oceanengine-group-preview-account-meta .ant-btn {
  height: 24px;
  padding: 0 2px;
}

.oceanengine-group-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.oceanengine-group-preview-grid.is-collapsed {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.oceanengine-group-preview-card {
  display: flex;
  aspect-ratio: 1.15;
  min-width: 0;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #e3e8ef;
  border-radius: 6px;
  background: #f6f8fb;
  text-align: center;
}

.oceanengine-group-preview-card strong {
  color: #344054;
  font-size: 13px;
  font-weight: 500;
}

.oceanengine-group-preview-card > span,
.oceanengine-group-preview-card > small {
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
  line-height: 1.25;
}

.oceanengine-group-preview-card > small {
  color: #1677ff;
}

.oceanengine-group-preview-card .ant-btn {
  height: 22px;
  margin-top: 3px;
  padding: 0 5px;
  font-size: 12px;
}

.oceanengine-group-preview-list.is-compact {
  gap: 8px;
}

.oceanengine-group-preview-list.is-compact .oceanengine-group-preview-account {
  padding: 8px;
  border: 0;
  background: transparent;
}

.oceanengine-group-preview-list.is-compact .oceanengine-group-preview-account-header {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 6px;
}

.oceanengine-group-preview-list.is-compact .oceanengine-group-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.oceanengine-group-preview-list.is-compact .oceanengine-group-preview-card {
  aspect-ratio: 1;
  min-height: 0;
  padding: 5px 3px;
  background: #f5f6f8;
}

.oceanengine-group-preview-list.is-compact .oceanengine-group-preview-card strong {
  font-size: 11px;
}

.oceanengine-group-preview-list.is-compact .oceanengine-group-preview-card > span,
.oceanengine-group-preview-list.is-compact .oceanengine-group-preview-card > small,
.oceanengine-group-preview-list.is-compact .oceanengine-group-preview-card .ant-btn {
  font-size: 11px;
}

.oceanengine-group-detail-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #e6ebf2;
  border-radius: 6px;
  background: #f8fafc;
}

.oceanengine-group-detail-summary .ant-typography:first-child {
  min-width: 0;
}

.oceanengine-group-detail-table .ant-table-body {
  overflow-y: auto !important;
}

.oceanengine-project-workspace {
  display: grid;
  grid-template-columns: 190px minmax(0, 1120px);
  justify-content: center;
  align-items: start;
  gap: 18px;
}

.oceanengine-project-steps {
  position: sticky;
  top: 0;
  display: grid;
  gap: 2px;
  padding: 18px 12px;
  border: 1px solid #e7ebf0;
  border-radius: 8px;
  background: #fff;
}

.oceanengine-project-steps strong,
.oceanengine-project-steps span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  color: #2668e8;
  font-size: 14px;
}

.oceanengine-project-steps span {
  margin-top: 8px;
  color: #a6adb8;
}

.oceanengine-project-steps i {
  display: grid;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  place-items: center;
}

.oceanengine-project-steps span i {
  background: #b9bec7;
}

.oceanengine-project-steps button {
  padding: 9px 12px 9px 41px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #626a76;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.oceanengine-project-steps button:hover,
.oceanengine-project-steps button:focus-visible {
  background: #f0f6ff;
  color: #1677ff;
  outline: none;
}

.oceanengine-project-editor {
  display: grid;
  gap: 14px;
  position: relative;
  color: #5f6673;
  font-size: 13px;
}

.oceanengine-required::after {
  margin-left: 5px;
  color: #ff4d4f;
  content: "•";
  font-size: 16px;
  line-height: 1;
}

.oceanengine-project-drawer .ant-drawer-content-wrapper {
  min-width: 960px;
}

.oceanengine-project-drawer .ant-drawer-header {
  position: relative;
  min-height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid #e8ebf0;
}

.oceanengine-project-drawer .ant-drawer-title {
  color: #303642;
  font-size: 16px;
  font-weight: 500;
}

.oceanengine-project-drawer .ant-drawer-close {
  position: absolute;
  top: 0;
  left: -38px;
  z-index: 2;
  width: 38px;
  height: 56px;
  margin: 0;
  border-radius: 0;
  background: #1677ff;
  color: #fff;
  font-size: 20px;
}

.oceanengine-project-drawer .ant-drawer-close:hover {
  background: #0958d9;
  color: #fff;
}

.oceanengine-project-drawer .ant-drawer-body {
  padding: 20px 24px;
  background: #f5f6f8;
}

.oceanengine-project-drawer .ant-drawer-footer {
  padding: 14px 18px;
  border-top: 1px solid #e8ebf0;
  background: #fff;
}

.oceanengine-project-drawer .ant-btn,
.oceanengine-project-drawer .ant-input,
.oceanengine-project-drawer .ant-input-number,
.oceanengine-project-drawer .ant-select,
.oceanengine-project-drawer .ant-radio-button-wrapper,
.oceanengine-project-drawer .ant-checkbox-wrapper {
  font-size: 13px;
  font-weight: 400;
}

.oceanengine-project-drawer .ant-radio-button-wrapper {
  height: 38px;
  padding: 0 16px;
  color: #555d6b;
  line-height: 36px;
}

.oceanengine-project-drawer .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
  color: #1677ff;
  background: #e6f4ff;
  border-color: #1677ff;
  box-shadow: none;
}

.oceanengine-project-drawer .ant-radio-button-wrapper-disabled {
  color: #b8bec8;
  background: #fafbfc;
}

.oceanengine-project-drawer .ant-btn-primary {
  min-width: 112px;
  height: 38px;
  border-radius: 3px;
  box-shadow: none;
}

.oceanengine-project-drawer-anchor {
  position: sticky;
  top: 0;
  z-index: 3;
  justify-self: end;
  width: 32px;
  height: 32px;
  margin: -5px 0 -41px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1677ff;
  cursor: pointer;
  font-size: 25px;
  line-height: 32px;
  transform: rotate(90deg);
}

.oceanengine-project-drawer-anchor:hover,
.oceanengine-project-drawer-anchor:focus-visible {
  color: #0958d9;
  outline: none;
}

.oceanengine-project-editor-section {
  padding: 0 18px 20px;
  border: 1px solid #e8ebf0;
  border-radius: 4px;
  background: #fff;
}

.oceanengine-project-editor-section h4 {
  margin: 0 -18px 18px;
  padding: 15px 18px;
  border-bottom: 1px solid #e8ebf0;
  color: #303642;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.oceanengine-project-goal-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 190px));
  gap: 12px;
  margin-bottom: 20px;
}

.oceanengine-project-goal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid #dfe3e9;
  border-radius: 4px;
  background: #fff;
}

.oceanengine-project-goal strong,
.oceanengine-project-goal span {
  display: block;
}

.oceanengine-project-goal strong {
  margin-bottom: 4px;
  color: #3d4451;
  font-size: 15px;
  font-weight: 500;
}

.oceanengine-project-goal span {
  max-width: 124px;
  color: #8b93a1;
  font-size: 13px;
  line-height: 1.55;
}

.oceanengine-project-goal-icon {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(145deg, #eff6ff, #dcecff);
  color: #2f6feb;
  font-size: 20px;
  font-style: normal;
  place-items: center;
}

.oceanengine-project-goal.is-active {
  border-color: #1677ff;
  box-shadow: inset 0 0 0 1px #1677ff;
}

.oceanengine-project-goal.is-active strong {
  color: #1677ff;
}

.oceanengine-project-goal.is-disabled {
  color: #a8adb5;
  opacity: .72;
}

.oceanengine-project-editor-rows {
  display: grid;
  gap: 0;
}

.oceanengine-project-editor-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  min-height: 56px;
  gap: 18px;
}

.oceanengine-project-editor-row > span:first-child {
  color: #666e7b;
  font-size: 14px;
}

.oceanengine-project-editor-row-top {
  align-items: start;
  padding-top: 9px;
}

.oceanengine-project-editor-inline {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.oceanengine-project-editor-inline small,
.oceanengine-project-placement small {
  color: #9299a5;
  font-size: 12px;
  line-height: 1.6;
}

.oceanengine-project-editor-warning {
  color: #ff8a2a !important;
}

.oceanengine-project-objective-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 380px);
}

.oceanengine-project-objective-box .ant-select {
  flex: 1;
  min-width: 0;
}

.oceanengine-project-objective-box .ant-btn {
  flex: none;
  min-width: 56px;
}

.oceanengine-project-objective-stack,
.oceanengine-project-resource-with-reason {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.oceanengine-project-objective-stack > .ant-typography,
.oceanengine-project-resource-with-reason > .ant-typography {
  font-size: 12px;
  line-height: 1.5;
}

.oceanengine-project-compact-select {
  width: min(100%, 320px);
}

.oceanengine-audience-picker-select {
  width: 220px;
  max-width: 100%;
}

.oceanengine-audience-picker-modal .ant-modal-body {
  padding: 16px 20px 12px;
}

.oceanengine-audience-picker-modal .oceanengine-account-resource {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 220px;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.oceanengine-audience-picker-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.oceanengine-pricing-choice {
  pointer-events: none;
}

.oceanengine-pricing-choice .ant-radio-button-wrapper {
  width: fit-content;
  padding-inline: 14px;
}

.oceanengine-audience-option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.oceanengine-audience-option-row > .ant-checkbox-wrapper {
  flex: 0 0 auto;
}

.oceanengine-monitor-textarea.ant-input {
  min-height: 38px;
  max-width: 532px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.oceanengine-project-resource-select {
  width: min(100%, 400px);
}

.oceanengine-project-editor-row > .ant-input,
.oceanengine-project-editor-row > .ant-input-affix-wrapper,
.oceanengine-project-editor-row > .ant-input-number,
.oceanengine-project-editor-row > .ant-picker {
  width: min(100%, 460px);
}

.oceanengine-project-placement {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.oceanengine-project-placement-choice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.oceanengine-project-preferred-media {
  display: grid;
  grid-template-columns: 110px repeat(3, minmax(115px, 1fr));
  align-items: center;
  gap: 9px 14px;
  width: min(100%, 680px);
  padding: 12px 14px;
  border: 1px solid #e4e7ec;
  background: #fafbfc;
  color: #626a76;
  font-size: 12px;
}

.oceanengine-project-preferred-media-head {
  grid-column: 1 / -1;
  color: #414855;
  font-size: 13px;
  font-weight: 500;
}

.oceanengine-project-preferred-media .ant-checkbox-group {
  display: contents;
}

.oceanengine-project-site-editor {
  margin: 12px 0 2px 168px;
  padding: 14px 16px;
  border: 1px solid #e8ebf0;
  background: #fafbfc;
}

.oceanengine-project-site-editor .oceanengine-account-resource {
  display: grid;
  grid-template-columns: minmax(160px, .45fr) minmax(280px, 1fr);
  align-items: center;
  gap: 14px;
  margin: 10px 0 0;
}

.oceanengine-project-strategy-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 190px));
  gap: 8px;
  width: min(100%, 620px);
}

.oceanengine-project-strategy-options > button {
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid #dfe3e9;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.oceanengine-project-strategy-options strong,
.oceanengine-project-strategy-options small {
  display: block;
}

.oceanengine-project-strategy-options strong {
  margin-bottom: 3px;
  color: #414855;
  font-size: 14px;
  font-weight: 500;
}

.oceanengine-project-strategy-options small {
  color: #9299a5;
  font-size: 12px;
  line-height: 1.35;
}

.oceanengine-project-strategy-options .is-active {
  border-color: #1677ff;
  box-shadow: inset 0 0 0 1px #1677ff;
}

.oceanengine-project-strategy-options .is-active strong,
.oceanengine-project-strategy-options .is-active small {
  color: #1677ff;
}

.oceanengine-project-strategy-options .is-disabled {
  opacity: .78;
}

.oceanengine-project-budget-box {
  margin: 8px 0 4px 168px;
  border: 1px solid #dfe3e9;
  background: #fff;
}

.oceanengine-project-budget-head {
  display: flex;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid #e8ebf0;
  background: #f6f7f9;
  color: #8a929f;
}

.oceanengine-project-budget-head strong {
  color: #3f4652;
  font-weight: 500;
}

.oceanengine-project-budget-rule {
  margin: 6px 18px;
}

.oceanengine-project-budget-rule label {
  display: grid;
  grid-template-columns: 124px 185px minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  min-height: 64px;
  padding: 8px 2px;
  gap: 10px;
  color: #626a76;
}

.oceanengine-project-budget-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.oceanengine-project-budget-rule .ant-input-number {
  width: 185px;
}

.oceanengine-project-budget-rule .ant-btn-link {
  min-width: auto;
  height: auto;
  padding: 0 2px;
}

.oceanengine-project-name-editor {
  display: grid;
  gap: 8px;
  max-width: 780px;
}

.oceanengine-project-name-editor > div {
  width: min(100%, 780px);
}

.oceanengine-project-name-editor .oceanengine-project-name-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.oceanengine-field-error {
  color: #ff4d4f;
  font-size: 13px;
}

.oceanengine-audience-preset-form {
  max-height: 62vh;
  overflow: auto;
  padding-right: 8px;
}

.oceanengine-project-name-editor small {
  color: #8b93a1;
  font-size: 12px;
}

.oceanengine-project-name-editor small a {
  margin-right: 16px;
  color: #1677ff;
}

.oceanengine-project-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.oceanengine-project-editor-footer .ant-btn {
  min-width: 102px;
  height: 38px;
}

.oceanengine-ad-basic-drawer .ant-drawer-content-wrapper {
  min-width: min(960px, calc(100vw - 52px));
}

.oceanengine-ad-basic-drawer .ant-drawer-body {
  padding: 20px 24px 28px;
}

.oceanengine-ad-basic-content {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 1110px;
  margin: 0 auto;
}

.oceanengine-ad-basic-content .oceanengine-project-editor-section {
  padding-bottom: 18px;
  border-radius: 5px;
}

.oceanengine-ad-basic-content .oceanengine-project-editor-row {
  grid-template-columns: 150px minmax(0, 1fr);
  max-width: 940px;
  min-height: 42px;
}

.oceanengine-ad-basic-content .ant-input,
.oceanengine-ad-basic-content .ant-input-number,
.oceanengine-ad-basic-content .ant-input-affix-wrapper,
.oceanengine-ad-basic-content .ant-select {
  max-width: 500px;
}

.oceanengine-ad-basic-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.oceanengine-ad-basic-tag-editor {
  display: grid;
  gap: 12px;
  width: min(100%, 720px);
}

.oceanengine-ad-basic-entry-line {
  display: flex;
  align-items: center;
  width: 100%;
}

.oceanengine-ad-basic-entry-line .ant-input {
  width: 360px;
  max-width: none;
  height: 38px;
  border-radius: 3px 0 0 3px;
}

.oceanengine-ad-basic-entry-line .ant-btn {
  height: 38px;
  border-radius: 0;
}

.oceanengine-ad-basic-entry-line .ant-btn:last-child {
  margin-left: 18px;
  border-radius: 3px;
}

.oceanengine-ad-basic-tag-box {
  width: 500px;
  min-height: 150px;
  border: 1px solid #dfe3e9;
  border-radius: 3px;
  background: #fff;
}

.oceanengine-ad-basic-product-tag-box {
  min-height: 210px;
}

.oceanengine-ad-basic-tag-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid #dfe3e9;
  background: #f7f8fa;
  color: #596171;
}

.oceanengine-ad-basic-tag-box-head .ant-btn {
  height: auto;
  padding: 0;
}

.oceanengine-ad-basic-tag-box-body {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 108px;
  padding: 12px;
}

.oceanengine-ad-basic-product-image .ant-btn:first-child {
  display: grid;
  width: 108px;
  height: 108px;
  padding: 8px;
  border-style: dashed;
  white-space: normal;
  place-items: center;
}

.oceanengine-ad-basic-product-image {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.oceanengine-ad-basic-product-image img {
  width: 108px;
  height: 108px;
  border: 1px solid #e1e5eb;
  border-radius: 4px;
  object-fit: cover;
}

.oceanengine-material-picker-toolbar,
.oceanengine-aweme-picker-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oceanengine-aweme-picker-line {
  width: 100%;
  min-width: 0;
}

.oceanengine-aweme-picker-line .oceanengine-ad-basic-account-select {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.oceanengine-aweme-refresh-button.ant-btn {
  flex: 0 0 72px;
  width: 72px;
  min-width: 72px;
  margin: 0;
  transform: none;
}

.oceanengine-material-picker-toolbar {
  margin-bottom: 10px;
}

.oceanengine-video-picker-modal .ant-modal-body {
  max-height: calc(100vh - 210px);
  overflow: hidden;
}

.oceanengine-video-picker-modal .ant-table-wrapper {
  min-height: 0;
}

.oceanengine-video-picker-modal .ant-table-pagination {
  position: sticky;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin-bottom: 0;
  padding: 10px 0 2px;
  background: #fff;
}

.oceanengine-video-library-modal .ant-modal-content {
  display: flex;
  flex-direction: column;
  height: min(780px, calc(100vh - 40px));
}

.oceanengine-video-library-modal .ant-modal-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.oceanengine-account-material-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  flex: 1 1 auto;
}

.oceanengine-account-material-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  overflow-y: auto;
  border-right: 1px solid #f0f0f0;
  background: #fafafa;
}

.oceanengine-account-material-sidebar > button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.oceanengine-account-material-sidebar > button.is-active {
  border-color: #1677ff;
  background: #eaf3ff;
}

.oceanengine-account-material-sidebar small {
  color: #8c8c8c;
}

.oceanengine-account-material-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

@media (max-width: 760px) {
  .oceanengine-account-material-layout {
    grid-template-columns: 1fr;
  }

  .oceanengine-account-material-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .oceanengine-account-material-sidebar > button {
    min-width: 180px;
  }
}

.oceanengine-video-library-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.oceanengine-video-library-search {
  flex: 0 0 260px;
  width: 260px;
  min-width: 260px;
  max-width: min(260px, 100%);
}

.oceanengine-video-library-batch-search-button.ant-btn {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
}

.oceanengine-video-library-toolbar .oceanengine-video-folder-select {
  flex: 0 0 210px;
  width: 210px;
}

.oceanengine-video-library-toolbar .oceanengine-video-upload-time-select {
  flex: 0 0 142px;
  width: 142px;
}

.oceanengine-video-library-toolbar .oceanengine-video-upload-time-range {
  flex: 0 0 220px;
  width: 220px;
}

.oceanengine-video-library-toolbar .ant-select,
.oceanengine-video-library-toolbar .ant-picker,
.oceanengine-video-library-toolbar > .ant-input-affix-wrapper {
  height: 32px;
}

.oceanengine-video-library-counts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 8px;
}

@media (max-width: 1100px) {
  .oceanengine-video-library-toolbar {
    align-items: flex-start;
  }
}

.oceanengine-video-library-table {
  flex: 1 1 auto;
  min-height: 0;
}

.oceanengine-video-library-table .ant-spin-nested-loading,
.oceanengine-video-library-table .ant-spin-container {
  height: 100%;
}

.oceanengine-video-library-table .ant-pagination-options {
  order: -2;
  margin-inline-start: 0;
  margin-inline-end: 12px;
}

.oceanengine-video-library-table .ant-pagination-options-size-changer,
.oceanengine-video-library-table .ant-pagination-options-size-changer .ant-select-selector {
  width: 112px !important;
  min-width: 112px !important;
  flex: 0 0 112px;
}

.oceanengine-video-library-table .ant-pagination-total-text {
  order: -1;
}

@media (min-width: 1600px) {
  .oceanengine-create-page .ant-typography,
  .oceanengine-create-page .ant-btn,
  .oceanengine-create-page .ant-select,
  .oceanengine-create-page .ant-input,
  .oceanengine-create-page .ant-radio-wrapper,
  .oceanengine-create-page .ant-tag,
  .oceanengine-create-page .ant-empty-description,
  .oceanengine-matrix-cell-header,
  .oceanengine-mini-card,
  .oceanengine-account-card {
    font-size: 14px;
  }

  .distribute-compact-page,
  .distribute-compact-page .page-header .ant-typography-secondary,
  .distribute-compact-page .ant-btn,
  .distribute-compact-page .ant-btn-sm,
  .distribute-compact-page .ant-select-selector,
  .distribute-compact-page .board-group-header,
  .distribute-compact-page .board-column-title {
    font-size: 13px !important;
  }
}

.oceanengine-account-split-modal {
  top: 20px;
  padding-bottom: 20px;
}

.oceanengine-account-split-modal .ant-modal-content {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: hidden;
}

.oceanengine-account-split-modal .ant-modal-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.oceanengine-account-split-panel {
  display: grid;
  flex: 0 1 570px;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.oceanengine-account-split-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid #e5e7eb;
  background: #fafbfc;
}

.oceanengine-account-split-title,
.oceanengine-account-split-current {
  flex: 0 0 52px;
  padding: 15px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #475467;
  font-size: 14px;
  font-weight: 500;
}

.oceanengine-account-split-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
}

.oceanengine-account-split-list button {
  display: grid;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #475467;
  font: inherit;
  text-align: left;
  cursor: pointer;
  gap: 3px;
}

.oceanengine-account-split-list button.is-active {
  border-color: #1677ff;
  background: #eaf3ff;
  box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.08);
}

.oceanengine-account-split-list button span {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oceanengine-account-split-list button small,
.oceanengine-account-split-list button em {
  overflow: hidden;
  color: #98a2b3;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oceanengine-account-split-list button.is-active em {
  color: #1677ff;
}

.oceanengine-account-split-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
}

.oceanengine-account-split-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oceanengine-account-split-current span:last-child {
  color: #1677ff;
  font-size: 12px;
  font-weight: 400;
}

.oceanengine-account-split-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.oceanengine-account-split-form,
.oceanengine-account-split-table-content {
  display: grid;
  gap: 16px;
}

.oceanengine-account-split-form .oceanengine-project-editor-row {
  grid-template-columns: 110px minmax(0, 1fr);
}

.oceanengine-account-split-form .oceanengine-ad-basic-source-input {
  width: min(100%, 320px);
}

.oceanengine-account-split-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.oceanengine-ad-basic-short-input.ant-input-affix-wrapper,
.oceanengine-ad-basic-short-input.ant-input {
  width: min(100%, 420px);
}

.oceanengine-ad-basic-source-input.ant-input-affix-wrapper,
.oceanengine-ad-basic-source-input.ant-input {
  width: min(100%, 210px);
}

.oceanengine-ad-basic-url-input.ant-input {
  width: min(100%, 620px);
}

.oceanengine-ad-basic-link-input.ant-input {
  width: min(100%, 620px);
  min-height: 38px !important;
  padding-top: 7px;
  padding-bottom: 7px;
  resize: vertical;
}

.oceanengine-temp-product-image-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.oceanengine-temp-product-image-picker > .ant-typography {
  flex-basis: 100%;
  font-size: 12px;
}

.oceanengine-ad-basic-money-input.ant-input-number,
.oceanengine-ad-basic-money-input.ant-input-number-group-wrapper {
  width: 180px;
}

.oceanengine-ad-basic-account-select {
  width: min(100%, 360px);
}

.oceanengine-product-config-list {
  display: grid;
  gap: 10px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 6px;
}

.oceanengine-ad-basic-product-image .ant-btn-link {
  width: auto;
  height: 30px;
}

.oceanengine-ad-basic-reuse-alert {
  max-width: 900px;
  margin: 8px 0 10px;
  border: 0;
  border-radius: 3px;
}

.oceanengine-ad-basic-reuse-alert .ant-btn-link {
  height: auto;
  padding: 0 4px;
}

.oceanengine-ad-basic-recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
  min-height: 0;
  padding: 12px 8px;
}

.oceanengine-ad-basic-recommend-grid .ant-checkbox-wrapper {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-inline-start: 0;
  font-size: 16px;
}

.oceanengine-ad-basic-recommend-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.oceanengine-ad-basic-recommend-footer .ant-btn {
  min-width: 130px;
}

.oceanengine-ad-basic-textarea.ant-input {
  width: min(100%, 500px);
  min-height: 58px;
}

.oceanengine-ad-basic-bid-box {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #e1e5eb;
  border-radius: 3px;
  background: #fbfcfd;
}

.oceanengine-ad-basic-bid-box > div:not(.oceanengine-project-editor-row) {
  display: flex;
  align-items: center;
  gap: 14px;
}

.oceanengine-ad-basic-bid-summary {
  justify-content: space-between;
  padding: 8px 10px;
  background: #f5f6f8;
  color: #6d7480;
}

.oceanengine-ad-basic-bid-box .oceanengine-project-editor-row {
  grid-template-columns: 120px 180px;
  min-height: 36px;
}

.oceanengine-ad-basic-bid-box .ant-input-number {
  width: 180px;
}

.oceanengine-project-picker-modal .ant-modal-body,
.oceanengine-aweme-picker-modal .ant-modal-body,
.oceanengine-account-link-modal .ant-modal-body,
.oceanengine-recommend-modal .ant-modal-body {
  padding: 16px 18px;
}

.oceanengine-ad-basic-bid-summary strong,
.oceanengine-ad-basic-bid-box > div strong {
  color: #404754;
  font-weight: 500;
}

.oceanengine-ad-basic-account-modal {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.oceanengine-ad-basic-account-modal .oceanengine-account-resource {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e8ebf0;
  border-radius: 4px;
  background: #fafbfc;
}

.oceanengine-aweme-picker-modal .oceanengine-ad-basic-account-modal .oceanengine-account-resource {
  grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
}

.oceanengine-aweme-picker-modal .oceanengine-account-split-panel {
  flex-basis: 340px;
  grid-template-columns: 190px minmax(0, 1fr);
  height: 340px;
  min-height: 0;
}

.oceanengine-aweme-picker-modal .oceanengine-account-split-title,
.oceanengine-aweme-picker-modal .oceanengine-account-split-current {
  flex-basis: 46px;
  padding: 12px 14px;
}

.oceanengine-aweme-picker-modal .oceanengine-account-split-list {
  padding: 8px;
}

.oceanengine-aweme-picker-modal .oceanengine-account-split-list button {
  margin-bottom: 6px;
  padding: 8px 10px;
}

.oceanengine-aweme-picker-modal .oceanengine-account-split-body {
  padding: 14px 16px;
}

.oceanengine-aweme-picker-modal .oceanengine-account-split-form {
  gap: 12px;
}

.oceanengine-aweme-picker-modal .oceanengine-aweme-picker-line {
  width: min(100%, 440px);
}

.oceanengine-title-pack-picker .ant-modal-body {
  max-height: 56vh;
}

.oceanengine-title-pack-picker .title-pack-tabs {
  margin-bottom: 10px;
}

.oceanengine-title-pack-picker .title-pack-toolbar {
  margin-bottom: 10px;
}

.oceanengine-title-pack-picker .title-pack-toolbar .ant-input-search {
  width: 220px;
}

.oceanengine-aweme-picker-modal .oceanengine-account-resource > .ant-typography-danger {
  grid-column: 2;
}

.oceanengine-aweme-select-popup {
  max-width: calc(100vw - 32px);
  overflow-x: hidden;
}

.oceanengine-aweme-select-popup .ant-select-item-option-content {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .oceanengine-aweme-picker-modal .oceanengine-ad-basic-account-modal .oceanengine-account-resource {
    grid-template-columns: 1fr;
  }

  .oceanengine-aweme-picker-modal .oceanengine-account-resource > .ant-typography-danger {
    grid-column: 1;
  }
}

.oceanengine-project-steps span.is-complete i {
  background: #16a34a;
}

@media (max-width: 900px) {
  .oceanengine-account-split-panel {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .oceanengine-rule-row {
    grid-template-columns: 1fr;
  }

  .oceanengine-rule-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oceanengine-creative-setting-row,
  .oceanengine-video-library-toolbar {
    grid-template-columns: 1fr;
  }

  .oceanengine-group-preview-account-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .oceanengine-material-allocation-options {
    align-items: flex-start;
  }

  .oceanengine-creative-picker-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .oceanengine-project-drawer .ant-drawer-content-wrapper {
    min-width: 0;
  }

  .oceanengine-project-workspace {
    grid-template-columns: 1fr;
  }

  .oceanengine-project-steps {
    position: static;
    display: none;
  }

  .oceanengine-project-editor-row,
  .oceanengine-project-goal-options {
    grid-template-columns: 1fr;
  }

  .oceanengine-ad-basic-content .oceanengine-project-editor-row,
  .oceanengine-ad-basic-account-modal .oceanengine-account-resource {
    grid-template-columns: 1fr;
  }

  .oceanengine-ad-basic-drawer .ant-drawer-content-wrapper {
    min-width: 0;
  }

  .oceanengine-project-site-editor,
  .oceanengine-project-budget-box {
    margin-left: 0;
  }
}
.sidebar .ant-menu-item.editor-nav-placeholder,
.sidebar .ant-menu-item.editor-nav-placeholder:hover,
.sidebar .ant-menu-item.editor-nav-placeholder:active {
  color: rgba(48, 56, 70, 0.42) !important;
  background: transparent !important;
  cursor: default !important;
  pointer-events: none;
}
