/* ============================================================
   DualStar · 世界书 app
   ============================================================ */

.worldbook-view {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.worldbook-shell {
  position: relative;
  width: var(--phone-w);
  height: var(--phone-h);
  max-height: 100vh;
  background: var(--bg);
  border-radius: var(--phone-radius);
  box-shadow:
    0 0 0 12px var(--bg-elevated),
    0 0 0 13px var(--border-strong),
    var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .worldbook-shell {
    width: 100vw;
    height: 100vh;
    height: 100lvh;
    border-radius: 0;
    box-shadow: none;
  }
}

/* —— 全屏模式 —— */
/* 基础样式已由 base.css 统一处理（窗口化） */

/* 平板/桌面端全屏模式：内容居中优化 */
@media (min-width: 769px) {
  [data-display-mode="fullscreen"] .worldbook-list,
  [data-display-mode="fullscreen"] .worldbook-editor-content {
    max-width: 720px;
    margin: 0 auto;
  }
}

/* —— 顶部导航 —— */
.worldbook-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  padding-top: calc(14px + var(--safe-area-top, env(safe-area-inset-top, 0px)));
  flex-shrink: 0;
}

.worldbook-nav-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

.worldbook-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}
.worldbook-nav-btn:hover { background: var(--surface); }

.worldbook-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 10px 20px 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* —— 列表 —— */
.worldbook-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.worldbook-item {
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  border: 1px solid var(--border);
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.worldbook-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.worldbook-item.disabled {
  opacity: 0.55;
}

.worldbook-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.worldbook-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.worldbook-weight-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.worldbook-weight-pill.w-0 { background: rgba(201, 168, 160, 0.25); color: var(--danger); }
.worldbook-weight-pill.w-1 { background: rgba(212, 184, 150, 0.25); color: var(--highlight-deep); }
.worldbook-weight-pill.w-2 { background: var(--accent-soft); color: var(--accent-deep); }
.worldbook-weight-pill.w-3 { background: var(--accent-soft); color: var(--accent-deep); }
.worldbook-weight-pill.w-4 { background: var(--surface); color: var(--text-secondary); }
.worldbook-weight-pill.w-5 { background: var(--surface); color: var(--text-secondary); }

.worldbook-item-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
  word-break: break-word;
}

.worldbook-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.worldbook-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.worldbook-tag-constant {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 500;
}

.worldbook-tag-muted {
  opacity: 0.6;
  font-style: italic;
}

.worldbook-tag-off {
  background: rgba(201, 168, 160, 0.2);
  color: var(--danger);
}

.worldbook-item-actions {
  display: flex;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.worldbook-action {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast), transform var(--dur-fast);
}
.worldbook-action:hover {
  background: var(--surface);
  color: var(--text);
}
.worldbook-action-danger:hover {
  color: var(--danger);
  background: rgba(201, 168, 160, 0.15);
}

/* —— 提示卡片 —— */
.worldbook-tip {
  margin: 12px 16px 24px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  border-left: 3px solid var(--accent);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.worldbook-tip strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.worldbook-tip p { margin: 0 0 6px; }
.worldbook-tip p:last-child { margin-bottom: 0; }

/* —— 空状态 —— */
.worldbook-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-tertiary);
}
.worldbook-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  opacity: 0.4;
}
.worldbook-empty p {
  font-size: 14px;
  margin: 0 0 4px;
}
.worldbook-empty .micro {
  font-size: 12px;
  opacity: 0.7;
}

/* —— 编辑器 —— */
.worldbook-editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 32px;
}

