/* Fluent 2022 R1 layout — geometry measured on the real PX capture
 * (tests/baseline/fluent-domain.png, 1920x1080 full screen; client area abs y=22..1032 = 1920x1010).
 * client coords used below: y=0 at abs 22.
 *   tabbar      0..30
 *   ribbon      30..143
 *   panes       143..804   (pane headers 143..172)
 *   gfx footer  804..836
 *   console     836..1004
 *   statusbar   1004..1010
 *   x: outline 0..269 | taskpage 269..608 | gfx toolbar 608..653 | graphics 653..1882 | vistoolbar 1882..1920
 */
.app {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: var(--c-window);
  font-size: 12px;
}

/* tab bar right cluster */
.tabbar .tabbar-collapse { margin-left: 18px; display: grid; place-items: center; color: #C7D2DE; font-size: 10px; }
.tabbar .quick { display: flex; align-items: center; gap: 6px; margin-left: auto; padding-right: 0; }
.tabbar .searchbox {
  width: 206px; height: 26px; display: flex; align-items: center; gap: 6px;
  background: #F9F9F9; border-radius: 2px; padding: 0 6px; margin-right: 10px;
}
.tabbar .searchbox .mag { width: 14px; height: 14px; border: 2px solid #C8922A; border-radius: 50%; position: relative; }
.tabbar .searchbox .mag::after { content: ""; position: absolute; right: -4px; bottom: -3px; width: 5px; height: 2px; background: #C8922A; transform: rotate(45deg); }
.tabbar .searchbox .ph { color: #6E7F91; font-size: 12px; }
.tabbar .qicon { display: grid; place-items: center; width: 20px; height: 20px; }
.tabbar .ansyslogo { height: 31px; width: 90px; object-fit: cover; }

/* rows */
.tabbar { flex: 0 0 30px; }
.ribbon { flex: 0 0 113px; }
.workspace { flex: 1 1 auto; min-height: 0; display: flex; }
.bottom-area { flex: 0 0 200px; display: flex; min-height: 0; }
.statusbar { flex: 0 0 6px; }

/* panes */
.pane { display: flex; flex-direction: column; min-height: 0; }
.outline-pane { width: 269px; flex: 0 0 269px; background: var(--c-outline); border-right: 1px solid #C3C8CE; }
.taskpage-pane { width: 339px; flex: 0 0 339px; background: var(--c-taskpage); }
.graphics-pane { flex: 1 1 auto; background: #F1F3F7; position: relative; min-width: 0; }

.pane-header {
  flex: 0 0 29px;
  display: flex; align-items: center;
  background: #D9DDE1; border-bottom: 1px solid #C3C8CE;
  font-size: 12px; font-weight: 600; color: #4C5866;
  padding: 0 6px;
}
.pane-header .ptitle { flex: 1 1 auto; }
.pane-header .closer { color: #5A6B7C; font-size: 10px; }
.pane-header.tabbed { background: #CBD2DB; padding: 0; }
.pane-header .ptab { padding: 0 14px; height: 100%; display: flex; align-items: center; background: #D9DDE1; }
.pane-header.tabbed .closer { position: absolute; right: 6px; }

.outline-filter { flex: 0 0 24px; padding: 2px 4px; background: var(--c-outline); }
.outline-filter input { width: 100%; height: 20px; }
.tree.scroll { flex: 1 1 auto; overflow: auto; background: var(--c-outline); padding: 1px 0; }
.taskpage-scroll { flex: 1 1 auto; overflow: auto; background: var(--c-taskpage); }

.gtoolbar {
  width: 45px; flex: 0 0 45px; background: #F7F8F9;
  border-right: 1px solid #D5D9DD;
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 0;
}
.gtoolbar .gt { width: 36px; height: 30px; display: grid; place-items: center; border: 1px solid transparent; }
.gtoolbar .gt:hover { background: var(--c-btn-hover); border-color: #BFD7EE; }
.gtoolbar .gt img { width: 22px; height: 22px; object-fit: contain; }
.gtoolbar .gsep { height: 1px; width: 26px; background: #DDE1E5; margin: 3px 0; }

.graphics-scroll { position: absolute; inset: 0; overflow: auto; background: #FFFFFF; margin: 5px 5px 4px 4px; border: 1px solid #D5D9DD; }

.vistoolbar {
  width: 38px; flex: 0 0 38px; background: #FFFFFF;
  border-left: 1px solid #D5D9DD;
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 0; overflow: hidden;
}
.vistoolbar .vt { width: 32px; height: 30px; display: grid; place-items: center; border: 1px solid transparent; }
.vistoolbar .vt:hover { background: var(--c-btn-hover); border-color: #BFD7EE; }
.vistoolbar .vt img { width: 22px; height: 22px; object-fit: contain; }

/* bottom area */
.bottom-spacer { width: 608px; flex: 0 0 608px; background: #FFFFFF; border-right: 1px solid #D5D9DD; }
.bottom-right { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; margin-right: 20px; }
.gfx-footer {
  flex: 0 0 32px; display: flex; align-items: center; justify-content: flex-end;
  gap: 4px; padding-right: 8px; font-size: 12px; color: #333;
  background: #F7F8F9; border-top: 1px solid #D5D9DD;
}
.console-pane { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; background: var(--c-console); }
.console-pane .pane-header { background: #D9DDE1; flex: 0 0 24px; }
.console { flex: 1 1 auto; overflow: auto; padding: 1px 4px; }
.console .line { font-family: var(--font-mono); font-size: 12px; line-height: 16px; white-space: pre; }

.statusbar { background: #F0F0F0; border-top: 1px solid #D0D4D8; display: flex; align-items: center; padding: 0 4px; font-size: 10px; color: #444; }
.statusbar .grip { margin-left: auto; }

/* start page */
.welcome { padding: 10px 12px; font-size: 12px; color: #1F1F1F; }
.welcome h3 { font-size: 12px; margin: 0 0 4px; font-weight: 700; }
.welcome a { color: #0B63A8; text-decoration: none; }
.welcome .hero { display: flex; gap: 12px; margin-bottom: 10px; }
.welcome .hero .art { width: 178px; height: 84px; object-fit: cover; }
.welcome .cols { display: grid; grid-template-columns: 240px 300px 1fr; gap: 24px; }
.welcome .col { display: flex; flex-direction: column; gap: 4px; }
.welcome .witem { line-height: 16px; }
.welcome .wsub { margin-left: 14px; }
