/* Inbox (mockup 05) — view-specific overrides. Reuses .card, .chip, .btn*,
   .field* from components.css; loaded after views.css so it can restyle
   the shared .inbox-*/.canned-* rules without editing that frozen file. */

.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
}

.inbox-group h2 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-transform: capitalize;
  margin: 0 0 var(--space-3);
}

.inbox-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.inbox-item-icon .platform-icon {
  width: 34px;
  height: 34px;
}

.inbox-item-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.inbox-item-kind {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: none;
}

.inbox-item-author {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.inbox-item-age {
  font-size: 0.78rem;
}

.inbox-item-text {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.inbox-reply {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  text-align: right;
}

/* --- Canned replies rail --- */

.canned-reply-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.canned-reply-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.canned-reply-card:hover {
  border-color: var(--primary);
  background: var(--bg-sunken);
}

.canned-reply-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--bg-sunken);
}

.canned-reply-icon--thanks { background: #d6f5ec; }
.canned-reply-icon--hours { background: #fdead0; }
.canned-reply-icon--info { background: #dbe9ff; }
.canned-reply-icon--glad { background: #ecdfff; }

.canned-reply-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.canned-reply-title {
  font-weight: 700;
  font-size: 0.88rem;
}

.canned-reply-preview {
  color: var(--text-muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.canned-reply-new summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.canned-reply-new summary::-webkit-details-marker {
  display: none;
}

.canned-reply-new summary::after {
  content: "▾";
  color: var(--text-muted);
}

.canned-reply-new[open] summary::after {
  content: "▴";
}

.inbox-footnote {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