/* —— 说明区块 —— */
.wb-info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 16px;
  overflow: hidden;
}
.wb-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  user-select: none;
}
.wb-info-header:hover {
  background: var(--bg-elevated);
}
.wb-info-header .wb-info-chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
}
.wb-info-box.expanded .wb-info-header .wb-info-chevron {
  transform: rotate(180deg);
}
.wb-info-content {
  display: none;
  padding: 0 14px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.wb-info-box.expanded .wb-info-content {
  display: block;
}
.wb-info-content p {
  margin-bottom: 8px;
}
.wb-info-content p:last-child {
  margin-bottom: 0;
}
.wb-info-content strong {
  color: var(--text);
  font-weight: 600;
}

/* —— 高级触发条件 —— */
.wb-advanced-field {
  margin-bottom: 12px;
}
.wb-advanced-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.wb-advanced-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.wb-advanced-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.wb-advanced-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--text);
  cursor: pointer;
}
.wb-advanced-toggle:has(input:checked) {
  color: var(--text);
  font-weight: 600;
}

/* —— 权重 slider —— */
.weight-slider-wrap {
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: 18px 18px 14px;
}

.weight-slider-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.weight-slider-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  min-width: 36px;
  text-align: center;
  border-radius: var(--r-sm);
  padding: 6px 10px;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.weight-slider-value.w-0 { color: var(--danger); background: rgba(201, 168, 160, 0.18); }
.weight-slider-value.w-1 { color: var(--highlight-deep); background: rgba(212, 184, 150, 0.2); }
.weight-slider-value.w-2 { color: var(--accent-deep); background: var(--accent-soft); }
.weight-slider-value.w-3 { color: var(--accent-deep); background: var(--accent-soft); }
.weight-slider-value.w-4 { color: var(--text-secondary); background: var(--surface); }
.weight-slider-value.w-5 { color: var(--text-secondary); background: var(--surface); }

.weight-slider-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.3px;
}

.weight-slider {
  position: relative;
  height: 32px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  margin: 0 12px;
}

.weight-slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--surface);
  border-radius: var(--r-full);
  transform: translateY(-50%);
  overflow: hidden;
}

.weight-slider-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--danger), var(--highlight), var(--accent));
  border-radius: var(--r-full);
  transition: width var(--dur-fast) var(--ease-out);
}

.weight-slider-thumb {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-md);
  transition: left var(--dur-fast) var(--ease-out), transform var(--dur-fast);
  z-index: 2;
}
.weight-slider:active .weight-slider-thumb {
  transform: translate(-50%, -50%) scale(1.15);
}

.weight-slider-ticks {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.weight-slider-tick {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1.5px solid var(--border-strong);
  pointer-events: auto;
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast), transform var(--dur-fast);
}
.weight-slider-tick.active {
  background: var(--accent);
  border-color: var(--accent-deep);
  transform: scale(1.15);
}

.weight-slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 4px;
}
.weight-slider-scale span {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.2px;
}
.weight-slider-scale em {
  font-style: normal;
  font-size: 10px;
  opacity: 0.7;
}

/* —— 开关行 —— */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  cursor: pointer;
}
.toggle-row:hover { background: var(--bg-soft); }

.toggle-row-body { flex: 1; }
.toggle-row-title {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}
.toggle-row-desc {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.switch {
  width: 44px;
  height: 26px;
  border-radius: var(--r-full);
  background: var(--surface);
  position: relative;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out);
}
.switch.on {
  background: var(--accent);
}
.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-spring);
}
.switch.on .switch-knob {
  transform: translateX(18px);
}

.caption {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
  letter-spacing: 0.2px;
}

/* —— 搜索栏 —— */
.wb-search-bar {
  padding: 8px 16px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.wb-search-wrap {
  position: relative;
}
.wb-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}
.wb-search-input:focus {
  border-color: var(--accent);
}
.wb-search-input::placeholder {
  color: var(--text-tertiary);
}
.wb-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

