/* ══════════════════════════════
   通用 UI 组件样式（ui.js）
   底部弹出选择器 VAUI.sheet
   ══════════════════════════════ */
.va-sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.va-sheet-mask.open { opacity: 1; visibility: visible; }

.va-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 401;
  background: var(--bg-surface);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}
.va-sheet.open { transform: translateY(0); }

.va-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.va-sheet-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.va-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.va-sheet-close:hover { background: var(--bg-card); color: var(--text-primary); }

.va-sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
  max-height: 56vh;
}
.va-sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}
.va-sheet-item:last-child { margin-bottom: 0; }
.va-sheet-item:hover { color: var(--text-primary); }
.va-sheet-item.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}
.va-sheet-item-name { flex: 1; min-width: 0; }
.va-sheet-empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--text-muted);
  font-size: 14px;
}
body.va-sheet-open { overflow: hidden; }