/* V20: expose the existing authenticated logout action on phones and iPad. */
@media (hover: none), (pointer: coarse), (width <= 1366px) {
  .topbar {
    padding-right: max(132px, calc(env(safe-area-inset-right) + 132px));
  }

  .topbar > div:first-child {
    min-width: 0;
  }

  .topbar h1 {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .topbar-meta {
    display: none;
  }

  .sidebar .coordinator-card > button,
  .sidebar-collapsed .coordinator-card > button {
    z-index: 45;
    display: inline-flex !important;
    position: fixed;
    top: max(13px, env(safe-area-inset-top));
    right: max(13px, env(safe-area-inset-right));
    width: auto;
    min-width: 105px;
    min-height: 42px;
    margin: 0;
    padding: 9px 12px;
    color: #8c3d38;
    background: #fff5f2;
    border: 1px solid #efc7c3;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 17px;
    line-height: 1;
    box-shadow: 0 7px 18px #58362f26;
    touch-action: manipulation;
  }

  .sidebar .coordinator-card > button::after {
    content: "Log keluar";
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
  }
}

@media (width <= 700px) {
  .sidebar {
    display: contents !important;
  }

  .sidebar > .sidebar-toggle,
  .sidebar > .sidebar-brand,
  .sidebar > nav,
  .sidebar > .coordinator-card > span,
  .sidebar > .coordinator-card > div {
    display: none !important;
  }

  .sidebar > .coordinator-card {
    display: contents;
  }
}
