/* compact-shell-peter-v1: desktop-only exact-account opt-in, loaded after existing shell styles. */
@media screen and (min-width: 901px) {
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #gcAdminPageHead {
    display: none !important;
  }
  /* Keep existing page actions/search nodes and handlers; remove only repeated title chrome. */
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #gcAdminPageHead:has(#gcAdminPageActions > *) {
    display: flex !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    padding: 6px 16px !important;
    border-bottom: 0 !important;
    background: transparent !important;
  }
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #gcAdminPageHead > :not(#gcAdminPageActions) {
    display: none !important;
  }
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #gcAdminPageActions {
    margin-left: auto;
  }
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #sidebar .sidebar-header {
    position: relative;
  }
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #sidebar .sidebar-header-actions {
    display: inline-flex !important;
  }
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #sidebar:not(.collapsed) .sidebar-logo {
    max-width: calc(100% - 44px);
    min-width: 0;
  }
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #sidebar .sidebar-collapse-btn {
    display: inline-flex !important;
    position: absolute !important;
    top: 50%;
    right: 0;
    width: 28px;
    height: 30px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    border: 0 !important;
    border-radius: 6px;
    background: transparent;
    color: var(--ink-mute, #747479);
  }
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #sidebar:not(.collapsed) .sidebar-search-btn {
    display: inline-flex !important;
    position: absolute;
    top: 50%;
    right: 34px;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
  }
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #sidebar .sidebar-collapse-btn:hover {
    background: var(--gc-selection-hover, rgba(120, 120, 128, 0.08));
    color: var(--ink, #1D1D1F);
    box-shadow: none;
  }
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #sidebar .sidebar-collapse-btn:focus-visible {
    outline: 2px solid var(--apple-blue, #007aff);
    outline-offset: -2px;
  }
  /* A 64px rail cannot fit the brand and trigger side by side; preserve both in two small rows. */
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #sidebar.collapsed .sidebar-header {
    height: 86px !important;
    min-height: 86px !important;
    box-sizing: border-box;
    padding: 12px 8px 42px !important;
    align-items: flex-start;
  }
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #sidebar.collapsed .sidebar-logo {
    display: flex !important;
    width: 100%;
    justify-content: center;
  }
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #sidebar.collapsed .sidebar-collapse-btn {
    top: auto;
    bottom: 6px;
    right: 50%;
    transform: translateX(50%);
  }
  html body.peter-compact-shell-pilot.gc-admin-shell-pilot #sidebar.collapsed .sidebar-search-btn {
    display: none !important;
  }
}
