.inbox-modal { width: min(720px,calc(100% - 28px)); max-width: 720px; max-height: calc(100vh - 28px); overflow-y: auto; }
.inbox-shell { padding: 28px; }
.inbox-intro { margin: 12px 0 4px; color: #716d79; line-height: 1.5; }
.inbox-access,.inbox-projects { padding: 20px 0; border-top: 1px solid #efedf3; }
.inbox-access { margin-top: 18px; }
.inbox-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.inbox-section-head h3 { margin: 0; color: #393541; font-size: 14px; }
.inbox-section-head p { min-height: 16px; margin: 4px 0 0; color: #8d8994; font-size: 11px; }
.inbox-token-actions,.inbox-instruction-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.inbox-token-actions { flex: 0 0 auto; }
.inbox-instruction { display: grid; gap: 9px; margin-top: 16px; padding: 14px; border: 1px solid #ddd8ef; border-radius: 11px; background: #faf9ff; }
.inbox-instruction label { color: #56505e; font-size: 12px; font-weight: 700; }
#inbox-agent-prompt { width: 100%; min-height: 190px; resize: vertical; border: 1px solid #ded9eb; border-radius: 8px; padding: 11px; background: #fff; color: #393440; font: 11px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; outline: 0; }
#inbox-agent-prompt:focus { border-color: #8c77df; box-shadow: 0 0 0 2px #8c77df22; }
.inbox-instruction-actions small { margin-right: auto; color: #8c8793; line-height: 1.4; }
.inbox-list { display: grid; gap: 8px; margin-top: 14px; }
.inbox-item { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid #e7e4ec; border-radius: 10px; background: #fff; }
.inbox-item-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
.inbox-item strong { overflow: hidden; color: #3f3a45; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item small { overflow: hidden; color: #918c97; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item a { flex: 0 0 auto; padding: 8px 11px; text-decoration: none; }
.inbox-empty { margin: 4px 0 0; padding: 18px; border: 1px dashed #dfdbe7; border-radius: 10px; color: #918d98; text-align: center; }
.inbox-modal .form-error { height: auto; min-height: 16px; margin: 0; }
@media(max-width:560px) {
  .inbox-shell { padding: 22px; }
  .inbox-section-head { align-items: stretch; flex-direction: column; gap: 10px; }
  .inbox-token-actions { justify-content: stretch; }
  .inbox-token-actions button { flex: 1; }
  .inbox-instruction-actions { align-items: stretch; flex-direction: column; }
  .inbox-instruction-actions small { margin: 0; }
  .inbox-item { align-items: stretch; flex-direction: column; }
  .inbox-item a { text-align: center; }
}
