/* Email watch cards (web/js/inbox.js). A compact tray in the top right corner,
   same black glass and hairline look as the Deck, readable over the board too. */
.inbox-tray {
  position: fixed;
  top: calc(64px + env(safe-area-inset-top));
  right: 12px;
  z-index: 60;
  width: min(360px, calc(100vw - 24px));
  max-height: calc(var(--app-height, 100dvh) - 140px);
  display: flex;
  flex-direction: column;
  background: rgba(12, 11, 17, .92);
  border: 1px solid rgba(140, 148, 224, .28);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  color: #f7f6f4;
  font-size: 14px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.inbox-tray[hidden] { display: none; }
.inbox-head {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 10px 12px;
  background: none; border: 0; color: inherit; font: inherit; font-weight: 600;
  cursor: pointer; text-align: left;
}
.inbox-head-icon { color: #5da8f7; display: inline-flex; }
.inbox-head-text { flex: 1; }
.inbox-chevron { display: inline-flex; color: #9aa0b5; transition: transform .2s; }
.inbox-tray.collapsed .inbox-chevron { transform: rotate(-90deg); }
.inbox-tray.collapsed .inbox-body { display: none; }
.inbox-body { overflow-y: auto; padding: 0 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.inbox-warn {
  padding: 8px 10px; border-radius: 10px;
  background: rgba(228, 138, 60, .14); border: 1px solid rgba(228, 138, 60, .4); color: #f4c79a;
  font-size: 13px;
}
.inbox-card {
  padding: 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(132, 124, 196, .15);
}
.inbox-who { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.inbox-tag {
  font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
  background: rgba(93, 168, 247, .16); color: #9cc9fb;
}
.inbox-line { margin-top: 3px; line-height: 1.4; }
.inbox-why { margin-top: 3px; font-size: 12.5px; color: #9aa0b5; line-height: 1.35; }
.inbox-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.inbox-btn {
  appearance: none; border: 1px solid rgba(140, 148, 224, .28); background: transparent; color: #f7f6f4;
  font: inherit; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; cursor: pointer;
  text-decoration: none; line-height: 1.3;
}
.inbox-btn:hover { background: rgba(255, 255, 255, .06); }
.inbox-btn.primary { background: #4a3fbf; border-color: #4a3fbf; }
.inbox-btn.primary:hover { background: #5a4fd0; }
.inbox-btn.quiet { color: #9aa0b5; }
.inbox-change { display: flex; gap: 6px; margin-top: 8px; }
.inbox-change[hidden] { display: none; }
.inbox-change input {
  flex: 1; min-width: 0; padding: 6px 8px; border-radius: 8px;
  border: 1px solid rgba(140, 148, 224, .28); background: rgba(0, 0, 0, .35); color: #f7f6f4; font: inherit; font-size: 13px;
}
@media (max-width: 768px) {
  .inbox-tray { top: calc(56px + env(safe-area-inset-top)); right: 8px; width: calc(100vw - 16px); max-height: 45vh; }
}
