/* css/inbound-mail.css - the forwarding-address screens (js/inbound-mail-ui.js;
   owner 2026-11-10). Light, navy and gold, like the rest of Waypoint OS. */
.im-card { background: #fff; border: 1px solid #e3e8ef; border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; color: #1a2a44; font-size: 14px; }
.im-h { font: 700 17px/1.25 'Playfair Display', Georgia, serif; display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.im-muted { color: #6b7688; font-size: 13px; }
.im-msg:empty { display: none; }
.im-msg { margin: 8px 0; font-weight: 700; color: #157347; }
.im-err { color: #b3261e; }
.im-addr { display: flex; gap: 8px; align-items: center; border: 1px dashed #b89548; background: #fbf7ee; border-radius: 10px; padding: 10px 12px; margin-top: 8px; font: 600 14px ui-monospace, Menlo, monospace; word-break: break-all; }
.im-addr .im-small { margin-left: auto; flex: none; font-family: inherit; }
.im-small { border: 1px solid #d0d5dd; background: #fff; border-radius: 8px; padding: 8px 12px; min-height: 36px; font: 700 13px system-ui, sans-serif; color: #1a2a44; cursor: pointer; }
/* The app's blue, like "Start a document" (owner 2026-11-30). */
.im-primary { border: 0; background: #2563eb; color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .25); border-radius: 10px; padding: 10px 14px; min-height: 40px; font: 700 14px system-ui, sans-serif; cursor: pointer; }
.im-primary:hover:not(:disabled) { background: #1d4ed8; }
.im-primary:disabled, .im-small:disabled { opacity: .55; cursor: default; }
.im-secondary { display: block; width: 100%; border: 1px solid #d0d5dd; background: #fff; color: #1a2a44; border-radius: 10px; padding: 11px; font: 700 14px system-ui, sans-serif; cursor: pointer; margin: 10px 0 4px; }
.im-link { display: block; margin: 10px auto 0; background: none; border: 0; color: #475467; text-decoration: underline; font: 600 14px system-ui, sans-serif; cursor: pointer; }
.im-empty { color: #6b7688; font-size: 13.5px; padding: 10px 0; }
.im-mail { border: 1px solid #e3e8ef; border-radius: 12px; padding: 12px; margin-top: 10px; }
.im-mail.is-held { border-color: #e8d3a3; }
.im-from { font-size: 13px; color: #475467; }
.im-subject { font-size: 13px; color: #6b7688; margin-top: 2px; }
.im-held { display: grid; gap: 6px; background: #fdf6e7; border-radius: 10px; padding: 10px; margin-top: 8px; font-size: 13px; color: #6b4e12; }
.im-own { margin-top: 6px; font-size: 12px; color: var(--muted, #667085); }
.im-held .im-small { justify-self: start; }
.im-file { border-top: 1px solid #eef1f5; margin-top: 10px; padding-top: 10px; }
.im-file-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.im-name { font-weight: 700; word-break: break-word; }
.im-line { margin-top: 4px; }
.im-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.im-pill { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.im-wait { background: #fff4e0; color: #9a5b00; }
.im-ok { background: #e6f4ec; color: #157347; }
.im-muted.im-pill { background: #f2f4f7; color: #475467; }
.im-refused { font-size: 12.5px; color: #6b7688; margin-top: 8px; }
.im-scrim { position: fixed; inset: 0; background: rgba(15, 28, 48, .45); display: flex; align-items: flex-end; justify-content: center; z-index: 9000; }
.im-sheet { background: #fff; color: #1a2a44; width: min(520px, 100%); max-height: 92vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); font-size: 14px; }
@media (min-width: 700px) { .im-scrim { align-items: center; } .im-sheet { border-radius: 16px; } }
.im-sheet h2 { font: 700 22px/1.2 'Playfair Display', Georgia, serif; margin: 0 0 6px; }
.im-choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #e3e8ef; border-radius: 10px; padding: 10px 12px; margin-top: 8px; cursor: pointer; }
.im-choice input { width: 20px; height: 20px; margin-top: 1px; accent-color: #2563eb; flex: none; }
.im-choice > span { display: grid; gap: 2px; }
.im-choice.is-on { border-color: #b89548; background: rgba(184, 149, 72, .10); box-shadow: inset 0 0 0 1px #b89548; }
.im-sub { margin: 6px 0 2px 2px; display: grid; gap: 8px; }
.im-sub select, .im-sub input, .im-label input, .im-label select { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid #d0d5dd; font: 14px system-ui, sans-serif; background: #fff; color: #1a2a44; box-sizing: border-box; }
.im-label { display: grid; gap: 4px; font-weight: 700; font-size: 13px; }
.im-sheet .im-go { display: block; width: 100%; margin-top: 14px; }
/* After filing: the sheet says what happened (owner 2026-11-12). */
.im-done { border-left: 4px solid #2f7d4f; background: #eef7f1; border-radius: 10px; padding: 14px 14px 8px; margin-bottom: 4px; }
.im-done h2 { color: #1f5e39; }
.im-done-line { font-size: 15px; font-weight: 700; color: #1a2a44; line-height: 1.45; margin: 4px 0 8px; }
.im-sheet a.im-go { text-align: center; text-decoration: none; box-sizing: border-box; line-height: 20px; }
.im-same { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #fff7e0; border: 1px solid #ecd28a; color: #6b4e00; font-size: 13px; font-weight: 600; line-height: 1.4; }
/* Done: handled emails, folded under the waiting ones (owner 2026-11-15). */
.im-done-sec { margin-top: 14px; border-top: 1px solid #e3e8ef; padding-top: 12px; }
.im-done-head { color: #6b7688; font-size: 13px; margin-bottom: 8px; }
.im-done-toggle { border: 1px solid #d0d5dd; background: #f7f8fa; border-radius: 8px; padding: 8px 12px; min-height: 40px; font: 700 13.5px system-ui, sans-serif; color: #1a2a44; cursor: pointer; }
.im-done-list .im-mail { background: #fafbfc; }
.im-all-done { color: #2f7d4f; font-weight: 600; }
/* What the file looks like, and why it reopened (owner 2026-11-15). */
.im-recog { margin: 4px 0 10px; padding: 9px 11px; border-radius: 9px; background: #eef4fb; border: 1px solid #c8d8ec; color: #1a2a44; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.im-recog-none { background: #f5f6f8; border-color: #e3e8ef; color: #6b7688; font-weight: 500; }
.im-preset { margin: 0 0 10px; padding: 9px 11px; border-radius: 9px; background: #eef7f1; border: 1px solid #b9dcc6; color: #1f5e39; font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.im-sub[hidden], .im-sheet [hidden] { display: none !important; }
/* A long file name (1100_-_Broker_Compensation_Information_Sheet__Buyer__-_NMAR.pdf)
   wraps instead of widening the phone page (CI 2026-11-15). */
.im-name, .im-subject, .im-from, .im-msg, .im-done-line, .im-sheet p, .im-recog, .im-preset, .im-same, .im-refused, .im-line { overflow-wrap: anywhere; word-break: break-word; }
