
/* ======================================================== */
/* 世界书体系 (WorldBook Studio) - 典藏画廊星芒光晕版        */
/* ======================================================== */

:root {
  --wb-cur-theme: #88abda;
  --wb-cur-theme-bg: rgba(136, 171, 218, 0.22);
  --wb-border-line: #e5e5ea;
  --wb-card-bg: #f8f8fa;
  --wb-icon-gray: #8e8e93;
}

/* 彻底拔除外部父容器所有左右 padding，杜绝两边白色遮挡 */
.app-page[data-page="worldbook"],
.app-page[data-page="worldbook"] .app-content,
.app-page[data-page="worldbook"] #worldbookContent {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

/* ========== 主容器与视口 ========== */
.wb-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  gap: 10px;
  box-sizing: border-box !important;
  padding-top: calc(10px + var(--safe-top)) !important;
  padding-bottom: calc(14px + var(--safe-bottom)) !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
  background: #ffffff;
}

.wb-viewport-box {
  flex: 1;
  width: 100% !important;
  height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  box-sizing: border-box !important;
}
.wb-viewport-box::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.wb-view-hidden {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ========== 1. 首页顶栏：左标题 + 右上角星芒光晕虚线圆钮 ========== */
.wb-gallery-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  flex-shrink: 0;
  width: 100%;
  padding: 0 2px;
  position: relative;
  box-sizing: border-box;
}

.wb-header-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.wb-header-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.wb-header-switch-wrap:active { opacity: 0.7; }

.wb-gallery-main-title {
  font-size: 28px;
  font-weight: 900;
  color: #1c1c1e;
  letter-spacing: 1px;
  line-height: 1.1;
}

/* “书”旁边的 ∨ 下拉箭头 */
.wb-header-arrow-down {
  width: 16px;
  height: 16px;
  stroke: #1c1c1e;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
  margin-top: 2px;
}
.wb-header-arrow-down.open {
  transform: rotate(180deg);
}

.wb-gallery-sub-en {
  font-size: 13px;
  font-weight: 700;
  color: #8e8e93;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

/* ========== 右上角立体行星光环按钮 ========== */
.wb-header-circle-btn.saturn-btn {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  outline: none;
  transform: translateY(-10px); /* 👈 加上这句，绝对立刻往上提 10px！ */
}

/* 1. 后半段星轨 (身后) */
.ring-back {
  position: absolute;
  width: 46px;
  height: 20px;
  border-radius: 50%;
  border-top: 1.4px solid var(--wb-cur-theme);
  border-left: 1.4px solid var(--wb-cur-theme);
  border-bottom: transparent;
  border-right: transparent;
  transform: rotate(-24deg);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

/* 2. 行星核心 (中间雪花星球) */
.saturn-planet-core {
  position: relative;
  z-index: 2;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--wb-cur-theme);
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px var(--wb-cur-theme-bg), 0 2px 10px var(--wb-cur-theme);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.wb-header-circle-btn:active .saturn-planet-core {
  transform: scale(0.92);
}

.core-snowflake {
  font-size: 15px;
  color: #ffffff;
  line-height: 1;
  user-select: none;
  transform: translateY(-1px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3. 前半段星轨 (身前环抱，不挡雪花) */
.ring-front {
  position: absolute;
  width: 46px;
  height: 20px;
  border-radius: 50%;
  border-bottom: 1.4px solid var(--wb-cur-theme);
  border-right: 1.4px solid var(--wb-cur-theme);
  border-top: transparent;
  border-left: transparent;
  transform: rotate(-24deg);
  opacity: 0.95;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px var(--wb-cur-theme-bg));
}

/* 4. 伴星小点点 (精准定位在右上角) */
.ring-star-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wb-cur-theme);
  right: 1px;
  top: 6px;
  z-index: 4;
  box-shadow: 0 0 5px var(--wb-cur-theme);
  overflow: hidden;
}

/* 下拉菜单浮层 (左侧板块切换) */
.wb-header-dropdown-menu {
  position: absolute;
  left: 2px;
  top: 52px;
  background: #ffffff;
  border: 1px solid var(--wb-border-line);
  border-radius: 12px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 50;
  min-width: 120px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.wb-header-dropdown-menu.show { display: flex; animation: wbDropIn 0.15s ease; }
@keyframes wbDropIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.wb-pop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1c1c1e;
  cursor: pointer;
}
.wb-pop-item:active { background: #f0f0f4; }
.wb-pop-item.active {
  background: #f0f0f4;
  color: #1c1c1e;
  font-weight: 800;
}

/* 右上角展开的「新建/导入/改色」菜单浮层 */
.wb-right-menu-popover {
  position: absolute;
  right: 2px;
  top: 52px;
  background: #ffffff;
  border: 1px solid var(--wb-border-line);
  border-radius: 14px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 55;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.wb-right-menu-popover.show { display: flex; animation: wbDropIn 0.15s ease; }

.wb-action-card-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1c1c1e;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.wb-action-card-btn:active { background: #f0f0f4; }
.wb-action-card-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.wb-menu-color-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 4px 2px;
  border-top: 1px dashed var(--wb-border-line);
  margin-top: 4px;
}
.wb-swatch-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}
.wb-swatch-dot:active { transform: scale(0.9); }

.wb-custom-color-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, red, yellow, lime, aqua, blue, magenta, red);
  cursor: pointer;
}
.wb-custom-color-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ========== 2. 首页列表项 ========== */
.wb-home-scroll-viewport {
  padding-bottom: 20px !important;
}

