/* Team overview. The list rows, chips, bubbles and app bar come from
   /inbox/inbox.css; this file only lays out the page. */

.overview {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}

.pane-detail.is-chat { background: var(--chat-bg); }

.detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.detail-head .who-text {
  flex: 1;
  min-width: 0;
}

.detail-head .who-text b { font-size: 17px; }

.head-actions {
  display: flex;
  gap: 8px;
}

.who-text .sub {
  color: var(--gray-mid);
  font-size: 13px;
}

.thread-head .who-text { flex: 1; }

.detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 24px;
}

.detail-scroll .conv-list { max-width: 760px; }

.back.always { display: grid; }

/* Full history: each chat under its member's name */

.history-block + .history-block { margin-top: 28px; }

.history-member {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  background: var(--chat-bg);
  font-size: 15px;
}

/* Connect Claude: a card under the managers, and the notice it opens */

.claude-card {
  margin: 0 12px 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--capri-tint);
}

.claude-card h2 {
  margin: 0 0 6px;
  font-size: 15px;
}

.claude-card p {
  margin: 0 0 12px;
  color: var(--gray-dark);
  font-size: 13px;
}

.notice {
  width: min(400px, calc(100% - 32px));
  padding: 24px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(4, 23, 46, 0.3);
  color: var(--oxford);
  text-align: center;
}

.notice::backdrop { background: rgba(4, 23, 46, 0.45); }

.notice h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.notice p {
  margin: 0 0 20px;
  color: var(--gray-dark);
  font-size: 14px;
}

.notice form { margin: 0; }

.notice .btn {
  justify-content: center;
  min-width: 120px;
}

/* Phones: the managers first, then one manager on their own screen. */
@media (max-width: 820px) {
  .overview { grid-template-columns: 1fr; }
  .pane-detail { display: none; }
  .show-detail .pane-list { display: none; }
  .show-detail .pane-detail { display: flex; }

  .detail-head {
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .head-actions {
    justify-content: flex-end;
    width: 100%;
  }
}
