.inbox { --surface: #fff; --text: #0f172a; --muted: #64748b; --border: #e2e8f0; --accent: #2563eb; --unread: #2563eb; box-sizing: border-box; width: min(44rem, calc(100vw - 2rem)); font-family: system-ui, sans-serif; color: var(--text); } .inbox-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; } .inbox-header h1 { margin: 0; } .inbox-logout { margin: 0 0 0 auto; } .inbox-logout button { padding: 0.45rem 0.9rem; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); font: 600 0.9rem/1.2 system-ui, sans-serif; cursor: pointer; } .inbox-logout button:hover { color: var(--text); } .inbox-logout button:focus-visible { outline: 3px solid rgb(37 99 235 / 0.5); outline-offset: 2px; } .inbox-header label { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; } .inbox-header input { accent-color: var(--accent); } .inbox-status:empty { display: none; } .inbox-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0 0; padding: 0; list-style: none; } .inbox-item { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.25rem; border-left: 4px solid var(--unread); border-radius: 0.75rem; background: var(--surface); box-shadow: 0 2px 10px rgb(0 0 0 / 0.08); } .inbox-item.is-read { border-left-color: var(--border); opacity: 0.8; } .inbox-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; } .inbox-meta strong { overflow-wrap: anywhere; } .inbox-meta time { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; } .inbox-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; } .inbox-agent { margin: 0; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; } .inbox-mark-read { align-self: flex-end; padding: 0.5rem 1rem; border: none; border-radius: 999px; background: var(--accent); color: #fff; font: 600 0.9rem/1.2 system-ui, sans-serif; cursor: pointer; } .inbox-mark-read:disabled { opacity: 0.6; cursor: wait; } .inbox-mark-read:focus-visible { outline: 3px solid rgb(37 99 235 / 0.5); outline-offset: 2px; } .inbox-read { align-self: flex-end; color: var(--muted); font-size: 0.9rem; } @media (prefers-color-scheme: dark) { .inbox { --surface: #0f172a; --text: #e2e8f0; --muted: #94a3b8; --border: #334155; --accent: #3b82f6; --unread: #60a5fa; } }