/* app.css —— 窗口骨架：分带/分列的绝对几何（唯一真源：geometry-v1.json + golden 实测）
 *
 * 实测几何（/hf3fs-jd/data/tmp/catia5/capture/a-main-idle.png，1920x1080）：
 *   titlebar        y0..22    (23px)  bg #f0f3f9   geometry-v1.json bands.titlebar
 *   menubar         y23..41   (19px)  bg #cfcfe6   bands.menubar
 *   menubar border  y42..44   (3px)   42=#f0f0f0 / 43=#a0a0a0 / 44=#696969（bands.menubar_bottom_border_rows）
 *   content         y45..969  (925px) bands.content
 *     left toolbar  x0..37    (38px)  columns.left_toolbar
 *     viewport      x38..1881 (1844px) columns.viewport
 *     right toolbar x1882..1919 (38px) columns.right_toolbar
 *   bottom toolbar  y970..1007 (38px) bands.bottom_toolbar；row1007=分隔线 #515051
 *   statusbar       y1008..1031 (24px) bands.statusbar
 *   taskbar         y1032..1079 (48px) bands.taskbar（Windows 11，不掩膜）
 * 合计 23+19+3+925+38+24+48 = 1080。
 */
#screen {
  position: relative;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: #000;
}

.band {
  position: absolute;
  left: 0;
  overflow: hidden;
}

/* ===== 标题栏 ===== */
#titlebar {
  top: 0;
  width: 1920px;
  height: 23px;
  background: #f0f3f9;
  z-index: 10;
}

/* 标题文字：golden 墨迹 bbox x25..137 y7..17（实测），字色 #000 抗锯齿。
 * 字号 12px（PENDING MEASUREMENT：精确字号未逐字形验证；以墨迹高度 11px 拟合） */
.title-text {
  position: absolute;
  left: 24px;
  top: 4px;
  height: 14px;
  line-height: 14px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: #000;
  white-space: pre;
}

/* ===== 菜单栏 ===== */
#menubar {
  top: 23px;
  width: 1920px;
  height: 19px;
  background: #cfcfe6;
  z-index: 10;
}

#menubar-border {
  position: absolute;
  left: 0;
  top: 42px;
  width: 1920px;
  height: 3px;
  background: linear-gradient(180deg, #f0f0f0 0 1px, #a0a0a0 1px 2px, #696969 2px 3px);
  z-index: 10;
}

/* ===== 内容区 ===== */
#content {
  position: absolute;
  left: 0;
  top: 45px;
  width: 1920px;
  height: 925px;
  overflow: hidden;
  z-index: 1;
}

#asset-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  z-index: 20;
  pointer-events: none;
}

#menu-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  z-index: 100;
  pointer-events: none;
}

#menu-layer.is-open { pointer-events: auto; }
/* SVG 阈值滤镜容器不得参与布局（早期实测：inline svg 会撑出 16px 行盒，把整窗下移 16px） */
#filters {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}