[hidden] {
  display: none !important;
}

.tabs button {
  position: relative;
}

.nav-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  place-items: center;
  border-radius: 99px;
  background: var(--danger);
  color: #24100e;
  font-size: 10px;
}

.project-actions {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 12px;
}

.project-actions button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.list-updates {
  position: sticky;
  z-index: 3;
  top: calc(env(safe-area-inset-top) + 8px);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #617541;
  border-radius: 15px;
  background: rgba(30, 47, 38, 0.97);
  color: var(--ink);
  font-size: 11px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.project-group-heading {
  width: 100%;
  min-height: 48px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.project-group-heading::before {
  content: "▾";
  order: 2;
  color: var(--muted);
  font-size: 12px;
}

.project-group-heading[aria-expanded="false"]::before {
  content: "▸";
}

.project-group-heading > .badge {
  order: 3;
}

.badge.running,
.badge.approval,
.badge.complete,
.badge.failure {
  font-weight: 700;
}

.badge.running,
.badge.approval {
  background: #34482d;
  color: var(--accent);
}

.badge.complete {
  background: #294238;
  color: #c8f071;
}

.badge.failure {
  background: #492c29;
  color: #ffaaa2;
}

.pending-legend {
  display: flex;
  gap: 6px;
  margin: 12px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pending-legend .badge {
  flex: 0 0 auto;
}

.pending-cards {
  grid-template-columns: 1fr;
}

.pending-empty {
  text-align: center;
}

.pending-empty h3,
.chat-empty h3 {
  margin: 0 0 6px;
}

.chat-empty {
  margin-top: 18px;
}

.chat-heading {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.chat-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.chat-actions button {
  white-space: nowrap;
}

.load-older {
  display: block;
  margin: 14px auto 0;
}

.messages {
  overflow-anchor: none;
}

.notification-test {
  margin-top: 8px;
}

.session-card {
  min-height: 60px;
}

@media (max-width: 420px) {
  .project-group-heading {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .project-group-heading > .badge {
    max-width: 112px;
    text-align: center;
  }
}

.delivery-state { margin-top: .65rem; padding-top: .5rem; border-top: 1px solid #ffffff24; font-size: .8rem; line-height: 1.5; opacity: .95; overflow-wrap: anywhere; }
.delivery-state button { display: inline-block; margin: .4rem .5rem 0 0; padding: .5rem .7rem; min-height: 44px; font-size: .8rem; }