.wb-art-card {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  height: 88px;
  background: #ffffff;
  border: 1px solid var(--wb-border-line);
  border-radius: 0;
  display: flex;
  align-items: center;
  padding: 7px 10px 7px 8px;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none !important;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  box-sizing: border-box !important;
  transform: translateZ(0);
}

.wb-art-card.wb-dragging {
  opacity: 0.96;
  z-index: 50;
  box-shadow: none !important;
  border-color: #8e8e93 !important;
  transition: none !important;
}

.wb-art-frame-left {
  position: relative;
  width: 58px !important;
  height: 100%;
  background: #f4f4f6;
  border: 0.8px solid rgba(0,0,0,0.08);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.wb-art-frame-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.wb-art-frame-left.has-img img { display: block; }
.wb-art-frame-left.has-img .wb-art-cam-icon { display: none; }

.wb-art-cam-icon {
  width: 20px;
  height: 20px;
  stroke: #8e8e93;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wb-art-info-right {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4px 2px 4px 0;
}

/* 2. 标题区：占满上半部主要空间 */
.wb-art-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
}

.wb-art-title-text {
  font-size: 18px;
  font-weight: 800;
  color: #1c1c1e;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.wb-art-stars-btn {
  width: 18px;
  height: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0px !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #1c1c1e;
  flex-shrink: 0;
}
.wb-art-stars-btn:active { opacity: 0.6; }
.wb-art-star-dot {
  font-size: 11px;
  line-height: 0.95;
  color: #1c1c1e;
}

/* 虚线段 */
.wb-art-dot-divider {
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(to right, #d1d1d6, #d1d1d6 3px, transparent 3px, transparent 6px);
  margin: 0;
  transform: translateY(1px); /* 👈 想往下移多少就填多少（比如 4px、6px、8px），必定立刻生效！ */
}

.wb-art-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #8e8e93;
  gap: 4px;
  padding: 0;
  margin: 0;
  transform: translateY(5px); /* 👈 虚线移多少，这里就填多少（比如 6px、8px），文字绝对立刻跟着往下沉！ */
}

