.nas-dropdown-item {
  cursor: pointer;
}
.nas-dropdown-item:hover {
  background: var(--td-bg-color-container-hover, rgba(0, 0, 0, 0.05));
}

.nas-dialog-ctx {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nas-dialog-ctx .t-dialog__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.nas-dialog {
  position: relative;
  width: min(920px, 92vw);
  height: min(720px, 88vh);
  display: flex;
  flex-direction: column;
  background: var(--td-bg-color-container, #fff);
  border-radius: var(--td-radius-default, 9px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  color: var(--td-text-color-primary, rgba(0, 0, 0, 0.9));
  font: var(--td-font-body-medium, 14px/1.5715 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif);
}
.nas-dialog .t-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
  flex: 0 0 auto;
}
.nas-dialog .t-dialog__title {
  font-size: 18px;
  font-weight: 600;
}
.nas-dialog .t-dialog__close {
  border: 0;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--td-text-color-secondary, rgba(0, 0, 0, 0.6));
}
.nas-dialog .t-dialog__close:hover {
  background: rgba(0, 0, 0, 0.05);
}
.nas-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 20px 20px;
}
.nas-dialog__frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  display: block;
}
.nas-dialog__body {
  overflow: hidden;
}

.nas-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nas-dropdown-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--td-text-color-secondary, rgba(0, 0, 0, 0.6));
}

/* 对齐知识库 batch-tag-dialog 头尾间距 */
.nas-dialog .t-dialog__header { min-height: auto; }

/* 设置中心：NAS同步 */
.nas-settings-nav {
  display: block;
  cursor: pointer;
}
.nas-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nas-settings-panel {
  width: min(1120px, 94vw);
  height: min(780px, 92vh);
  background: var(--td-bg-color-container, #fff);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
}
.nas-settings-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--td-component-border, #e7e7e7);
  font-weight: 600;
}
.nas-settings-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
}
.nas-settings-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #f3f3f3;
}
.nas-settings-embed {
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 560px;
  border: 0;
  border-radius: 6px;
  background: #f3f3f3;
}
