/* Desktop 0.3.4: exact, persistent two-row navigation in BOTH workspaces. */
.build-nav.um-tab-rows,
.table-frame .game-bottom-tabs.um-tab-rows {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  padding: 6px;
  scrollbar-gutter: auto;
  touch-action: auto;
}
.um-tab-rows .um-tab-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #4c9779 #092b20;
  touch-action: pan-x;
}
.um-tab-rows .um-tab-row .build-tab {
  flex: 1 0 auto;
  min-width: max-content;
  min-height: 34px;
  margin: 0;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.35;
  border-radius: 4px;
  white-space: nowrap;
}
.um-tab-rows .um-tab-row::-webkit-scrollbar { height: 8px; }
.um-tab-rows .um-tab-row::-webkit-scrollbar-thumb { background: #4c9779; border-radius: 5px; }
.um-tab-rows .build-tab:focus-visible { outline: 3px solid #7effb9; outline-offset: -3px; }
@media (pointer: coarse) {
  .um-tab-rows .um-tab-row .build-tab { min-height: 44px; }
}
@media print { .um-tab-rows { display: none !important; } }

/* Portal Tables 0.3.8: both terminal tabs share one grid column and scroll
   together, keeping Comlink 2nd directly below Table 1st at every width. */
.build-nav.um-tab-rows,
.table-frame .game-bottom-tabs.um-tab-rows {
  display:grid;
  grid-template-columns:minmax(max-content,1fr) max-content;
  gap:4px;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  scrollbar-color:#4c9779 #092b20;
  touch-action:pan-x;
}
.um-tab-rows .um-tab-row{display:contents}
.um-tab-rows .um-tab-leading{display:flex;flex-wrap:nowrap;gap:4px;min-width:max-content;align-items:stretch}
.um-tab-rows .um-tab-row>.build-tab{min-width:116px;width:100%;height:100%}
@media print {
 .build-nav.um-tab-rows,.table-frame .game-bottom-tabs.um-tab-rows{display:none}
}
