/* CFD-Post 2022 R1 web clone — measured layout (fidelity round 2).
 * Reference: /data/dev/ansys2202r1-work/shots/cfdpost-main.png (1920x1080 full screen,
 *   client area = abs y 22..1032 -> 1920x1010). All numbers below are CLIENT coordinates
 *   (client y = abs y - 22), measured pixel-by-pixel from that capture.
 *
 * Vertical structure (client px), re-measured 2026-11-16 23:2x:
 *   0       1px #F0F3F9 (window frame row, abs 22)
 *   1..18   menu bar (white, text ink abs rows 7..14)
 *   19      #F2F2F2 line, 20 white line
 *   21..44  toolbar row 1 (bg #F0F0F0, 16px icons)
 *   45      #B9B9B9 separator
 *   46..48  #F0F0F0
 *   49      active left tab top border #E5E5E5 (x4..61); view toolbar top border #E5E5E5 (x660..1914)
 *   49..70  left tab strip: active tab #F9F9F9 fill y50..70; inactive tabs top border y51,
 *           fill #F3F3F3 y52..68, bottom border #A0A0A0 y69; empty strip bottom border #E5E5E5 y69;
 *           strip highlight line #F9F9F9 y70
 *   49..77  right view toolbar row: y50 #F9F9F9, y51 #FFFFFF, y52..76 #F0F0F0, y77 #B9B9B9
 *   71..342 tree box (border #828790, interior white, 18px rows, label ink +6 from row top)
 *   78..97  View 1 tab bar (#C0C0C0, x 662..1912)
 *   98..957 view content gradient #6B8CDD -> #FFF (x 662..1912)
 *   958..959 #F9F9F9 light band; bottom tabs y960 border rows
 *   960..980 bottom viewer tabs (active 3D Viewer #F9F9F9 y958..979; inactive #F3F3F3 with
 *           #A0A0A0 top border y960 and #E6E6E6 bottom border y978; active bottom border y980 #E6E6E6)
 *   981..1009 status bar #F0F0F0
 * Horizontal: left pane 0..659 | view 660..1912 | right border x1913 #F9F9F9, x1914 #E5E5E5,
 *   x1915..1916 #F3F3F3 (y49..961) | 1917..1919 #F0F0F0
 *   left pane vertical rules: x3 #E5E5E5, x4 #F9F9F9, x651 #F9F9F9, x652 #E5E5E5, x653..654 #F3F3F3
 * Font: the capture is Windows Arial-like narrow text; Liberation Sans (Arial metrics) at
 *   10.5px matches ink widths within ~2px (Rubik 11px measured 7..9%% wider).
 */
:root {
  --cp-bg: #F0F0F0;
  --cp-menu-bg: #FFFFFF;
  --cp-tab-active: #F9F9F9;
  --cp-tab-idle: #F3F3F3;
  --cp-border: #E5E5E5;
  --cp-tree-border: #828790;
  --cp-select: #0078D7;
  --cp-font: "Liberation Sans", Arial, "Rubik", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 1920px; height: 1010px; overflow: hidden; background: var(--cp-bg); }
