/* The demo inbox panel: what this visitor would have received. Nothing is really sent. Themed by the mood tokens. */
.inbox-tab { position: relative; }
.inbox-tab svg { flex: none; }
.inbox-count { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: .78rem; font-weight: 700; border-radius: 11px; }
.inbox-count:empty { display: none; }
.dock .inbox-tab.pulse { animation: inbox-pulse 1.1s ease-in-out 2; }
@keyframes inbox-pulse { 50% { transform: translateY(-6px); } }
.inbox { position: fixed; z-index: 95; left: 14px; bottom: 14px; width: min(440px, calc(100vw - 28px)); height: min(680px, calc(100vh - 28px)); height: min(680px, calc(100dvh - 28px)); display: grid; grid-template-rows: auto auto auto 1fr; background: var(--ground); border: 1.5px solid var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); color: var(--ink); }
.inbox[hidden] { display: none; }
.inbox > header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--ink); color: var(--ground); }
.inbox > header h2 { font: 600 1.1rem/1.25 var(--font-display); font-style: normal; font-variation-settings: "opsz" 28; letter-spacing: 0; margin-right: auto; }
.inbox-close { min-height: 38px; padding: 4px 14px; background: none; border: 1.5px solid var(--ground); color: var(--ground); font-weight: 600; cursor: pointer; }
.inbox-close:hover { background: var(--ground); color: var(--ink); }
.inbox-who { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.inbox-who input { min-height: 40px; padding: 6px 10px; font-size: .95rem; background: var(--ground); border: 1.5px solid var(--ink); color: var(--ink); }
.inbox-note { padding: 8px 14px; font-size: .82rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.inbox-list { overflow-y: auto; padding: 14px; display: grid; gap: 16px; align-content: start; overscroll-behavior: contain; background: var(--ground-2); }
.msg { display: grid; gap: 6px; }
.msgmeta { font-size: .76rem; color: var(--ink-2); }
.msgsample { font-size: .72rem; color: var(--ink-2); font-weight: 600; }
.msg.mail { background: #fffdf8; color: #1a1a1a; border: 1.5px solid var(--ink); padding: 0; gap: 0; }
.msg.mail .msgmeta { padding: 8px 12px 0; color: #555; }
.msg.mail .mailhead { display: grid; gap: 2px; padding: 6px 12px 10px; border-bottom: 1px solid #ddd; }
.msg.mail .mailhead strong { font-size: .8rem; }
.msg.mail .mailhead span { font: 500 1.1rem/1.25 var(--font-display); font-variation-settings: "opsz" 28; }
.msg.mail .mailbody { padding: 12px; white-space: pre-line; font-size: .93rem; overflow-wrap: anywhere; }
.msg.mail .mailcta { margin: 0 12px 12px; justify-self: start; }
.msg.mail .msgsample { padding: 0 12px 10px; color: #555; }
.msg.sms .bubble { background: #2b2b2b; color: #fff; border-radius: 16px 16px 16px 4px; padding: 10px 14px; max-width: 92%; white-space: pre-line; font-size: .93rem; overflow-wrap: anywhere; }
.mailcta { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; background: #1a1a1a; color: #fff; border: 0; font-weight: 700; text-decoration: none; cursor: pointer; }
a.mailcta:hover, button.mailcta:hover { background: var(--accent); color: var(--on-accent); }
button.mailcta[disabled] { opacity: .5; }
.scheduled { border: 1.5px dashed var(--ink); padding: 12px; display: grid; gap: 10px; }
.scheduled ul { display: grid; gap: 8px; font-size: .88rem; }
.scheduled li { display: grid; gap: 1px; }
@media (max-width: 520px) { .inbox { left: 0; right: 0; bottom: 0; width: 100%; height: 86dvh; border-width: 1.5px 0 0; } }
