.sidebar-close,
.sidebar-backdrop {
  display: none;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(239, 107, 196, 0.78);
  outline-offset: 3px;
}

.panel,
.metric-card,
.finish-card,
.welcome-card {
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

#safetyTeamPanel {
  grid-column: 1 / -1;
  min-height: 190px;
}

#safetyTeamPanel .finish-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin-top: 18px;
}

#safetyTeamPanel .finish-list > div {
  min-height: 54px;
  grid-template-columns: 36px 1fr auto;
}

#safetyTeamPanel .finish-list i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 11px;
}

#safetyTeamPanel .finish-list b {
  font-size: 10px;
}

#safetyTeamPanel .finish-list span {
  font-size: 8px;
}

@media (hover: hover) and (pointer: fine) {
  .panel:hover,
  .metric-card:hover,
  .finish-card:hover {
    border-color: rgba(239, 107, 196, 0.14);
    transform: translateY(-1px);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.16);
  }
}

@media (max-width: 760px) {
  body.sidebar-open {
    overflow: hidden;
  }

  .topbar {
    height: 72px;
    gap: 12px;
    padding: 0 14px;
    background: rgba(8, 7, 11, 0.94);
  }

  #safetyTeamPanel .finish-list {
    grid-template-columns: 1fr;
  }

  .topbar-left {
    min-width: 0;
    flex: 1;
    gap: 11px;
    padding-left: 50px;
  }

  .menu-btn {
    position: fixed;
    top: 16px;
    left: 14px;
    z-index: 130;
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: #15121a;
    color: #f0c5e2;
    font-size: 18px;
    cursor: pointer;
  }

  .menu-btn.is-open {
    left: min(calc(86vw - 50px), 250px);
    border-color: rgba(239, 107, 196, 0.25);
    background: #211722;
    color: #fff;
  }

  .topbar-title {
    min-width: 0;
  }

  .topbar-title small {
    display: block;
    overflow: hidden;
    color: #766c79;
    font-size: 6px;
    letter-spacing: 0.13em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar h1 {
    overflow: hidden;
    max-width: 42vw;
    margin-top: 4px;
    font-size: 16px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions {
    min-width: 0;
    flex: 0 1 auto;
  }

  .quick-launch-btn {
    display: none !important;
  }

  .notification {
    overflow: hidden;
    max-width: 116px;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    color: #eaa7d2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar {
    width: min(86vw, 300px);
    padding-top: 16px;
    z-index: 110;
    visibility: hidden;
    transition: transform 0.22s ease, visibility 0.22s ease;
  }

  .sidebar.open {
    visibility: visible;
  }

  .sidebar-close {
    display: none;
  }

  .dash-brand {
    padding-right: 8px;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: block;
    border: 0;
    background: rgba(3, 2, 5, 0.66);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .welcome-card,
  .panel,
  .metric-card,
  .finish-card,
  .finish-hero,
  .finish-banner {
    border-radius: 16px;
  }

  .nav-item,
  .server-card,
  .user-chip {
    min-height: 44px;
  }
}

@media (max-width: 390px) {
  .topbar {
    padding-inline: 10px;
  }

  .topbar-title small {
    display: none;
  }

  .topbar h1 {
    max-width: 38vw;
    margin-top: 0;
  }

  .notification {
    max-width: 92px;
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

