/* ============================================================
   MATLAB R2025b 网页复刻 —— 外壳像素几何（全部来自真机量测）
   参考：docs/reference/surfaces/main-home-1920x1080.png（1920x1080, 100%）
   分区：标题栏 0..22 / 功能区选项卡 23..50 / 功能区 51..145 / 当前文件夹栏 146..171
         主区 172..996 / 状态栏 997..1031 / 窗口底边 1032 / OS 任务栏 1032..1079
   左侧停靠区 x 0..479（竖栏 0..34，面板 35..479），分隔线 x=480，命令窗口 481..1919
   ============================================================ */

:root {
  --mat-blue: #004073;          /* 功能区选项卡条 / 命令窗口标签条 */
  --ribbon-bg: #f5f5f5;         /* 功能区主体、列表底 */
  --panel-hdr: #e6e6e6;         /* 列标题行、状态栏 */
  --title-bg: #f1f3f9;         /* Windows 11 标题栏底色 */
  --border: #bfbfbf;            /* 1px 分隔线 */
  --text: #212121;             /* 正文 */
  --text-strong: #1a1a1a;
  --text-dim: #5f5f5f;          /* 功能组标题 */
  --font-ui: "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --font-latin: "Segoe UI", "Microsoft YaHei UI", sans-serif;
  --font-mono: "Consolas", "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: #d4e4f0;
  font-family: var(--font-ui);
  line-height: 1;
  -webkit-font-smoothing: auto;
  text-rendering: geometricPrecision;
  user-select: none;
  cursor: default;
}
button { font-family: inherit; cursor: default; border: 0; background: transparent; color: inherit; padding: 0; }
img { display: block; }
.asset { position: absolute; pointer-events: none; }

#app { position: relative; width: 1920px; height: 1032px; overflow: hidden; background: var(--ribbon-bg); }

