/* Notifications - compose form + in-app sent log. */

.ntf-header { display: flex; align-items: center; gap: 12px; }
.ntf-source { font-size: 11px; font-weight: 600; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 999px; padding: 2px 10px; cursor: help; }
.ntf-subtitle { color: var(--text-secondary); font-size: 14px; margin: 4px 0 16px; max-width: 66ch; }

.ntf-form { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 22px; }
.ntf-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 12px; }
.ntf-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.ntf-f[hidden] { display: none; } /* [hidden] must beat the flex display above */
.ntf-f > span:first-child { color: var(--text-secondary); }
.ntf-f--wide { width: 100%; }
.ntf-f select, .ntf-f textarea { background: var(--bg); color: var(--text-primary); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 13px; }
.ntf-f select { min-width: 200px; }
.ntf-f textarea { width: 100%; resize: vertical; font-family: inherit; }
.ntf-preview { font-size: 12px; color: var(--text-secondary); align-self: center; }
.ntf-actions { margin-top: 4px; }
.ntf-send { background: var(--accent); color: #1a1a1a; border: 1px solid var(--accent); border-radius: 8px; padding: 8px 20px; font-weight: 600; font-size: 13px; cursor: pointer; }
.ntf-send:hover { background: var(--accent-hover); }

.ntf-log-title { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.ntf-empty { color: var(--text-secondary); font-size: 13px; }
.ntf-table-wrap { overflow-x: auto; }
.ntf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ntf-table th, .ntf-table td { border-bottom: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.ntf-table th { color: var(--text-secondary); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.ntf-time { color: var(--text-secondary); white-space: nowrap; }
.ntf-msg { color: var(--text-secondary); max-width: 52ch; }
.ntf-count { color: var(--accent); font-weight: 600; }
.ntf-chan { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; border-radius: 4px; padding: 1px 6px; border: 1px solid var(--border); white-space: nowrap; }
.ntf-chan--sms { color: var(--success); border-color: color-mix(in srgb, var(--success) 45%, transparent); }
.ntf-chan--email { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.ntf-chan--in_app { color: var(--text-secondary); }

.ntf-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surface); color: var(--text-primary); border: 1px solid var(--accent);
  border-radius: 8px; padding: 10px 16px; font-size: 13px; z-index: 9999; box-shadow: 0 8px 24px rgba(0,0,0,0.3); max-width: 90vw; text-align: center;
}
