/* Keep one clear home control visible on every signed-in subpage. */
.topbar.workbench-nav {
  top: var(--workbench-nav-offset, 0px);
  z-index: 80;
  height: auto;
  min-height: 58px;
  gap: 8px;
  padding-top: calc(7px + env(safe-area-inset-top, 0px));
  padding-bottom: 7px;
  background: rgba(244,245,249,.98);
  border-bottom: 1px solid var(--line, #e2e8f0);
  box-shadow: 0 3px 12px rgba(30,27,75,.06);
}
.workbench-nav > .workbench-nav-heading {
  flex: 1;
  min-width: 0;
}
.workbench-nav .page-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}
.workbench-nav .back {
  order: 3;
  flex: 0 0 38px;
  margin-right: 0;
  margin-left: auto;
}
.workbench-nav .workbench-home-return,
.workbench-home-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 5px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--blue, #4f46e5);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  touch-action: manipulation;
}
.workbench-home-return svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workbench-home-return:focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 3px;
}
.workbench-home-return:active { background: #3730a3; }
.workbench-modal-home {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: max(12px, calc((100vw - 720px) / 2 + 12px));
  z-index: 1;
}
.workbench-demo-navigation {
  padding-top: calc(36px + env(safe-area-inset-top, 0px));
}
.workbench-demo-navigation #session-bar {
  height: calc(36px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
}
.workbench-demo-navigation .workbench-nav { padding-top: 7px; }
.workbench-report-nav {
  display: flex;
  align-items: center;
  position: sticky;
  max-width: 1040px;
  margin: 0 auto 16px;
  padding-left: 14px;
  padding-right: 14px;
}
@media print {
  .workbench-report-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .workbench-home-return { transition: none; }
}