.wb-art-count {
  color: #636366;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.wb-art-count span {
  color: #1c1c1e;
  font-weight: 700;
}
.wb-art-enter {
  font-size: 10.5px;
  font-weight: 800;
  color: #1c1c1e;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.wb-dropdown-menu {
  position: absolute;
  right: 12px;
  top: 42px;
  background: #1c1c1e;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  min-width: 96px;
  z-index: 50;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.wb-dropdown-menu.show { display: flex; animation: wbDropIn 0.15s ease; }
.wb-art-card.menu-active {
  z-index: 55 !important;
}

.wb-menu-item {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}
.wb-menu-item:active { background: #2c2c2e; }
.wb-menu-item.del { color: #ff453a; }
.wb-menu-item.del:active { background: rgba(255,69,58,0.15); }

/* ========== 3. 新建名称页 ========== */
.wb-meta-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  flex-shrink: 0;
}
.wb-meta-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: #1c1c1e;
  cursor: pointer;
  padding: 0;
}
.wb-meta-back-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; fill: none; }
.wb-meta-confirm-btn {
  height: 28px;
  padding: 0 14px;
  background: #1c1c1e;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.wb-meta-body-wrap {
  display: flex;
  flex-direction: column;
  padding: 24px 6px;
  gap: 12px;
}
.wb-meta-title-label { font-size: 13px; font-weight: 700; color: #1c1c1e; }
.wb-underline-input {
  width: 100%;
  height: 42px;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #1c1c1e;
  border-radius: 0;
  padding: 4px 0;
  font-size: 17px;
  font-weight: 700;
  color: #1c1c1e;
  outline: none;
  font-family: inherit;
}

/* ========== 4. 词条列表页 ========== */
.wb-entries-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  flex-shrink: 0;
  position: relative;
}

.wb-entries-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: #1c1c1e;
  cursor: pointer;
  padding: 0;
}
.wb-entries-back-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; fill: none; }

.wb-entries-title-center-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 60%;
  cursor: pointer;
  text-align: center;
}
.wb-entries-book-title {
  font-size: 20px;
  font-weight: 800;
  color: #1c1c1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.wb-nav-btn-plus-only {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: #1c1c1e;
}
.wb-nav-btn-plus-only svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.4; fill: none; }

.wb-entries-scroll-viewport {
  padding-bottom: 74px !important;
}

.wb-entry-item-card {
  background: #f8f8fa;
  border: 1px solid #e5e5ea !important;
  border-radius: 12px;
  height: 64px;
  padding: 0 10px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  transform: translateZ(0);
}

.wb-entry-item-card.wb-dragging {
  opacity: 0.96;
  z-index: 50;
  box-shadow: none !important;
  background: #ffffff !important;
  border-color: #8e8e93 !important;
  transition: none !important;
}

.wb-entry-left-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.wb-entry-title-text {
  font-size: 15.5px;
  font-weight: 700;
  color: #1c1c1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-entry-sub-desc {
  font-size: 12px;
  color: #8e8e93;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wb-entry-sub-desc span {
  color: #8e8e93;
  font-weight: 600;
}

.wb-entry-icons-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: 6px;
}

.wb-entry-icon-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wb-icon-gray);
  cursor: pointer;
  transition: all 0.15s ease;
}
.wb-entry-icon-btn:active { background: #e5e5ea; color: #1c1c1e; }
.wb-entry-icon-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wb-entry-switch {
  width: 30px;
  height: 16px;
  border-radius: 9px;
  background: #d1d1d6;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
  margin-left: 2px;
}
.wb-entry-switch::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wb-entry-switch.on { background: var(--wb-cur-theme) !important; }
.wb-entry-switch.on::after { transform: translateX(14px); }

.wb-floating-save-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(18px + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
  padding: 0 16px;
  box-sizing: border-box;
}

.wb-btn-floating-save {
  pointer-events: auto;
  width: 160px;
  height: 40px;
  background: #1c1c1e;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.wb-btn-floating-save:active {
  transform: scale(0.96);
  opacity: 0.85;
}

/* ========== 5. 编辑页 ========== */
.wb-edit-nav-bar {
  display: flex;
  align-items: center;
  height: 32px;
  flex-shrink: 0;
}
.wb-edit-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: #1c1c1e;
  cursor: pointer;
  padding: 0;
}
.wb-edit-back-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; fill: none; }

