.console-view-mode {
  order: 5;
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid var(--line-str);
  border-radius: 4px;
  overflow: hidden;
}
.console-view-mode button {
  padding: 7px 10px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: 600 12px var(--ff);
  cursor: pointer;
}
.console-view-mode button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.console-view-mode button:focus-visible { outline-offset: -3px; }
.console-preview-notice {
  padding: 10px 24px;
  border-bottom: 1px solid var(--line-str);
  background: #FCF4EC;
  color: #595959;
  font: 13px/1.5 var(--ff);
}
.console-admin-group { margin-top: 20px; padding: 14px 10px 6px; border-top: 1px solid var(--line); font-size: 11px; }
.client-preview #production-register-command,
.client-preview #production-register,
.client-preview #production-campaign-form,
.client-preview #rr-production-actions,
.client-preview #rr-approve,
.client-preview #rr-reject,
.client-preview #rr-deny,
.client-preview #production-submit-approval,
.client-preview #production-approve,
.client-preview #production-cancel,
.client-preview #ux-add-customer,
.client-preview #ux-import-customers,
.client-preview .ux-request,
.client-preview .ux-link,
.client-preview #approve,
.client-preview #send,
.client-preview #customer-link { display: none !important; }
.client-preview .work form button[type="submit"] { display: none !important; }
/* Between the 760px phone layout and the 900px point where the rail collapses, the top bar
   carries a menu button, the logo, the breadcrumb, a client select, Refresh and the
   Admin/Client toggle, which is wider than 768px. It wraps onto a second row instead of
   running off the right edge and widening the whole page. */
@media (min-width: 761px) and (max-width: 900px) {
  html.certificate-workbench .app { grid-template-rows: auto minmax(0, 1fr); }
  html:is(.workbench-preview, .certificate-workbench) .top { flex-wrap: wrap; height: auto; min-height: 64px; padding: 10px 16px; gap: 8px; }
  html:is(.workbench-preview, .certificate-workbench) .top .workspace-scope select { min-width: 0; max-width: 100%; }
  html:is(.workbench-preview, .certificate-workbench) .top .crumb { min-width: 0; }
  .console-view-mode { margin-left: auto; }
}
@media (max-width: 760px) {
  html.certificate-workbench .app { grid-template-rows: auto minmax(0, 1fr); }
  html:is(.workbench-preview, .certificate-workbench) .top { flex-wrap: wrap; height: auto; min-height: 64px; padding: 10px 16px; gap: 8px; }
  html:is(.workbench-preview, .certificate-workbench) .top .workspace-scope:not([hidden]) { display: grid; min-width: 0; max-width: 100%; flex: 1 1 100%; grid-template-columns: auto minmax(0, 1fr); }
  html:is(.workbench-preview, .certificate-workbench) .top .workspace-scope select { min-width: 0; width: 100%; max-width: 100%; }
  html:is(.workbench-preview, .certificate-workbench) .work { padding: 24px 16px; }
  html:is(.workbench-preview, .certificate-workbench) .ov-workspace .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  html.workbench-preview .ov-workspace .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html.workbench-preview .ov-workspace .ov-metric { min-width: 0; padding: 16px; }
  html:is(.workbench-preview, .certificate-workbench) .ov-workspace .phead { flex-direction: column; align-items: stretch; gap: 16px; }
  html.workbench-preview .ov-header-actions { flex-wrap: wrap; }
  html.workbench-preview .ov-coverage-progress { flex-wrap: wrap; }
  html.workbench-preview .ov-panel > .card-h { flex-wrap: wrap; gap: 8px; }
  .console-preview-notice { padding-inline: 16px; }
  .console-view-mode { margin-left: auto; }
}
[hidden].console-view-mode, [hidden].console-preview-notice { display: none; }