/* 通用文字：绝对定位、行高=1；top 由「参考图墨迹上沿 + 字体偏移」定出 */
.t { position: absolute; white-space: nowrap; line-height: 1; color: var(--text); }
.tc { transform: translateX(-50%); }        /* 以 left 为文字中心 */
.t11 { font-size: 11px; }
.t12 { font-size: 12px; }
.t13 { font-size: 13px; }
.dim { color: var(--text-dim); }
.white { color: #ffffff; }

/* ================= 标题栏 (23px) ================= */
#titlebar { position: absolute; left: 0; top: 0; width: 1920px; height: 23px; background: var(--title-bg); }
#title-text { left: 23px; top: 7px; color: #000000; font-family: var(--font-ui); }
.wc-btn { position: absolute; top: 0; height: 23px; width: 46px; }
.wc-btn:hover { background: #e3e6ec; }
#wc-close:hover { background: #e81123; }
#wc-close:hover .asset, .wc-btn:hover .asset { opacity: 1; }
#wc-min { left: 1781px; }
#wc-max { left: 1827px; }
#wc-close { left: 1873px; }
#wc-min { left: 1781px; }
#wc-max { left: 1827px; }
#wc-close { left: 1873px; }

/* ================= 功能区选项卡条 (28px) ================= */
#tabbar { position: absolute; left: 0; top: 23px; width: 1920px; height: 28px; background: var(--mat-blue); }
.ribbon-tab {
  position: absolute; top: 3px; height: 25px;
  font-size: 11px; line-height: 25px; text-align: center;
  color: #ffffff; white-space: nowrap;
}
.ribbon-tab.active { background: var(--ribbon-bg); color: #1f1f1f; }
.ribbon-tab:not(.active):hover { background: #0a4d7a; }
#tab-home { left: 3px; width: 100px; }
#tab-plots { left: 107px; width: 103px; }
#tab-apps { left: 213px; width: 103px; }

#search-box {
  position: absolute; left: 1362px; top: 3px; width: 350px; height: 22px;
  background: #ffffff; border: 1px solid #7d7d7d; border-radius: 3px;
}
#search-placeholder { position: absolute; left: 6px; top: 4px; color: #616161; font-size: 12px; font-family: var(--font-latin); }
#login-btn { position: absolute; left: 1889px; top: 7px; font-size: 12px; color: #ffffff; line-height: 1; }
#tabbar-divider { position: absolute; left: 1830px; top: 3px; width: 2px; height: 22px; background: #a6a6a6; }

/* ================= 功能区主体 (95px) ================= */
#ribbon { position: absolute; left: 0; top: 51px; width: 1920px; height: 95px; background: var(--ribbon-bg); }
.ribbon-panel { position: absolute; inset: 0; }
.ribbon-panel[hidden] { display: none; }
.rsep { position: absolute; top: 8px; width: 1px; height: 84px; background: var(--border); }
.group-label { color: var(--text-dim); font-size: 11px; }
/* 功能区文字按真机墨迹厚度使用官方 Light 字重（msyhl.ttc），A/B 验证优于 Regular */
#ribbon .t, #ribbon .group-label, .col-label {
  font-family: "Microsoft YaHei UI Light", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
.btn-label { color: var(--text); }
.btn-label.latin { font-family: var(--font-latin); }

/* 大按钮标签：两行 / 单行 */
.btn-caret { top: 113px; }        /* caret-big 图 */
#ribbon-collapse { position: absolute; left: 1901px; top: 128px; width: 15px; height: 15px; opacity: .85; }

/* ================= 当前文件夹工具栏 (146..171) ================= */
#ft-top-border { position: absolute; left: 0; top: 146px; width: 1920px; height: 1px;
  background: linear-gradient(to right, #f5f5f5 0 103px, #bfbfbf 103px 1915px, #f5f5f5 1915px 100%); }
#ft-body { position: absolute; left: 0; top: 147px; width: 1920px; height: 21px; background: #ffffff; }
#ft-nav-bg { position: absolute; left: 0; top: 0; width: 103px; height: 21px; background: var(--ribbon-bg); }
#ft-bar-left-edge { position: absolute; left: 103px; top: 0; width: 1px; height: 21px; background: var(--border); }
#ft-bar-right-edge1 { position: absolute; left: 1911px; top: 0; width: 1px; height: 21px; background: var(--border); }
#ft-bar-right-edge2 { position: absolute; left: 1912px; top: 0; width: 1px; height: 21px; background: #dadada; }
#ft-path-end { position: absolute; left: 1913px; top: 0; width: 7px; height: 21px; background: var(--ribbon-bg); }
#ft-shadow1 { position: absolute; left: 0; top: 168px; width: 1920px; height: 1px;
  background: linear-gradient(to right, #f5f5f5 0 103px, #bfbfbf 103px 1915px, #f5f5f5 1915px 100%); }
#ft-shadow2 { position: absolute; left: 0; top: 169px; width: 1920px; height: 1px;
  background: linear-gradient(to right, #f5f5f5 0 103px, #dadada 103px 1915px, #f5f5f5 1915px 100%); }
#ft-shadow3 { position: absolute; left: 0; top: 170px; width: 1920px; height: 1px; background: var(--ribbon-bg); }
#ft-shadow4 { position: absolute; left: 0; top: 171px; width: 1920px; height: 1px; background: #7d7d7d; }
.ft-btn { position: absolute; height: 21px; top: 147px; }
.ft-btn:hover { background: #e8e8e8; }
.path-text { position: absolute; top: 154px; color: #1b1b1b; font-size: 12px; font-family: var(--font-ui); }
.path-sep { position: absolute; top: 155px; color: #545454; font-size: 11px; font-family: var(--font-ui); }

/* ================= 主区 (172..996) ================= */
#main { position: absolute; left: 0; top: 172px; width: 1920px; height: 825px; }
#leftdock { position: absolute; left: 0; top: 0; width: 480px; height: 825px; }
#dock-divider { position: absolute; left: 480px; top: 0; width: 1px; height: 825px; background: var(--border); }

/* 左侧竖栏 (0..34) */
#rail { position: absolute; left: 0; top: 0; width: 34px; height: 825px; background: var(--panel-hdr);
  border-right: 1px solid #bfbfbf; box-sizing: content-box; }
#rail-box {
  position: absolute; left: 2px; top: 6px; width: 30px; height: 54px;
  background: #ffffff; border: 1px solid #616161; border-radius: 5px;
}
#rail-divider { display: none; }
.rail-icon { position: absolute; }

/* 面板容器 (35..479) */
#panels { position: absolute; left: 35px; top: 0; width: 445px; height: 825px; }
.panel { position: absolute; left: 0; width: 445px; background: var(--ribbon-bg); }
#files-panel { top: 0; height: 412px; border-bottom: 1px solid var(--border); box-sizing: content-box; }
#ws-panel { top: 413px; height: 412px; }
.panel-title {
  position: absolute; left: 0; top: 0; width: 445px; height: 22px; background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-sizing: content-box;
}
.panel-title .title-text { position: absolute; left: 25px; top: 7px; font-size: 12px; color: var(--text); }
.panel-title .title-caret { position: absolute; left: 8px; top: 9px; }
.panel-title .title-dots { position: absolute; left: 424px; top: 4px; }
.panel-title .title-dots:hover { background: #e5e5e5; }
.colheader {
  position: absolute; left: 0; top: 23px; width: 445px; height: 26px; background: var(--panel-hdr);
  border-bottom: 1px solid var(--border);
  box-sizing: content-box;
}
#ws-panel .colheader { height: 27px; }
.col-sep { position: absolute; top: 0; width: 1px; height: 26px; background: var(--border); }
.col-label { position: absolute; font-size: 11px; color: var(--text); }
#files-panel .col-label { top: 7px; left: 3px; }
#ws-panel .col-label { top: 8px; }
#files-panel .body { position: absolute; left: 0; top: 50px; width: 445px; height: 362px; background: var(--ribbon-bg); overflow: hidden; }
#ws-panel .body { position: absolute; left: 0; top: 51px; width: 445px; height: 361px; background: var(--ribbon-bg); overflow: hidden; }
#files-panel .panel-title { top: 0; }
#ws-panel .panel-title { top: 0; }

/* 文件列表行（20px 行距，图标 + 文本） */
.file-row { position: absolute; left: 0; height: 20px; width: 428px; }
.file-row:hover { background: #e8e8e8; }
.file-row.selected { background: #cce8ff; }
.file-row .row-tri { position: absolute; left: 6px; top: 5px; }
.file-row .row-icon { position: absolute; }
.file-row .row-name { position: absolute; left: 38px; top: 5px; font-size: 12px; color: #5f5f5f; font-family: var(--font-latin); white-space: nowrap; line-height: 1; }

/* 竖向滚动条（CSS 复刻，不用参考图切片） */
#vscroll { position: absolute; left: 428px; top: 50px; width: 17px; height: 362px; background: #f1f1f1; }
#vscroll .vs-thumb { position: absolute; left: 2px; top: 17px; width: 13px; height: 270px; background: #c1c1c1; }

/* ================= 命令窗口 (481..1919) ================= */
#cmdwin { position: absolute; left: 481px; top: 0; width: 1438px; height: 825px; }
#cmd-tabbar { position: absolute; left: 0; top: 0; width: 1438px; height: 22px; background: var(--mat-blue); border-bottom: 1px solid #bfbfbf; box-sizing: content-box; }
#cmd-tab-label { position: absolute; left: 7px; top: 7px; font-size: 12px; color: #ffffff; }
#cmd-tab-dots { position: absolute; left: 1417px; top: 4px; }
#cmd-banner { position: absolute; left: 0; top: 23px; width: 1438px; height: 28px; background: #fff5bc; border-bottom: 1px solid #7d7d7d; box-sizing: content-box; }
#cmd-banner-text { position: absolute; left: 9px; top: 9px; font-size: 13px; color: var(--text); font-family: var(--font-latin); }
#cmd-banner-text a { color: #0a58a5; text-decoration: underline; }
#banner-close { position: absolute; left: 1414px; top: 5px; width: 16px; height: 16px; background: transparent; }
#banner-close:hover { background: #f0e0a0; }
#cmd-body { position: absolute; left: 0; top: 52px; width: 1438px; height: 773px; background: #ffffff; overflow: hidden; }
#cmd-scroll { position: absolute; left: 0; top: 0; width: 1438px; height: 773px; overflow: hidden; }
.cmd-line { position: absolute; left: 0; white-space: pre; font-family: var(--font-mono); font-size: 13px; color: #1a1a1a; line-height: 17px; }
.cmd-prompt-line { display: flex; align-items: flex-start; }
#cmd-inputline { position: absolute; left: 0; top: 6px; width: 1438px; height: 17px; }
#cmd-prompt { position: absolute; left: 4px; top: 0; font-family: var(--font-mono); font-size: 13px; color: #1a1a1a; line-height: 17px; }
#cmd-input {
  position: absolute; left: 22px; top: 0; width: 1389px; height: 17px;
  border: 0; outline: 0; padding: 0; margin: 0; background: transparent;
  font-family: var(--font-mono); font-size: 13px; color: #1a1a1a; line-height: 17px;
  caret-color: #1a1a1a;
}
#cmd-input::selection { background: #b5d5ff; }

/* ================= 状态栏 (997..1031) ================= */
#statusbar { position: absolute; left: 0; top: 997px; width: 1920px; height: 35px; background: var(--panel-hdr); border-top: 1px solid var(--border); }
#status-ready { position: absolute; left: 53px; top: 11px; font-size: 11px; color: var(--text); }
#status-sep1 { position: absolute; left: 482px; top: 6px; width: 1px; height: 22px; background: var(--border); }
#status-sep2 { position: absolute; left: 523px; top: 6px; width: 1px; height: 22px; background: var(--border); }
#status-linecol { position: absolute; right: 12px; top: 11px; font-size: 11px; color: #5a5a5a; }
body.frame-ref #status-linecol { display: none; }
.status-hit { position: absolute; background: transparent; border-radius: 3px; }
.status-hit:hover { background: #dcdcdc; }

/* 功能区按钮热区 */
.ribbon-hit { position: absolute; background: transparent; border-radius: 2px; }
.ribbon-hit:hover { background: #e9e9e9; }
.inline-caret { position: absolute; width: 0; height: 0;
  border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid #5a5a5a; }

/* ============================================================
   绘图 / APP 选项卡内容（真机 main-plots / main-apps 量测）
   绘图库外框 x=210..1320、APP 库外框 x=222..1332，y=57..124：
   白底 + 1px #bfbfbf 边框 + 3px 圆角；右侧 19px 滚动条槽（#f5f5f5 + 1px 内分隔线）。
   ============================================================ */
.gallery-frame {
  position: absolute; background: #ffffff;
  border: 1px solid var(--border); border-radius: 3px; box-sizing: border-box;
}
.gallery-gutter {
  position: absolute; top: 0; bottom: 0; right: 0; width: 19px;
  border-left: 1px solid var(--border); background: var(--ribbon-bg); box-sizing: border-box;
}
/* 库底滚动箭头：绘图库 8x4、APP 库 6x3 下三角（#616161） */
.gallery-arrow {
  position: absolute; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid #616161;
}
.gallery-arrow.app-arrow { border-left-width: 3px; border-right-width: 3px; border-top-width: 3px; }

/* 绘图库缩略图：49x39 白底、1px #c8c8c8 边框；内容 = 单个裁剪登记的官方位图（47x37） */
.plot-tile {
  position: absolute; background: #ffffff; border: 1px solid #c8c8c8;
  box-sizing: border-box; overflow: hidden;
}
.plot-tile .plot-tile-img {
  position: absolute; left: 0; top: 0; width: 47px; height: 37px;
}
/* piechart / surf / mesh 在真机没有白底边框盒，图标直接放在库里 */
.plot-tile-free { position: absolute; }
/* APP 图标 = 单个裁剪登记的官方位图（23x23 <img>，见 docs/reference/matlab-ref-assets.json） */
.app-tile-icon, .app-big-icon { display: block; position: absolute; width: 23px; height: 23px; }

/* 绘图/APP 选项卡西文标签用 Segoe UI（覆盖 #ribbon .t 的 Light 字体族；中文仍走 Light） */
#ribbon-plots .gallery-label.latin { font-family: var(--font-latin); }

/* 库项标签：绘图库无变量时禁用态浅灰 #b2b2b2；APP 库可用态 #212121 */
.gallery-label { position: absolute; font-size: 12px; color: #b2b2b2; white-space: nowrap; }
.gallery-label.on { color: var(--text); }

/* 库项热区（真实 DOM 按钮；点击走功能区命令通道） */
.gallery-hit { position: absolute; background: transparent; border-radius: 2px; }
.gallery-hit:hover { background: rgba(0, 0, 0, 0.03); }

/* 库底工具提示：真机参考图为「未选择变量」禁用态 + 悬停提示「选择要绘制的变量」。
 * 复刻页的绘图库同样处于禁用态（本页没有变量选择态），因此提示层**常显**（参考态即应用态）；
 * 这样也保证缩略图位图里被参考提示覆盖的区域始终被同位置 DOM 提示层盖住，不会露出烘焙像素。 */
.gallery-tip {
  position: absolute; display: block; background: #e6e6e6; border-radius: 11px; pointer-events: none;
}
.gallery-tip .tip-text {
  position: absolute; left: 66px; top: 4px; transform: translateX(-50%);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 14px; font-weight: 400; color: var(--text); white-space: nowrap;
}


/* 图窗单选（重用图窗 / 新建图窗）：14x14 圆环 #646464，选中点 6x6 #212121 */
.g-radio {
  position: absolute; width: 14px; height: 14px; padding: 0; box-sizing: border-box;
  border: 1px solid #646464; border-radius: 50%; background: #ffffff;
}
.g-radio .g-radio-dot {
  position: absolute; left: 3px; top: 3px; width: 6px; height: 6px;
  border-radius: 50%; background: #212121; opacity: 0;
}
.g-radio.checked .g-radio-dot { opacity: 1; }

/* APP 左三按钮标签（可用态 #212121） */
.app-big-label { color: var(--text); }

/* 工作区变量行 */
.ws-row { position: absolute; left: 0; height: 20px; width: 445px; }
.ws-row:hover { background: #e8e8e8; }
.ws-cell { position: absolute; top: 6px; font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; }

/* ================= OS 区（任务栏，复刻页不伪造，如实计入 diff） ================= */
#os-strip { position: absolute; left: 0; top: 1032px; width: 1920px; height: 48px; background: #d0dfef;
  border-top: 1px solid #acb5bd; box-sizing: content-box; }

/* 悬停提示 */
button:focus { outline: none; }
/* ============================================================
   绘图域 · 图窗窗口（4-14 图窗独立窗口与 ribbon；4-17 导出）
   真机 R2025b（G9 GUI 帧 g9c-fig1.png 逐像素量测，2026-11-19）：
   「Figures」容器窗口 1075×822 = 画布 1074×647 + 标题栏 30 + ribbon 选项卡 28
   + ribbon 内容 93 + 文档选项卡 23 + 底部边框 1；画布页面坐标 = Position 映射
   （left=423、canvasTop=1080-230-647=203）。
   ============================================================ */
#figure-layer {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  pointer-events: none; z-index: 40;
}
.fig-window {
  position: absolute; pointer-events: auto; display: flex; flex-direction: column;
  box-sizing: border-box; background: #f0f0f0; border: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
  font-family: var(--font-ui); overflow: hidden;
}
/* 标题栏 30px */
.fig-titlebar {
  flex: 0 0 30px; height: 30px; display: flex; align-items: center;
  background: #f7f7f7; border-bottom: 1px solid #d0d0d0;
}
.fig-title-icon {
  width: 14px; height: 14px; margin-left: 9px; border-radius: 2px;
  background: linear-gradient(135deg, #e2571f 0%, #f4b400 100%);
}
.fig-title { margin-left: 6px; font-size: 12px; line-height: 1; color: #1f1f1f; display: flex; align-items: center; }
.fig-window-controls { margin-left: auto; display: flex; height: 30px; }
.fig-winbtn {
  width: 40px; height: 30px; border: 0; background: transparent;
  font-size: 11px; line-height: 30px; color: #333333; cursor: pointer;
}
.fig-winbtn:hover { background: #e5e5e5; }
.fig-winbtn-close:hover { background: #e81123; color: #ffffff; }
/* ribbon 选项卡 28 + 内容 93 */
.fig-ribbon { flex: 0 0 121px; height: 121px; display: flex; flex-direction: column; background: #f3f3f3; }
.fig-ribbon-tabs {
  flex: 0 0 28px; height: 28px; display: flex; align-items: flex-end;
  padding: 0 4px; background: #dcdcdc; border-bottom: 1px solid #c8c8c8;
}
.fig-ribbon-tab {
  height: 25px; padding: 0 15px; margin-right: 1px; border: 1px solid transparent;
  border-bottom: 0; background: transparent; font-size: 12px; color: #2b2b2b;
  cursor: pointer; border-radius: 3px 3px 0 0;
}
.fig-ribbon-tab.active { background: #f3f3f3; border-color: #c8c8c8; color: #0a58a5; font-weight: 600; }
.fig-ribbon-body {
  flex: 0 0 93px; height: 93px; display: flex; gap: 4px;
  padding: 2px 6px 0; background: #f3f3f3; overflow: hidden;
}
.fig-ribbon-page { display: flex; gap: 4px; align-items: stretch; width: 100%; }
.fig-ribbon-page[hidden] { display: none; }
.fig-ribbon-group {
  position: relative; display: flex; align-items: flex-start; gap: 3px;
  padding: 1px 9px 13px; border-right: 1px solid #dcdcdc;
}
.fig-ribbon-group:last-child { border-right: 0; }
.fig-ribbon-caption {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  font-size: 10px; line-height: 12px; color: #5f5f5f;
}
.fig-rb-quick, .fig-rb-label-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-width: 34px; height: 60px; padding: 2px 3px; border: 1px solid transparent;
  background: transparent; border-radius: 2px; font-size: 10px; color: #1f1f1f; cursor: pointer;
}
.fig-rb-quick:hover, .fig-rb-label-btn:hover { background: #e3f0fb; border-color: #b6d6f2; }
.fig-rb-icon {
  display: block; width: 28px; height: 28px; line-height: 28px; margin: 0 auto 2px;
  border: 1px solid #b9b9b9; border-radius: 2px; background: #fbfbfb;
  font-size: 13px; color: #404040; text-align: center;
}
.fig-rb-label { white-space: nowrap; }
.fig-rb-field { display: flex; align-items: center; gap: 3px; height: 60px; font-size: 11px; color: #333333; }
.fig-rb-field input { width: 52px; font-size: 11px; }
/* 兼容条（老真 Chrome 门直接点这些 data-test 按钮） */
.fig-toolbar { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 2px; height: 60px; padding: 0 2px; }
.fig-tool {
  height: 20px; padding: 0 5px; border: 0; background: transparent; border-radius: 2px;
  font-size: 10px; line-height: 20px; color: #212121; cursor: pointer;
}
.fig-tool:hover { background: #e3f0fb; }
.fig-sep { width: 1px; height: 16px; background: #c8c8c8; margin: 0 2px; }
.fig-tool.fig-export { color: #0a58a5; }
/* 文档选项卡 23px */
.fig-doc-tabs {
  flex: 0 0 23px; height: 23px; display: flex; align-items: flex-end;
  padding-left: 4px; background: #ececec; border-bottom: 1px solid #c8c8c8;
}
.fig-doc-tab {
  display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 9px;
  background: #ffffff; border: 1px solid #c8c8c8; border-bottom: 0;
  border-radius: 2px 2px 0 0; font-size: 11px; color: #1f1f1f;
}
.fig-doc-close { font-size: 10px; color: #666666; cursor: pointer; }
.fig-doc-close:hover { color: #e81123; }
/* 画布 1074×647（figure Position 尺寸） */
.fig-canvas-wrap { flex: 0 0 auto; overflow: hidden; background: #ffffff; }
.fig-canvas { display: block; }
/* 底部边框 1px（真机图窗无状态栏；保留 data-test 供 UI 门读文本） */
.fig-status {
  flex: 0 0 1px; height: 1px; overflow: hidden; background: #ececec;
  border-top: 1px solid #d0d0d0; font-size: 1px; line-height: 1px;
}
.fig-coords { position: absolute; left: -9999px; }
.fig-window.mode-pan .fig-canvas { cursor: grab; }
.fig-window.mode-rotate .fig-canvas { cursor: crosshair; }

/* 工作区选中行（4-12「选择要绘制的变量」的选择态） */
.ws-row.selected { background: #cce8ff; }