/* —— 导航栏按钮组 —— */
.wb-nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* —— 主体内容 —— */
.worldbook-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* —— 可折叠分区 —— */
.wb-section {
  border-bottom: 1px solid var(--border);
}
.wb-section:last-child {
  border-bottom: none;
}
.wb-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 8px;
  cursor: pointer;
  user-select: none;
}
.wb-section-header:hover {
  background: var(--surface);
}
.wb-section-chevron {
  display: flex;
  align-items: center;
  color: var(--text-tertiary);
  transition: transform 0.2s ease;
}
.wb-section-collapsed .wb-section-chevron {
  transform: rotate(-90deg);
}
.wb-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}
.wb-section-count {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-left: auto;
}
.wb-section-collapsed .wb-section-body {
  display: none;
}
.wb-section-body {
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wb-ungrouped-list {
  gap: 12px;
}

/* —— Scope 徽章 —— */
.wb-scope-badge {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: var(--r-sm);
  margin-left: 6px;
  font-weight: 500;
  vertical-align: middle;
  letter-spacing: 0.2px;
}
.wb-scope-badge-global {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.wb-scope-badge-local {
  background: var(--surface);
  color: var(--text-secondary);
}
.wb-scope-badge-off {
  background: rgba(201, 168, 160, 0.2);
  color: var(--danger);
}

/* —— 分组卡片操作区 —— */
.wb-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wb-scope-switch {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.wb-scope-switch:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.wb-expand-chevron {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.wb-expand-chevron:hover {
  background: var(--surface);
  color: var(--text);
}
.worldbook-group-card.expanded .wb-expand-chevron {
  transform: rotate(180deg);
}

/* —— 内联条目列表 —— */
.worldbook-group-entries-inline {
  border-top: 1px solid var(--border);
  padding: 10px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* —— 搜索结果中的分组标签 —— */
.worldbook-tag-group {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 500;
}

/* —— 分组列表 —— */
.worldbook-groups-list {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.worldbook-group-card {
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.worldbook-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}
.worldbook-group-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.worldbook-group-info {
  flex: 1;
  min-width: 0;
}
.worldbook-group-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.worldbook-group-count {
  font-size: 12px;
  color: var(--text-secondary);
}
.worldbook-group-toggle {
  width: 40px;
  height: 24px;
  border-radius: var(--r-full);
  background: var(--surface);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.worldbook-group-toggle.on {
  background: var(--accent);
}
.worldbook-group-toggle .switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.worldbook-group-toggle.on .switch-knob {
  transform: translateX(16px);
}
.worldbook-group-actions {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
}
.btn-mini {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  background: var(--surface);
  color: var(--text-secondary);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.btn-mini:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.btn-mini.btn-danger {
  color: var(--danger);
}
.btn-mini.btn-danger:hover {
  background: rgba(201, 123, 110, 0.1);
}

/* —— 返回行 —— */
.wb-back-row {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.wb-back-btn {
  font-size: 13px;
  color: var(--accent-deep);
}

/* —— 下拉添加菜单 —— */
.wb-add-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}
.wb-add-menu {
  position: fixed;
  top: 60px;
  right: 16px;
  width: 220px;
  background: var(--bg-elevated);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  overflow: hidden;
}
.wb-add-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--border);
}
.wb-add-menu-item:last-child {
  border-bottom: none;
}
.wb-add-menu-item:hover {
  background: var(--surface);
}
.wb-add-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wb-add-menu-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.wb-add-menu-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

/* —— 分组选择下拉 —— */
.wb-group-select {
  position: relative;
}
.wb-group-select-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.wb-group-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  z-index: 10;
  max-height: 240px;
  overflow-y: auto;
}
.wb-group-select-dropdown.hidden {
  display: none;
}
.wb-group-option {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}
.wb-group-option:hover {
  background: var(--surface);
}
.wb-group-option.selected {
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.wb-group-divider {
  padding: 8px 14px 4px;
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* —— 作用域选择 —— */
.wb-scope-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wb-scope-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.wb-scope-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.wb-scope-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wb-scope-option.selected .wb-scope-icon {
  background: var(--accent);
  color: #fff;
}
.wb-scope-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.wb-scope-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* —— 分组条目列表 —— */
.wb-group-entries {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.wb-group-entry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.wb-group-entry-item:last-child {
  border-bottom: none;
}
.wb-group-entry-name {
  font-size: 14px;
  color: var(--text);
}
.wb-group-entry-remove {
  font-size: 12px;
  color: var(--danger);
  cursor: pointer;
}
.wb-empty-small {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}
