/* asset/css/asset.css */

.bb-canvas-wrap{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r);min-height:500px;position:relative;overflow:hidden}
.bb-toolbar{display:flex;gap:6px;align-items:center;margin-bottom:8px;flex-wrap:wrap}
.bb-block{position:absolute;background:var(--bg1);border:2px solid var(--border2);border-radius:6px;padding:8px 12px;cursor:move;user-select:none;min-width:100px;text-align:center;font-size:11px;font-weight:600}
.bb-block.selected{border-color:var(--accent)}
.bb-block.status-ok{border-color:var(--green)}
.bb-block.status-fail{border-color:var(--red)}
.bb-block.status-partial{border-color:var(--yellow)}


.bb-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  height: 28px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  font-size: 11px;
  color: var(--txt2);
  white-space: nowrap;
  user-select: none;
  position: relative;
  top: 2px;
  transition: background 0.15s;
  flex-shrink: 0;
}

.bb-tab:hover { background: var(--bg1); color: var(--txt0); }
.bb-tab.active {
  background: var(--bg1);
  color: var(--txt0);
  font-weight: 600;
  border-color: var(--border);
  border-bottom: 2px solid var(--bg1);
  z-index: 1;
}

.bb-tab-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bb-tab-name[contenteditable="true"] {
  outline: none;
  border-bottom: 1px solid var(--accent);
  min-width: 40px;
  padding: 0 2px;
}

.bb-tab-close {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1;
  color: var(--txt3);
  cursor: pointer;
  flex-shrink: 0;
}

.bb-tab-close:hover { background: rgba(188,44,44,.15); color: var(--red); }
.bb-tab-add {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  font-size: 16px; line-height: 1;
  color: var(--txt3);
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  top: 2px;
  position: relative;
}

.bb-tab-add:hover { background: var(--bg1); color: var(--accent); }
.bb-tab-replicate {
  display: flex; align-items: center; gap: 3px;
  padding: 0 8px; height: 24px;
  font-size: 10px; font-weight: 600;
  color: var(--txt2);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  top: 2px;
  position: relative;
  white-space: nowrap;
}

.bb-tab-replicate:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