body { font-family: var(--cp-font); font-size: 10.5px; color: #000; user-select: none; -webkit-font-smoothing: antialiased; }
img { -webkit-user-drag: none; }
.win { position: relative; width: 1920px; height: 1010px; overflow: hidden; background: var(--cp-bg); }

/* ---------- top bands ---------- */
.topline { position: absolute; left: 0; top: 0; width: 1920px; height: 1px; background: #F0F3F9; }
.menubar { position: absolute; left: 0; top: 1px; width: 1920px; height: 18px; background: var(--cp-menu-bg); }
.menuline { position: absolute; left: 0; top: 19px; width: 1920px; height: 1px; background: #F2F2F2; }
.menuwhite { position: absolute; left: 0; top: 20px; width: 1920px; height: 1px; background: #FFFFFF; }
.toolbar { position: absolute; left: 0; top: 21px; width: 1920px; height: 24px; background: var(--cp-bg); }
.toolsep { position: absolute; left: 0; top: 45px; width: 1920px; height: 1px; background: #B9B9B9; }
.toolgap { position: absolute; left: 0; top: 46px; width: 1920px; height: 3px; background: var(--cp-bg); }

/* menu bar labels: ink rows 7..14 in ref (3px lower than default line box) */
.menubar .m { position: absolute; top: 0; height: 18px; line-height: 18px; padding-top: 1px; font-size: 10.5px; color: #000; padding-left: 7px; padding-right: 8px; cursor: default; white-space: nowrap; }
.menubar .m:hover, .menubar .m.open { background: #E5F1FB; }

/* ---------- toolbar row 1 ---------- */
.tb-btn { position: absolute; top: 0; height: 24px; padding: 0 3px; display: flex; align-items: center; cursor: default; }
.tb-btn img { display: block; }
.tb-btn:hover { background: #DDEBF7; }
.tb-sep { position: absolute; }
.tb-sep.solid { background: #B9B9B9; }
.tb-sep.dotted { background: repeating-linear-gradient(to bottom, #B8B8B8 0 2px, transparent 2px 4px); }
.tb-location { position: absolute; left: 188px; top: 0; width: 84px; height: 24px; cursor: default; }
.tb-location:hover { background: #DDEBF7; }
.tb-location img { position: absolute; left: 3px; top: 3px; }
.tb-location .lbl { position: absolute; left: 24px; top: 0; height: 24px; line-height: 24px; font-size: 10.5px; }
.tb-location .arrow { position: absolute; left: 69px; top: 10px; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #000; }

/* ---------- left tab strip (Qt tabs measured row by row) ---------- */
.tabstrip { position: absolute; left: 0; top: 46px; width: 660px; height: 25px; background: transparent; }
.tabstrip .ltab { position: absolute; top: 5px; height: 19px; line-height: 17px; padding-top: 1px; text-align: center; font-size: 10.5px;
  color: #000; background: var(--cp-tab-idle); border-top: 1px solid var(--cp-border);
  border-bottom: 1px solid #A0A0A0; cursor: default; white-space: nowrap; z-index: 1; }
.tabstrip .ltab::before { content: ""; position: absolute; left: -1px; top: -1px; width: 1px; height: 20px;
  background: var(--cp-border); }
.tabstrip .ltab.active { top: 3px; height: 22px; line-height: 19px; text-indent: -3px; background: var(--cp-tab-active);
  border-top: 1px solid var(--cp-border); border-bottom: 0; z-index: 2; }
.tabstrip .ltab.active::before { display: none; }
.tabstrip::before { content: ""; position: absolute; left: 4px; top: 23px; width: 648px; height: 1px;
  background: var(--cp-border); z-index: 0; }
.tabstrip::after { content: ""; position: absolute; left: 4px; top: 24px; width: 648px; height: 1px;
  background: var(--cp-tab-active); z-index: 0; }

/* ---------- view toolbar (right, same band as tab strip) ---------- */
.viewtoolbar { position: absolute; left: 660px; top: 49px; width: 1255px; height: 29px;
  background-color: var(--cp-bg); border-top: 1px solid var(--cp-border);
  border-left: 1px solid var(--cp-border); border-bottom: 1px solid #B9B9B9;
  background-image: linear-gradient(#F9F9F9, #F9F9F9), linear-gradient(#FFFFFF, #FFFFFF),
    linear-gradient(#F9F9F9, #F9F9F9);
  background-repeat: no-repeat;
  background-position: 0 0, 0 1px, 0 2px;
  background-size: 1253px 1px, 1253px 1px, 1px 25px; }
.vt-btn { position: absolute; padding: 2px; margin-left: -1px; margin-top: -1px; display: flex; align-items: center; justify-content: center; cursor: default; }
.vt-btn:hover { background: #DDEBF7; }
.vt-btn.active { background: #CCE8FF; }
/* Qt separator colours: solid 2px = #B9B9B9 + #FFFFFF highlight; 1px = #D3D3D3; dotted = #B8B8B8 */
.viewtoolbar .tb-sep { margin-left: -1px; margin-top: -1px; }
.viewtoolbar .tb-sep.solid { background: linear-gradient(to right, #B9B9B9 0 1px, #FFFFFF 1px 2px); }
.viewtoolbar > div:nth-child(14), .viewtoolbar > div:nth-child(15) { background: #D3D3D3; }
.viewtoolbar > div:nth-child(11), .viewtoolbar > div:nth-child(13), .viewtoolbar > div:nth-child(17) {
  background: repeating-linear-gradient(to bottom, #B8B8B8 0 2px, transparent 2px 4px); }

/* ---------- left pane / tree ---------- */
.leftpane { position: absolute; left: 0; top: 49px; width: 660px; height: 961px; background-color: var(--cp-bg);
  background-image: linear-gradient(#F9F9F9, #F9F9F9), linear-gradient(#F9F9F9, #F9F9F9),
    linear-gradient(#E5E5E5, #E5E5E5), linear-gradient(#F9F9F9, #F9F9F9), linear-gradient(#E5E5E5, #E5E5E5);
  background-repeat: no-repeat;
  background-position: 4px 1px, 651px 22px, 652px 20px, 4px 928px, 4px 930px;
  background-size: 1px 888px, 1px 890px, 1px 911px, 648px 2px, 649px 1px; }
.leftpane::before { content: ""; position: absolute; left: 3px; top: 1px; width: 1px; height: 930px; background: var(--cp-border); }
.leftpane::after { content: ""; position: absolute; right: 5px; top: 0; width: 2px; height: 913px; background: var(--cp-tab-idle); }
.treebox { position: absolute; left: 5px; top: 71px; width: 646px; height: 272px; background: #FFFFFF;
  border: 1px solid var(--cp-tree-border); overflow: hidden; }
.trow { position: absolute; left: 0; width: 644px; height: 18px; cursor: default; }
.trow .selbg { position: absolute; left: 0; top: 0; width: 644px; height: 18px; background: var(--cp-select); z-index: 0; }
.trow.child .selbg { left: 40px; width: 604px; }
.trow > * { z-index: 1; }
.trow .tw { position: absolute; top: 50%; transform: translateY(-50%); cursor: default; }
.trow .ico { position: absolute; top: 50%; transform: translateY(-50%); }
.trow .chk { position: absolute; top: 50%; transform: translateY(-50%); cursor: default; }
.trow .lbl { position: absolute; top: 1px; height: 18px; line-height: 18px; font-size: 10.5px; color: #000; white-space: nowrap; }
.trow.bold .lbl { font-weight: 700; font-size: 11.5px; }
.trow.sel .lbl { color: #FFFFFF; }

/* ---------- view tab bar ---------- */
.viewtabbar { position: absolute; left: 662px; top: 78px; width: 1251px; height: 20px;
  background: linear-gradient(to bottom, #BFBFBF 0 1px, #BEBEBE 1px 2px, #BCBCBC 2px 3px,
    #BEBEBE 3px 4px, #C1C1C1 4px 5px, #C0C0C0 5px 20px); }
.viewtabbar::after { content: ""; position: absolute; left: 0; top: 19px; width: 1251px; height: 1px;
  background: #CABED0; }
.viewtabbar .vlabel { position: absolute; left: 6px; top: 3px; height: 18px; line-height: 18px; letter-spacing: -0.8px; font-size: 10px; font-weight: 700; color: #000; }
.viewtabbar .varrow { position: absolute; left: 51px; top: 8px; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #000; }

/* ---------- view content ---------- */
.viewcontent { position: absolute; left: 662px; top: 98px; width: 1251px; height: 860px;
  background: linear-gradient(to bottom, #668AD8 0px, #6B8CDD 2px, #FFFFFF 860px); overflow: hidden; }
.viewcontent .watermark { position: absolute; left: 1130px; top: 0; }
.viewcontent .axes { position: absolute; left: 1108px; top: 740px; }
.viewcontent .legend { position: absolute; }
.viewcontent .legend .bar { position: absolute; border: 1px solid #000; height: 11px;
  background: linear-gradient(90deg, #000 0 96px, transparent 96px 193px, #000 193px 289px, transparent 289px 385px); }
.viewcontent .legend .lab { position: absolute; margin-left: -1px; font-size: 12px; color: #000; line-height: 14px; white-space: nowrap;
  font-family: "Rubik", "Segoe UI", sans-serif; }
.viewcontent .legend .lab:nth-child(6), .viewcontent .legend .lab:nth-child(7) { margin-left: 0; }
.viewlight { position: absolute; left: 662px; top: 958px; width: 1251px; height: 2px; background: var(--cp-tab-active); }
.viewborder { position: absolute; left: 1097px; top: 960px; width: 822px; height: 1px; background: var(--cp-border); }

/* ---------- view vertical rules x660 (#E5E5E5) / x661 (#F9F9F9), y49..980 ---------- */
.topline::before { content: ""; position: absolute; left: 660px; top: 49px; width: 1px; height: 931px; background: var(--cp-border); }
.topline::after { content: ""; position: absolute; left: 661px; top: 50px; width: 1px; height: 930px; background: var(--cp-tab-active); }

/* ---------- right border columns x1913..x1916 ---------- */
.rightedge { position: absolute; left: 1913px; top: 50px; width: 2px; height: 910px;
  background: linear-gradient(to right, #F9F9F9 0 1px, #E5E5E5 1px 2px); }
.rightedge2 { position: absolute; left: 1915px; top: 49px; width: 2px; height: 913px; background: var(--cp-tab-idle); }

/* ---------- bottom viewer tabs ---------- */
.bottomtabs { position: absolute; left: 661px; top: 958px; height: 23px; width: 1258px;
  background-image: linear-gradient(#E5E5E5, #E5E5E5), linear-gradient(#E5E5E5, #E5E5E5),
    linear-gradient(#E5E5E5, #E5E5E5), linear-gradient(#E5E5E5, #E5E5E5);
  background-repeat: no-repeat;
  background-position: 72px 2px, 156px 2px, 242px 2px, 346px 2px;
  background-size: 1px 20px, 1px 20px, 1px 20px, 1px 20px; }
.btab { position: absolute; top: 3px; height: 18px; line-height: 17px; padding-top: 1px; font-size: 10.5px; color: #000;
  background: var(--cp-tab-idle); border-bottom: 1px solid #E6E6E6; padding-left: 10px; cursor: default; white-space: nowrap; }
.btab::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: #A0A0A0; }
.btab.active { top: 0; height: 23px; line-height: 22px; padding-top: 2px; background: var(--cp-tab-active);
  border-bottom: 1px solid #E6E6E6; z-index: 2; }
.btab.active::before { display: none; }

/* ---------- status bar ---------- */
.statusbar { position: absolute; left: 0; top: 981px; width: 1920px; height: 29px; background: var(--cp-bg); }
.statusbar .msg { position: absolute; left: 6px; top: 3px; font-size: 10.5px; color: #333; }

/* ---------- menu popup: measured Qt look (bg #F0F0F0, 22px items, 8px separators) ---------- */
.qtmenu { background: #F0F0F0; border: 2px solid #F9F9F9; box-shadow: 2px 2px 4px rgba(0,0,0,.22);
  padding: 0; min-width: 100px; font-size: 10.5px; }
.qtmenu .mi { height: 22px; padding: 0 8px 0 32px; font-size: 10.5px; color: #000; }
.qtmenu .mi:hover { background: #CCE4F7; }
.qtmenu .mi .icon { left: 4px; width: 16px; height: 16px; top: 50%; margin-top: -8px; object-fit: contain; }
.qtmenu .mi .accel { position: absolute; right: 15px; top: 0; line-height: 22px; font-size: 10.5px; color: #000; }
.qtmenu .mi .arrow { position: absolute; right: 10px; top: 0; line-height: 22px; font-size: 10.5px; color: #000; padding: 0; margin: 0; }
.qtmenu .sep { height: 9px; background: transparent; border-top: 1px solid #D8DDE2; margin: 0 4px; }
.qtmenu .mi.disabled { color: #9A9A9A; }
.qtmenu .mi.disabled .icon { opacity: .45; }

/* debug/error output */
#boot-error { position: fixed; left: 4px; bottom: 4px; z-index: 99999; background: #fff; color: #b00;
  font: 12px monospace; padding: 4px 8px; border: 1px solid #b00; white-space: pre-wrap; max-width: 1200px; }
