/* Staff shell — my-header / my-sidebar match dashboard component look */

.my-header {
  background: var(--staff-glass-pad, #dde3eb);
  color: var(--color-text, #0f172a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  font-size: 0.85rem;
  border-radius: var(--radius);
}

.my-sidebar {
  background: #dde3eb;
  color: var(--color-text);
  padding: 8px 0;
  overflow-y: auto;
  border-right: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.my-workspace {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.my-sidebar--hidden {
  display: none;
}

.my-workspace--full {
  grid-column: 1 / 21;
  grid-row: 2 / 16;
}

/* 2D/3D main — header nearly flush with board; slightly shorter heading */
.grid-20x15-container:has(.my-workspace--full) {
  gap: 0;
  row-gap: 1px;
  column-gap: 0;
  padding: 1px;
  grid-template-rows: minmax(2.1rem, 2.3rem) repeat(14, minmax(0, 1fr));
}

.grid-20x15-container:has(.my-workspace--full) .my-header {
  min-height: 0;
  height: 100%;
  padding: 0 10px;
  gap: 8px;
  font-size: 0.76rem;
  overflow: hidden;
  align-items: stretch;
  border-radius: 4px 4px 0 0;
}

.grid-20x15-container:has(.my-workspace--full) .my-header .brand {
  font-size: 0.9rem;
}

.grid-20x15-container:has(.my-workspace--full) .my-header .tab {
  padding: 3px 9px;
  font-size: 0.74rem;
  align-self: center;
}

.grid-20x15-container:has(.my-workspace--full) .my-header .topbar-left,
.grid-20x15-container:has(.my-workspace--full) .my-header .topbar-right,
.grid-20x15-container:has(.my-workspace--full) .my-header .topbar-ticker {
  display: flex;
  align-items: center;
  align-self: stretch;
  min-height: 0;
}

.grid-20x15-container:has(.my-workspace--full) .my-header .topbar-right {
  gap: 6px;
}

.grid-20x15-container:has(.my-workspace--full) .my-header .topbar-stats {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  margin-block: 2px;
  min-height: 0;
}

.grid-20x15-container:has(.my-workspace--full) .my-header .toolbar-live__set {
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 0.55rem !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
  font-size: 0.78rem !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.grid-20x15-container:has(.my-workspace--full) .my-header .btn--signout {
  padding: 3px 9px;
  font-size: 0.72rem;
  align-self: center;
}

.grid-20x15-container:has(.my-workspace--full) .my-header .topbar-clock {
  font-size: 0.74rem;
  align-self: center;
}

.grid-20x15-container:has(.my-workspace--full) .my-header .topbar-ticker {
  color: #1d4ed8;
  font-size: calc(0.78rem + 2px);
  padding: 0 0.55rem;
  border-radius: 6px;
  border: var(--staff-glow-border);
  background: rgba(239, 246, 255, 0.9);
  box-shadow: var(--staff-glow-shadow);
  text-shadow: var(--staff-glow-text);
}

.my-workspace--full .main-board-shell {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  padding: 0 2px 2px;
  gap: 2px;
}

.grid-20x15-container:has(.my-workspace--full) .my-workspace--full {
  border-radius: 0 0 4px 4px;
}

.my-workspace--full .main-board-main {
  min-height: 0;
  height: 100%;
}

.my-workspace--full .main-board-main-head {
  padding: 1px 5px;
  gap: 3px;
  font-size: 0.7rem;
  min-height: 0;
  line-height: 1.1;
}

.my-workspace--full .main-board-grid-host {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
}

.my-workspace--full .main-board-four-grid {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

.my-workspace--full .main-board-mini-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.my-workspace--full .mb-block-grid {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  grid-template-rows: auto repeat(25, minmax(0, 1fr));
  font-size: clamp(0.74rem, 0.4rem + 0.98vh, 1.06rem);
}

.my-workspace--full .mb-row-head .mb-cell {
  padding: 0.06rem 0.08rem;
  line-height: 1.1;
  font-size: 0.92em;
}

.my-workspace--full .agent-main-board-grand-sum-wrap {
  margin-top: 0;
  flex-shrink: 0;
}

.my-workspace--full .agent-main-board-footer-grid {
  padding: 0.04rem 0.12rem 0.06rem;
}

/* Agent plane gate on main boards (2D only / 3D only) */
.tab.is-plane-dim {
  opacity: 0.38;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.35);
}
