/* tree.css —— spec tree 透明覆盖在 3D 视口左上（a-main-idle.png 实测）
 * Product1 选中行：蓝色选区 #0066ff（实测 (0,102,255)）box 页面 x62..109, y47..63，
 *   上/左 2px 亮边 #f0f0f0，右/下 1px 暗边 #808080，白字 12px（行内墨迹 y约50..59）
 * Applications 行：白字 12px，页面文字墨迹 x57..122, y77..87
 * 树连接线：白色 2px 竖线 页面 x44..45 y66..85；白色 2px 横线 页面 y83..84 x44..55
 * （坐标均已折算为相对 #viewport 左上 (38,45) 的局部坐标）
 * PENDING MEASUREMENT：树图标（Product1 白色文档图标 + 齿轮小图标）逐像素 rect 归 asset-builder。
 */
#tree-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 400px;
  height: 160px;
  z-index: 3;
  pointer-events: none;
}

.tree-root {
  position: absolute;
  left: 0;
  top: 0;
  width: 400px;
  height: 160px;
}

.tree-row {
  position: absolute;
  left: 0;
}

.tree-row-product {
  top: 2px;
  height: 17px;
}

.tree-row-apps {
  top: 30px;
  height: 12px;
}

.tree-label-selected {
  position: absolute;
  left: 24px;
  top: 0;
  width: 49px;
  height: 17px;
  box-sizing: border-box;
  background: #0066ff;
  border-top: 2px solid #f0f0f0;
  border-left: 2px solid #f0f0f0;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  padding: 0;
  white-space: pre;
}

/* 蓝色选区内的白色文字：单独一层（透明背景）才能被 #gdi-text 阈值化成 1-bit。
 * 实测 golden 蓝底内只有 #0066ff 与 #ffffff 两种颜色，无中间灰度 ⇒ 1-bit 文本。 */
.tree-text {
  position: absolute;
  left: -1px;
  top: 1px;
  font-family: var(--font-win);
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
  color: #ffffff;
  white-space: pre;
}

.tree-label-plain {
  position: absolute;
  left: 17px;
  top: 1px;
  font-family: var(--font-win);
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
  color: #ffffff;
  white-space: pre;
}

/* 树连接线（白色 2px） */
.tree-line-v {
  position: absolute;
  left: 6px;
  top: 19px;
  width: 2px;
  height: 20px;
  background: #ffffff;
}

.tree-line-h {
  position: absolute;
  left: 6px;
  top: 36px;
  width: 12px;
  height: 2px;
  background: #ffffff;
}

/* 树图标占位（资产到位后由 asset-layer 的 tree/ PNG 覆盖） */
.tree-icon-ph {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 1px;
}