.wb-field-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e5e5ea !important;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
}

.wb-field-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wb-field-label {
  font-size: 13px;
  font-weight: 700;
  color: #1c1c1e;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wb-field-label::before {
  content: '';
  width: 3.5px;
  height: 12px;
  background: var(--wb-cur-theme) !important;
  border-radius: 2px;
}

.wb-mode-switch-capsule {
  display: flex;
  background: #f4f4f6;
  border: 1px solid var(--wb-border-line);
  border-radius: 8px;
  padding: 4px;
  gap: 2px;
}
.wb-mode-pill {
  padding: 4px 9px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  color: #8e8e93;
  cursor: pointer;
}
.wb-mode-pill.active {
  background: #ffffff;
  color: #1c1c1e;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.wb-clean-input {
  width: 100%;
  height: 38px;
  background: #f4f4f6;
  border: none !important;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
  color: #1c1c1e;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}
.wb-clean-input:focus { background: #ececf0; }

.wb-tag-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  margin-bottom: 4px;
}
.wb-kw-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: #ffffff;
  color: #1c1c1e;
  border: 1px solid var(--wb-cur-theme) !important;
  border-radius: 6px;
  padding: 4px 8px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wb-kw-tag:active { background: #e5e5ea; }
.wb-kw-tag-del {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #8e8e93;
  padding: 2px 4px;
  margin-right: -2px;
  cursor: pointer;
}
.wb-kw-tag-del:active { color: #c95353; }

.wb-scan-depth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px dashed var(--wb-border-line);
  margin-top: 2px;
}
.wb-scan-desc { font-size: 11.5px; color: #8e8e93; }
.wb-scan-input {
  width: 52px;
  height: 28px;
  background: #ffffff;
  border: 1px solid var(--wb-border-line);
  border-radius: 6px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #1c1c1e;
  outline: none;
}

.wb-depth-btn-group { display: flex; gap: 6px; }
.wb-depth-pos-btn {
  flex: 1;
  height: 34px;
  background: #ffffff;
  border: 1px solid var(--wb-cur-theme);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #636366;
  cursor: pointer;
  white-space: nowrap;
}
.wb-depth-pos-btn.active {
  background: #2c2c2e;
  border-color: #2c2c2e !important;
  color: #ffffff;
}

.wb-depth-num-inline {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: #fafafa;
  border: 1px dashed var(--wb-border-line);
  border-radius: 8px;
  margin-top: 2px;
}
.wb-depth-num-inline.show { display: flex; }

.wb-btn-expand-icon {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #8e8e93;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
}
.wb-btn-expand-icon svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }

.wb-textarea-wrap { position: relative; width: 100%; }

.wb-clean-textarea {
  width: 100%;
  height: 140px !important;
  min-height: 140px !important;
  background: #f8f8fa;
  border: 1px solid #e5e5ea;
  border-radius: 10px;
  padding: 10px 12px 24px;
  font-size: 13px;
  line-height: 1.5;
  color: #1c1c1e;
  outline: none;
  resize: none;
  font-family: inherit;
  box-sizing: border-box;
}
.wb-clean-textarea:focus { background: #ececf0; }
.wb-char-count {
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #8e8e93;
  pointer-events: none;
}

.wb-expanded-modal {
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 60;
  display: none;
  flex-direction: column;
  padding: 10px 14px;
  gap: 8px;
  box-sizing: border-box;
}
.wb-expanded-modal.show { display: flex; }
.wb-expanded-textarea {
  flex: 1;
  width: 100%;
  background: #f4f4f6;
  border: none !important;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #1c1c1e;
  outline: none;
  resize: none;
  font-family: inherit;
  box-sizing: border-box;
}

.wb-empty-tip {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #8e8e93;
  padding: 60px 0;
  user-select: none;
}
