/* PulseBot v24.1 — quieter ticket inbox, aligned with the rest of the dashboard. */
body#pulsebot-app .ticket-inbox {
  margin: 0 0 22px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background: #0d1218;
  overflow: hidden;
}

body#pulsebot-app .ticket-inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 19px 21px 17px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}
body#pulsebot-app .ticket-inbox-head > div { min-width: 0; }
body#pulsebot-app .ticket-inbox-head h3 {
  margin: 0;
  color: #edf1f6;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.01em;
}
body#pulsebot-app .ticket-inbox-head p {
  max-width: 720px;
  margin: 5px 0 0;
  color: #8994a2;
  font-size: 11px;
  line-height: 1.5;
}
body#pulsebot-app .ticket-inbox-head > .btn {
  flex: 0 0 auto;
  min-height: 34px;
}

body#pulsebot-app .ticket-inbox-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255,255,255,.055);
}
body#pulsebot-app .ticket-inbox-metrics > div {
  min-width: 0;
  padding: 13px 19px 14px;
  border-right: 1px solid rgba(255,255,255,.05);
}
body#pulsebot-app .ticket-inbox-metrics > div:last-child { border-right: 0; }
body#pulsebot-app .ticket-inbox-metrics span {
  display: block;
  color: #75808e;
  font-size: 10px;
  line-height: 1.3;
}
body#pulsebot-app .ticket-inbox-metrics strong {
  display: block;
  margin-top: 4px;
  color: #edf1f6;
  font-size: 18px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* Tabs are navigation, not CTA buttons. */
body#pulsebot-app .ticket-inbox-tabs {
  display: flex;
  gap: 20px;
  min-height: 45px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow-x: auto;
  scrollbar-width: none;
}
body#pulsebot-app .ticket-inbox-tabs::-webkit-scrollbar { display: none; }
body#pulsebot-app .ticket-inbox-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-height: 45px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #7f8997;
  font: inherit;
  font-size: 11px;
  font-weight: 560;
  cursor: pointer;
  transition: color .14s ease;
}
body#pulsebot-app .ticket-inbox-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
}
body#pulsebot-app .ticket-inbox-tabs button:hover { color: #c6ced8; }
body#pulsebot-app .ticket-inbox-tabs button:focus-visible {
  outline: 2px solid rgba(82,130,234,.45);
  outline-offset: -4px;
}
body#pulsebot-app .ticket-inbox-tabs button.is-active {
  color: #edf2f8;
  font-weight: 650;
}
body#pulsebot-app .ticket-inbox-tabs button.is-active::after { background: #4f7fe8; }

body#pulsebot-app .ticket-inbox-state {
  padding: 30px 22px;
  color: #7e8997;
  font-size: 11px;
  text-align: center;
}
body#pulsebot-app .ticket-inbox-list { display: grid; }
body#pulsebot-app .ticket-inbox-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.45fr) minmax(150px, .8fr) minmax(150px, .65fr) auto;
  gap: 17px;
  align-items: center;
  min-width: 0;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background-color .12s ease;
}
body#pulsebot-app .ticket-inbox-row:last-child { border-bottom: 0; }
body#pulsebot-app .ticket-inbox-row:hover { background: rgba(255,255,255,.016); }
body#pulsebot-app .ticket-inbox-main,
body#pulsebot-app .ticket-inbox-response,
body#pulsebot-app .ticket-inbox-status { min-width: 0; }
body#pulsebot-app .ticket-inbox-titleline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body#pulsebot-app .ticket-inbox-titleline strong {
  min-width: 0;
  overflow: hidden;
  color: #e7ebf1;
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body#pulsebot-app .ticket-inbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 5px;
  color: #717c89;
  font-size: 10px;
}
body#pulsebot-app .ticket-priority {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 5px;
  color: #87919e;
  font-size: 9px;
  font-weight: 650;
}
body#pulsebot-app .ticket-priority.is-high { border-color: rgba(79,128,244,.18); color: #8caaff; }
body#pulsebot-app .ticket-priority.is-urgent { border-color: rgba(235,87,87,.22); color: #e79090; }
body#pulsebot-app .ticket-inbox-response > span {
  display: block;
  color: #bfc7d1;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
body#pulsebot-app .ticket-inbox-response > small {
  display: block;
  margin-top: 4px;
  color: #727d8b;
  font-size: 9px;
}
body#pulsebot-app .ticket-workflow-select {
  width: 100%;
  min-height: 33px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 6px;
  background: #0a0f15;
  color: #c2cad4;
  font: inherit;
  font-size: 10px;
}
body#pulsebot-app .ticket-workflow-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 6px;
  background: rgba(255,255,255,.025);
  color: #929dab;
  font-size: 10px;
  font-weight: 600;
}
body#pulsebot-app .ticket-inbox-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
body#pulsebot-app .ticket-inbox-actions .btn { min-height: 32px; }
body#pulsebot-app .ticket-inbox-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 11px 16px;
  border-top: 1px solid rgba(255,255,255,.05);
  color: #778290;
  font-size: 10px;
}
body#pulsebot-app .ticket-inbox-retention {
  padding: 9px 20px 11px;
  border-top: 1px solid rgba(255,255,255,.045);
  color: #697482;
  font-size: 9px;
  line-height: 1.45;
}
body#pulsebot-app .ticket-inbox-retention[hidden] { display: none; }

@media (max-width: 1050px) {
  body#pulsebot-app .ticket-inbox-row {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, .7fr) minmax(150px, .7fr);
  }
  body#pulsebot-app .ticket-inbox-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 720px) {
  body#pulsebot-app .ticket-inbox-head { align-items: flex-start; padding: 17px; }
  body#pulsebot-app .ticket-inbox-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body#pulsebot-app .ticket-inbox-metrics > div:nth-child(2) { border-right: 0; }
  body#pulsebot-app .ticket-inbox-metrics > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.05); }
  body#pulsebot-app .ticket-inbox-tabs { gap: 18px; padding: 0 16px; }
  body#pulsebot-app .ticket-inbox-row { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
  body#pulsebot-app .ticket-inbox-actions { grid-column: auto; }
  body#pulsebot-app .ticket-inbox-actions .btn { flex: 1; justify-content: center; }
  body#pulsebot-app .ticket-inbox-retention { padding-left: 16px; padding-right: 16px; }
}

/* v24.3 — compact Premium hint for assignment */
body#pulsebot-app .ticket-inbox-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border-top: 1px solid rgba(255,255,255,.05);
  background: rgba(111,158,245,.025);
}
body#pulsebot-app .ticket-inbox-premium[hidden] { display: none; }
body#pulsebot-app .ticket-inbox-premium>div { display: grid; gap: 2px; }
body#pulsebot-app .ticket-inbox-premium strong { color: #bac5d2; font-size: 10px; font-weight: 620; }
body#pulsebot-app .ticket-inbox-premium span { color: #707c8a; font-size: 9px; }
body#pulsebot-app .ticket-inbox-premium .btn { color: #9eb9e8; border-color: rgba(111,158,245,.16); }
@media(max-width:720px){body#pulsebot-app .ticket-inbox-premium{align-items:flex-start;flex-direction:column}body#pulsebot-app .ticket-inbox-premium .btn{width:100%;justify-content:center}}
