/* Riven Mail — Batch 3 finish styles: server drafts, unified inbox, labels, ICS, a11y. */

.draft-state { font-size: 12px; color: #7c8b91; margin-left: 8px; }
.draft-state.ok { color: #059669; }
.draft-state.conflict { color: #b45309; }
.draft-conflict { background: #fff7e6; border: 1px solid #f0c36d; color: #7a4a00; padding: 8px 10px; border-radius: 8px; margin-bottom: 10px; font-size: 13px; }
.draft-conflict button { margin-left: 8px; border: 1px solid #d9a13b; background: #fff; border-radius: 6px; padding: 2px 8px; cursor: pointer; }
html[data-theme="dark"] .draft-conflict { background: #2a2113; border-color: #6b5322; color: #f0d59b; }

#unified-btn { width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; color: #33424a; }
#unified-btn:hover { background: #eef3f4; }
html[data-theme="dark"] #unified-btn { color: #c7d6dc; }
html[data-theme="dark"] #unified-btn:hover { background: #1b2a31; }

#server-labels .label-chip .count { color: #8a9aa1; font-size: 11px; margin-left: 4px; }
#apply-label-btn { margin: 6px 6px 10px 0; }

.calendar-ics-box { background: #f5f9f7; border: 1px solid #cfe3d8; border-radius: 10px; padding: 10px 12px; margin: 8px 0 12px; font-size: 13px; color: #254538; }
.calendar-ics-box a { margin-left: 8px; }
html[data-theme="dark"] .calendar-ics-box { background: #14241c; border-color: #2d4a3c; color: #c9e5d6; }

#compose-identity { margin-left: 8px; padding: 2px 6px; border: 1px solid #cfd8db; border-radius: 6px; font: inherit; font-size: 12px; }
html[data-theme="dark"] #compose-identity { background: #101a1f; color: #dbe6ea; border-color: #2a3c45; }

/* reduced motion + contrast */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  .recipient-chip, .label-chip, .saved-search { border: 1px solid #33424a; }
  button:focus-visible, a:focus-visible { outline-width: 4px !important; }
}
