/* 熊坑排布 - bearpitCalc */
#bpt-app * { box-sizing: border-box; }
#bpt-app {
  max-width: 860px; margin: 0 auto; padding: 8px 10px 20px;
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: #1f2d3d;
}
#bpt-app .bpt-topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
#bpt-app .bpt-title {
  flex: 1; min-width: 120px; border: 1px solid #dcdfe6; border-radius: 6px;
  padding: 6px 10px; font-size: 15px; font-weight: 600;
}
#bpt-app .bpt-title:focus { outline: none; border-color: #409eff; }
#bpt-app .bpt-btn {
  background: #fff; border: 1px solid #dcdfe6; border-radius: 6px; color: #303133;
  padding: 6px 12px; font-size: 13px; cursor: pointer; transition: .15s;
}
#bpt-app .bpt-btn:hover { border-color: #409eff; color: #409eff; }
#bpt-app .bpt-btn-primary { background: #409eff; border-color: #409eff; color: #fff; }
#bpt-app .bpt-btn-primary:hover { background: #66b1ff; border-color: #66b1ff; color: #fff; }
#bpt-app .bpt-btn-danger { color: #e64545; border-color: #f0a0a0; }
#bpt-app .bpt-btn.on { background: #e64545; color: #fff; border-color: #e64545; }

#bpt-app .bpt-toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
#bpt-app .bpt-statusbar {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  background: #f5f7fa; border: 1px solid #ebeef5; border-radius: 6px;
  padding: 6px 10px; font-size: 12px; color: #606266; margin-bottom: 6px; flex-wrap: wrap;
}
#bpt-app #bpt-status { font-weight: 600; color: #303133; }

#bpt-app .bpt-canvaswrap {
  position: relative; width: 100%; height: 420px; background: #eef2f7;
  border: 1px solid #d3dce6; border-radius: 8px; overflow: hidden; touch-action: none;
  cursor: crosshair; margin-bottom: 8px;
}
#bpt-app #bpt-canvas { display: block; width: 100%; height: 100%; }

#bpt-app .bpt-sizebar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: #606266; }
#bpt-app .bpt-sizebar input[type=range] { flex: 1; max-width: 240px; }
#bpt-app .bpt-gsv { min-width: 52px; font-weight: 600; }

#bpt-app .bpt-palette {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 10px;
}
#bpt-app .bpt-pal-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: #fff; border: 1px solid #ebeef5; border-radius: 8px; padding: 6px 4px;
  cursor: pointer; transition: .15s;
}
#bpt-app .bpt-pal-item:hover { border-color: #409eff; }
#bpt-app .bpt-pal-item.on { border-color: #409eff; background: #ecf5ff; box-shadow: 0 0 0 1px #409eff; }
#bpt-app .bpt-pal-img { width: 34px; height: 34px; object-fit: contain; }
#bpt-app .bpt-pal-name { font-size: 11px; color: #606266; white-space: nowrap; }

#bpt-app .bpt-rosterwrap {
  border: 1px solid #ebeef5; border-radius: 8px; padding: 12px; background: #fafbfc; margin-bottom: 10px;
}
#bpt-app .bpt-roster-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
#bpt-app .bpt-roster-close { cursor: pointer; font-size: 20px; color: #909399; line-height: 1; }
#bpt-app .bpt-roster-hint { font-size: 12px; color: #909399; margin-bottom: 8px; }
#bpt-app .bpt-roster-hint code { background: #ebeef5; padding: 1px 4px; border-radius: 3px; }
#bpt-app #bpt-roster {
  width: 100%; border: 1px solid #dcdfe6; border-radius: 6px; padding: 8px;
  font-size: 13px; font-family: inherit; resize: vertical; margin-bottom: 8px;
}
#bpt-app .bpt-roster-mode { display: flex; gap: 16px; font-size: 13px; margin-bottom: 8px; }
#bpt-app .bpt-roster-ring { font-size: 13px; color: #606266; margin-bottom: 6px; }
#bpt-app .bpt-ring-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
#bpt-app .bpt-ring-chip {
  background: #fff; border: 1px solid #dcdfe6; border-radius: 14px; padding: 4px 12px;
  font-size: 12px; cursor: pointer; color: #606266;
}
#bpt-app .bpt-ring-chip.on { background: #409eff; border-color: #409eff; color: #fff; }
#bpt-app .bpt-roster-go { width: 100%; }

/* 列表 */
#bpt-app .bpt-tabs { display: flex; gap: 0; border-bottom: 1px solid #ebeef5; margin-bottom: 10px; }
#bpt-app .bpt-tab { padding: 8px 16px; font-size: 14px; cursor: pointer; color: #909399; border-bottom: 2px solid transparent; }
#bpt-app .bpt-tab.on { color: #409eff; border-bottom-color: #409eff; font-weight: 600; }
#bpt-app .bpt-hint {
  font-size: 12px; color: #909399; padding: 6px 2px; margin-bottom: 10px;
  background: #f7f9fc; border-radius: 6px; padding: 8px 10px;
}
#bpt-app .bpt-empty { text-align: center; color: #c0c4cc; padding: 40px 0; font-size: 14px; }
#bpt-app .bpt-card {
  border: 1px solid #ebeef5; border-radius: 10px; background: #fff;
  padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
#bpt-app .bpt-card-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
#bpt-app .bpt-card-meta { font-size: 12px; color: #909399; margin-bottom: 8px; }
#bpt-app .bpt-card-ops { display: flex; gap: 8px; }
#bpt-app .bpt-op {
  border: 1px solid #dcdfe6; background: #fff; border-radius: 6px; padding: 4px 12px;
  font-size: 12px; cursor: pointer; color: #409eff;
}
#bpt-app .bpt-op:hover { border-color: #409eff; }
#bpt-app .bpt-op-danger { color: #e64545; }
#bpt-app .bpt-viewnote {
  font-size: 13px; color: #606266; background: #fff7e6; border: 1px solid #ffe4a8;
  border-radius: 6px; padding: 8px 10px; margin-bottom: 8px;
}

@media (max-width: 520px) {
  #bpt-app .bpt-palette { grid-template-columns: repeat(4, 1fr); }
  #bpt-app .bpt-canvaswrap { height: 360px; }
}
