.vcamp-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  border: none;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: var(--sp-2);
  position: relative;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.vcamp-btn .vcamp-ico { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; pointer-events: none; }
.vcamp-btn .vcamp-ico v-campfire { --s: 22px !important; }
.vcamp-btn-badge,
.vcamp-pill {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 8px;
  background: var(--danger, #ef4444);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}
.vcamp-pill { top: -2px; right: -4px; }
.vcamp-crumb { font-weight: var(--fw-semibold); }
.vm-chatpill:has(.vcamp-crumb) > div:first-child { flex-shrink: 0; }
.vm-chatpill:has(.vcamp-crumb) > div:last-child { min-width: 0; }
.vcamp-crumb-sep { opacity: .5; margin: 0 4px; font-weight: 400; }
.vcamp-crumb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: var(--c, #ff7a1a); }
.vtip.vcamp-tip { transform: translate(-50%, 0); max-width: 260px; }

v-campfire {
  position: relative;
  display: inline-block;
  width: var(--s);
  height: var(--s);
  flex-shrink: 0;
  pointer-events: none;
}
v-campfire .vcf-f,
v-campfire .vcf-l,
v-campfire .vcf-k,
v-campfire .vcf-s {
  position: absolute;
  inset: 0;
  display: block;
  transform-origin: 50% 86%;
}
v-campfire svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
v-campfire .vcf-s i {
  position: absolute;
  left: 50%;
  top: 30%;
  width: var(--sp, 2px);
  height: var(--sp, 2px);
  margin: calc(var(--sp, 2px) / -2) 0 0 calc(var(--sp, 2px) / -2);
  border-radius: 50%;
  opacity: 0;
}

.vcamp-bloom {
  position: fixed;
  inset: 0;
  z-index: 9600;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.vcamp-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .34);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}
[data-theme="light"] .vcamp-bg { background: rgba(0, 0, 0, .14); }
.vcamp-bloom.vcamp-out { pointer-events: none; }
.vcamp-top { display: none; }
.vcamp-stage { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.vcamp-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.vcamp-fire,
.vcamp-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
}
.vcamp-fire { position: relative; }
.vcamp-plus { color: var(--text-secondary); }
.vcamp-plus svg { width: 52%; height: 52%; }
.vcamp-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .01em;
}
.vcamp-nt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcamp-bloom { outline: none; }
.vcamp-node:focus-visible .vcamp-nt { text-decoration: underline; text-underline-offset: 3px; }
.vcamp-mark { display: inline-flex; flex-shrink: 0; width: 12px; height: 12px; color: var(--text-secondary); }
.vcamp-mark svg { width: 12px; height: 12px; }
.vcamp-node--add .vcamp-name { font-weight: 500; color: var(--text-secondary); }
.vcamp-node--cur { width: 260px; z-index: 2; cursor: default; gap: 10px; }
.vcamp-node--cur .vcamp-name { font-size: 18px; font-weight: 700; letter-spacing: 0; }
.vcamp-node--cur .vcamp-mark { width: 14px; height: 14px; }
.vcamp-node--cur .vcamp-mark svg { width: 14px; height: 14px; }
.vcamp-desc {
  max-width: 240px;
  margin-top: -6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vcamp-menu { position: fixed; z-index: 9700; }
.vcamp-menu .menu__item { justify-content: flex-start; }
.vcamp-menu .menu__item svg { width: 16px; height: 16px; flex-shrink: 0; }

.vcamp-phone .vcamp-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 8px 10px 20px;
  color: var(--text);
}
.vcamp-top-t { display: flex; flex-direction: column; min-width: 0; }
.vcamp-top-h { font-size: 20px; font-weight: 700; }
.vcamp-top-g { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcamp-x {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.vcamp-phone .vcamp-bg { background: rgba(0, 0, 0, .46); }
[data-theme="light"] .vcamp-phone .vcamp-bg { background: rgba(255, 255, 255, .42); }
.vcamp-phone .vcamp-node { width: 108px; gap: 6px; }
.vcamp-phone .vcamp-node--cur { width: 220px; gap: 8px; }
.vcamp-phone .vcamp-name { font-size: 12px; }
.vcamp-phone .vcamp-node--cur .vcamp-name { font-size: 17px; }
.vcamp-phone .vcamp-desc { max-width: 210px; font-size: 12.5px; }

.vcamp-sw {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: transform .15s ease;
}
.vcamp-sw:hover { transform: scale(1.1); }
.vcamp-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.vcamp-sw-custom {
  background: conic-gradient(#ff4d4d, #ffc83d, #46c25a, #20c1e0, #7c6bff, #ff5fa2, #ff4d4d);
  overflow: hidden;
}
.vcamp-sw-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: none; padding: 0; }
.vcamp-mx { display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, 40px); align-items: center; row-gap: 2px; }
.vcamp-mx-h { font-size: 11px; text-align: center; color: var(--text-secondary); padding-bottom: 4px; }
.vcamp-mx-r { font-size: var(--fs-sm); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }
.vcamp-mx-c { height: 32px; display: flex; align-items: center; justify-content: center; border: none; background: transparent; cursor: pointer; border-radius: 8px; padding: 0; }
.vcamp-mx-c:hover:not(:disabled) { background: var(--surface-2); }
.vcamp-mx-c:disabled { cursor: default; opacity: .35; }
.vcamp-mx-c > span { width: 16px; height: 16px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700; }

html.lowfx .vcamp-bg { background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.lowfx[data-theme="light"] .vcamp-bg { background: rgba(246, 246, 246, .94); }

.vcamp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.vcamp-mx-r--lock { opacity: .8; }
.vcamp-mx-c--lock:disabled { opacity: .3; }
.vcamp-mo { row-gap: 0; }
.vcamp-mo-sep { grid-column: 1 / -1; height: 1px; background: var(--border); margin: 2px 0; }
.vcamp-mo-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; padding: 4px 6px 4px 0; }
.vcamp-chip { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; height: 24px; padding: 0 2px; border-radius: 12px; background: color-mix(in srgb, var(--text) 9%, transparent); font-size: 12px; }
.vcamp-chip .avatar { width: 20px; height: 20px; font-size: 10px; }
.vcamp-chip-n { min-width: 0; max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcamp-chip-x, .vcamp-mo-btn { border: none; background: transparent; color: var(--text-secondary); cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.vcamp-chip-x { width: 20px; height: 20px; font-size: 10px; }
.vcamp-mo-btn { width: 24px; height: 24px; }
.vcamp-mo-btn svg { width: 14px; height: 14px; }
.vcamp-chip-x:hover, .vcamp-mo-btn:hover { background: var(--surface-3); color: var(--text); }
.vcamp-mo-btn--del:hover { color: var(--danger); }
.vcamp-pk-list { display: flex; flex-direction: column; gap: 2px; max-height: min(52vh, 420px); overflow-y: auto; margin: var(--sp-2) 0 var(--sp-4); }
.vpage .vcamp-pk-list { max-height: none; flex: 1; min-height: 0; }
.vcamp-pk-it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: none; background: transparent; border-radius: 10px; cursor: pointer; text-align: left; color: var(--text); font: inherit; }
.vcamp-pk-it:hover:not(:disabled) { background: var(--surface-2); }
.vcamp-pk-it:disabled { cursor: default; opacity: .5; }
.vcamp-pk-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.vcamp-pk-n { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcamp-pk-s { font-size: 12px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcamp-pk-ck { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--text-secondary); }
.vcamp-pk-it[aria-pressed="true"] .vcamp-pk-ck { background: var(--accent); box-shadow: none; color: var(--accent-fg); }
.vcamp-pk-empty { padding: 16px 8px; font-size: var(--fs-sm); text-align: center; }
