.app-shell.conflict-shell {
  position: relative;
  height: calc(100vh - 3px);
  grid-template-rows: 68px 0 minmax(0, 1fr);
  background: var(--ui-primary-pale, #fff7f8);
}

@font-face {
  font-family: conflict-element-icons;
  src: url("/static/fonts/element-icons.535877f.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.conflict-shell .iconfont {
  font-family: conflict-element-icons !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

.conflict-shell .icon-delete::before { content: "\E6D7"; }
.conflict-shell .icon-plus::before { content: "\E6D9"; }
.conflict-shell .icon-sync::before { content: "\E6D0"; }
.conflict-shell .icon-sousuo::before { content: "\E778"; }
.conflict-shell .icon-upload::before { content: "\E7C3"; }

.app-shell.conflict-shell + .toast-stack {
  top: 20px;
  right: auto;
  left: 50%;
  display: block;
  transform: translateX(-50%);
  z-index: 2010;
  pointer-events: none;
}

.app-shell.conflict-shell + .toast-stack .toast.info {
  position: relative;
  width: 380px;
  min-width: 380px;
  min-height: 46px;
  box-sizing: border-box;
  padding: 12px 16px 12px 42px;
  border: 1px solid #ebeef5;
  border-left-width: 1px;
  border-radius: 4px;
  background: var(--ui-primary-pale, #fff7f8);
  color: #606266;
  box-shadow: none;
  font-size: 14px;
  line-height: 20px;
}

.app-shell.conflict-shell + .toast-stack .toast.info::before {
  content: "\E7A1";
  position: absolute;
  top: 14px;
  left: 16px;
  color: #909399;
  font-family: conflict-element-icons;
  font-size: 16px;
  line-height: 16px;
}

.app-shell.conflict-shell .topbar {
  height: 60px;
  align-self: start;
}

.app-shell.conflict-shell .tab-strip {
  position: absolute;
  z-index: 50;
  top: 68px;
  right: 25px;
  left: 25px;
  height: 44px;
  margin: 0;
  padding: 2px;
  border: 0;
  border-radius: 3px 3px 0 0;
  background: #fff;
  box-shadow: none;
  overflow: visible;
}

.app-shell.conflict-shell .tab-scroll {
  height: 40px;
  background: #e5e5e5;
}

.app-shell.conflict-shell .route-tab {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  height: 40px;
  padding: 0 8px;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #555;
  font-size: 12px;
  font-weight: 400;
}

.app-shell.conflict-shell .route-tab.active {
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #555;
  font-weight: 400;
}

.app-shell.conflict-shell .tab-grid,
.app-shell.conflict-shell .tab-menu-wrap {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.app-shell.conflict-shell .tab-grid {
  border: 0;
  background: #e5e5e5;
  color: var(--ui-ink, #343034);
  font-size: 16px;
}

.app-shell.conflict-shell .workspace-wrap {
  grid-row: 3;
  min-height: 0;
  padding: 0 25px 16px;
}

.app-shell.conflict-shell .workspace {
  height: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.conflict-page {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: auto;
  padding: 56px 20px 20px;
  background: #fff;
}

.conflict-form {
  width: 100%;
  flex: 0 0 auto;
}

.conflict-condition {
  min-width: 0;
  min-height: 32px;
  display: grid;
  grid-template-columns: 107px 90px minmax(0, 1fr) minmax(240px, 320px);
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
}

.conflict-condition select,
.conflict-keyword,
.conflict-keyword input {
  min-width: 0;
  height: 32px;
}

.conflict-condition select,
.conflict-keyword input {
  width: 100%;
  padding: 0 15px;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  outline: 0;
  background: #fff;
  color: #606266;
  font-size: 12px;
}

.conflict-credit-code { min-width: 0; width: 100%; height: 32px; padding: 0 12px; border: 1px solid #dcdfe6; border-radius: 3px; background: #fff; color: #606266; font-size: 12px; }
.conflict-identifiers { min-width: 0; }
.conflict-identifiers.natural { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
.conflict-identifiers .conflict-credit-code { grid-column: auto; }
.conflict-match-detail { display: block; margin-top: 5px; white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 18px; }
.modal.conflict-result-modal { width: 940px; max-width: calc(100vw - 16px); }
.conflict-result-summary { display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.conflict-result-modal .table-frame { min-height: 0; height: auto; overflow-x: auto; }
.conflict-result-modal .data-table { display: table; min-width: 640px !important; }
.conflict-result-modal .data-table thead { display: table-header-group; }
.conflict-result-modal .data-table tbody { display: table-row-group; }
.conflict-result-modal .data-table tr { display: table-row; min-height: 0; padding: 0; }
.conflict-result-modal .data-table td { display: table-cell; height: auto; padding: 10px 12px; white-space: normal !important; text-overflow: clip !important; overflow-wrap: anywhere; vertical-align: top; }
@media (max-width: 820px) {
  .conflict-condition { grid-template-columns: 90px minmax(0, 1fr); }
  .conflict-keyword, .conflict-identifiers { grid-column: 1 / -1; }
}

.conflict-keyword {
  position: relative;
}

.conflict-keyword input {
  padding-right: 104px;
}

.conflict-keyword.has-remove input {
  padding-right: 38px;
}

.conflict-keyword input:focus,
.conflict-condition select:focus {
  border-color: var(--ui-primary, #b8202b);
}

.conflict-smart {
  position: absolute;
  top: 3px;
  right: 3px;
  height: 26px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #606266;
  font-size: 12px;
}

.conflict-smart:hover {
  color: var(--ui-accent-ink, #a21c27);
}

.conflict-remove {
  position: absolute;
  top: 0;
  right: 2px;
  width: 30px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #606266;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.conflict-remove:hover {
  color: var(--ui-accent-ink, #a21c27);
}

.conflict-options {
  min-height: 20.6px;
  height: 20.6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  color: #606266;
  font-size: 12px;
}

.conflict-options label {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 30px;
  white-space: nowrap;
}

.conflict-options input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--ui-primary, #b8202b);
}

.conflict-actions {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 20px;
}

.conflict-button {
  width: 136px;
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  font-size: 12px;
}

.conflict-button:nth-child(1) {
  margin-right: 30px;
}

.conflict-button:nth-child(2) {
  margin-left: 10px;
}

.conflict-button:nth-child(3) {
  margin: 0 30px 0 40px;
}

.conflict-button:nth-child(4) {
  margin: 0 30px 0 40px;
}

.conflict-button-primary {
  border-color: var(--ui-primary, #b8202b);
  background: var(--ui-primary, #b8202b);
  color: #fff;
}

.conflict-button-secondary {
  background: #fff;
  color: #606266;
}

.conflict-button:hover {
  border-color: var(--ui-primary, #b8202b);
  color: var(--ui-accent-ink, #a21c27);
}

.conflict-button-primary:hover {
  color: #fff;
  background: var(--ui-primary, #b8202b);
}

.conflict-principles {
  flex: 0 0 auto;
  margin: 0;
  padding: 15px 20px;
  background: #f7f8fa;
  color: #606266;
}

.conflict-principles h2 {
  margin: 0 0 16px;
  color: #303133;
  font-size: 16px;
  font-weight: 400;
}

.conflict-principle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: normal;
}

.conflict-import-backdrop {
  z-index: 120;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
}

.conflict-import-dialog {
  width: 550px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 32px);
  margin-top: 15vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 3px;
  background: #fff;
  color: #000;
  font-family: "Microsoft Yahei", Arial, Helvetica, sans-serif;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

.conflict-import-dialog.is-preview {
  width: 90vw;
  max-width: none;
  height: calc(90vh - 1px);
  max-height: none;
  margin-top: 20px;
}

.conflict-import-head {
  height: 32.8px;
  flex: 0 0 32.8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
  background-image: linear-gradient(90deg, var(--ui-primary, #b8202b), var(--ui-primary, #b8202b));
}

.conflict-import-head h2 {
  height: 24px;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 20px;
}

.conflict-import-close {
  width: 24px;
  height: 32px;
  margin-right: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 24px;
}

.conflict-import-close:hover {
  color: var(--ui-accent-ink, #a21c27);
}

.conflict-import-body {
  min-height: 0;
  padding: 20px;
  overflow: auto;
  font-size: 12px;
}

.conflict-import-step {
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #606266;
  line-height: 16px;
}

.conflict-import-step strong {
  color: #303133;
  font-weight: 400;
}

.conflict-import-template {
  display: block;
  margin: 10px 0 10px 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ui-accent-ink, #a21c27);
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}

.conflict-import-template:hover {
  color: var(--ui-accent-ink, #a21c27);
  text-decoration: underline;
}

.conflict-import-step.second {
  margin-top: 0;
}

.conflict-import-tip {
  margin: 10px 0 0 48px;
  color: #909399;
  line-height: 16px;
}

.conflict-import-dropzone {
  position: relative;
  width: 100%;
  height: 180px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e5e6eb;
  background: #f4f5f9;
  color: #606266;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.conflict-import-dropzone:hover,
.conflict-import-dropzone.is-dragover {
  border-color: var(--ui-primary, #b8202b);
  background: var(--ui-primary-pale, #fff7f8);
}

.conflict-import-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.conflict-import-drop-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #909399;
  line-height: 20px;
}

.conflict-import-browse {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ui-accent-ink, #a21c27);
  font-size: 12px;
  cursor: pointer;
}

.conflict-import-file {
  width: calc(100% - 36px);
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid #ebeef5;
  background: #fff;
  color: #606266;
}

.conflict-import-file > span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conflict-import-file > button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #909399;
}

.conflict-import-file > button:hover {
  color: #f56c6c;
}

.conflict-import-preview-summary {
  padding: 0;
  color: #606266;
  font-size: 14px;
  line-height: 20px;
}

.conflict-import-preview-summary strong {
  color: #303133;
  font-weight: 600;
}

.conflict-import-preview-summary strong.is-error {
  color: #f56c6c;
}

.conflict-import-error-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #606266;
  cursor: pointer;
}

.conflict-import-preview-toolbar {
  min-height: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.conflict-import-error-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--ui-primary, #b8202b);
}

.conflict-import-table-wrap {
  max-height: 310px;
  overflow: auto;
  border: 1px solid #ebeef5;
}

.conflict-import-dialog.is-preview .conflict-import-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

.conflict-import-dialog.is-preview .conflict-import-table-wrap {
  max-height: none;
  flex: 1;
}

.conflict-import-dialog.is-preview .conflict-import-table {
  min-width: 100%;
}

.conflict-import-dialog.is-preview .conflict-import-foot {
  min-height: 73px;
  flex-basis: 73px;
}

.conflict-import-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #606266;
  font-size: 12px;
}

.conflict-import-dialog.is-preview .conflict-import-table {
  height: 100%;
}

.conflict-import-table th,
.conflict-import-table td {
  height: 40px;
  padding: 0 10px;
  overflow: hidden;
  border-right: 1px solid #ebeef5;
  border-bottom: 1px solid #ebeef5;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conflict-import-table th {
  background: var(--ui-primary-soft, #fbeaec);
  color: #606266;
  font-weight: 600;
}

.conflict-import-table tr:last-child td {
  border-bottom: 0;
}

.conflict-import-table th:last-child,
.conflict-import-table td:last-child {
  border-right: 0;
}

.conflict-import-table .conflict-import-sequence {
  width: 50px;
  text-align: center;
}

.conflict-import-table tr.has-error td {
  background: #fff7f7;
}

.conflict-import-table td.cell-error {
  color: #f56c6c;
}

.conflict-import-table .conflict-import-empty {
  height: 80px;
  color: #909399;
  text-align: center;
}

.conflict-import-foot {
  min-height: 66px;
  flex: 0 0 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  padding: 0 50px 0 20px;
  border-top: 1px solid #e6e6e6;
}

.conflict-import-btn {
  width: 120px;
  height: 32px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font: 500 14px/32px "Microsoft Yahei", Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.conflict-import-btn.secondary {
  background: var(--ui-primary-soft, #fbeaec);
  color: #70706d;
}

.conflict-import-btn.primary {
  box-sizing: border-box;
  border: 1px solid var(--ui-primary, #b8202b);
  background: var(--ui-primary, #b8202b);
  color: #fff;
}

.conflict-import-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

@media (max-width: 820px) {
  .conflict-import-dialog {
    width: calc(100vw - 16px);
    max-width: none;
    margin-top: 8vh;
  }

  .conflict-import-dialog.is-preview {
    width: calc(100vw - 16px);
    height: calc(100dvh - 32px);
    margin-top: 8px;
  }

  .conflict-import-body {
    padding: 16px;
  }

  .conflict-import-template,
  .conflict-import-tip {
    margin-left: 0;
  }

  .conflict-import-foot {
    gap: 12px;
  }

  .conflict-import-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .conflict-import-btn {
    flex: 1;
  }
}

@media (max-width: 820px) {
  .app-shell.conflict-shell {
    height: auto;
    grid-template-rows: 60px 46px minmax(calc(100dvh - 106px), auto);
  }

  .app-shell.conflict-shell .tab-strip {
    position: static;
    width: 100%;
    height: 46px;
    padding: 0;
    border-radius: 0;
  }

  .app-shell.conflict-shell .tab-scroll {
    height: 46px;
  }

  .app-shell.conflict-shell .route-tab {
    width: 130px;
    min-width: 130px;
    height: 44px;
  }

  .app-shell.conflict-shell .workspace-wrap {
    padding: 0;
  }

  .app-shell.conflict-shell .workspace {
    min-height: calc(100dvh - 106px);
  }

  .conflict-page {
    height: auto;
    min-height: calc(100dvh - 106px);
    padding: 20px 12px;
  }

  .conflict-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
  }

  .conflict-button:nth-child(n) {
    margin: 0;
  }

  .conflict-principles {
    margin-top: 24px;
  }

  .app-shell.conflict-shell + .toast-stack {
    right: 12px;
    left: 12px;
    transform: none;
  }

  .app-shell.conflict-shell + .toast-stack .toast.info {
    width: 100%;
    min-width: 0;
  }
}
