:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f4f6fb; color: #1c2433; }
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 14px 40px; }
header h1 { margin: 0; font-size: 28px; }
.sub { color: #5b6b82; margin: 4px 0 18px; }
.card { background: #fff; border: 1px solid #e3e8f0; border-radius: 14px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(16,24,40,.06); }
label { font-weight: 600; font-size: 13px; color: #44506a; display: block; margin-bottom: 6px; }
.addr-row, .custom-row { display: flex; gap: 8px; }
.custom-row { margin-top: 8px; }
input[type=text] { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font-size: 15px; }
button { padding: 10px 14px; border: 0; border-radius: 9px; background: #2563eb; color: #fff; font-weight: 600; cursor: pointer; }
button:hover { background: #1d4ed8; }
button.secondary { background: #e8edf5; color: #1c2433; }
button.secondary:hover { background: #dbe3ef; }
button.danger { background: #dc2626; }
button.small { padding: 6px 10px; font-size: 13px; }
.meta { color: #6b7a90; font-size: 13px; margin: 10px 0 0; }
.inbox-head { display: flex; justify-content: space-between; align-items: center; }
.inbox-head h2 { margin: 0; font-size: 18px; }
.badge { background: #2563eb; color: #fff; border-radius: 20px; padding: 2px 9px; font-size: 13px; }
.status { color: #6b7a90; font-size: 14px; margin: 10px 0; }
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox li { border-top: 1px solid #edf0f5; padding: 12px 4px; cursor: pointer; }
.inbox li:hover { background: #f8fafc; }
.inbox .subj { font-weight: 600; }
.inbox .from { color: #5b6b82; font-size: 13px; }
.inbox .snippet { color: #6b7a90; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox .otp-chip { display: inline-block; background: #dcfce7; color: #166534; border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 700; margin-left: 6px; }
.inbox .date { float: right; color: #94a3b8; font-size: 12px; }
.reader { background: #fff; border: 1px solid #e3e8f0; border-radius: 14px; padding: 16px; }
.reader-head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.otp { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 16px; }
.otp b { font-size: 22px; letter-spacing: 2px; }
.msg-body { border-top: 1px solid #edf0f5; padding-top: 12px; white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.6; }
.msg-body iframe { border: 0; width: 100%; min-height: 400px; }
.hint { color: #6b7a90; font-size: 13px; margin: 6px 0 0; }
.addr-list { list-style: none; margin: 8px 0 0; padding: 0; }
.addr-list .empty { color: #6b7a90; font-size: 14px; padding: 6px 0; }
.addr-item { display: flex; align-items: center; gap: 8px; border-top: 1px solid #edf0f5; padding: 10px 6px; cursor: pointer; }
.addr-item:hover { background: #f8fafc; }
.addr-item.active { background: #eff6ff; border-radius: 8px; }
.addr-item .a-addr { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-item .a-count { color: #2563eb; font-size: 12px; font-weight: 700; white-space: nowrap; }
.addr-item .a-del { background: none; color: #94a3b8; padding: 2px 8px; font-size: 14px; }
.addr-item .a-del:hover { background: #fee2e2; color: #dc2626; }
.hidden { display: none; }
footer { text-align: center; color: #94a3b8; }
