#view-extra-mail{min-width:0;color:#172b47;padding:0!important}#view-extra-mail button:disabled{opacity:.5;cursor:not-allowed}.ex-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 28px;border-bottom:1px solid #e2e8f0;background:#fff}.ex-header h1{font-size:25px;margin:0 0 7px}.ex-subtitle,.ex-meta{font-size:13px;color:#64748b;line-height:1.65;overflow-wrap:anywhere}.ex-subtitle{max-width:700px}.ex-wrap{padding:24px 28px;max-width:1600px;width:100%;box-sizing:border-box}.ex-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ex-actions button,.ex-connection button{white-space:normal}.ex-accounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.ex-account-card{background:#fff;border:1px solid #dfe7f0;border-radius:14px;padding:20px;min-width:0}.ex-account-card h2{font-size:17px;margin:13px 0;overflow-wrap:anywhere}.ex-card-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.ex-provider{font-size:12px;font-weight:600;color:#64748b}.ex-badge{font-size:11px;font-weight:600;border-radius:20px;padding:3px 9px;color:#64748b;background:#f1f5f9}.ex-ready{background:#e7f6ef;color:#17734b}.ex-working{background:#eaf1ff;color:#2458b8}.ex-account-card details{margin-top:16px;border-top:1px solid #e2e8f0;padding-top:13px}.ex-account-card summary{cursor:pointer;font-weight:600;font-size:13px;color:#315ea9}.ex-connection{margin-top:12px}.ex-connection label{display:block;font-size:13px;font-weight:600;margin:12px 0 6px}.ex-connection input,.ex-connection select,.ex-filters input[type=search],.ex-filters select{width:100%;min-width:0;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px;background:#fff;color:#172b47;font-size:14px}.ex-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}.ex-filters select{flex:1;min-width:180px;max-width:320px}.ex-filters input[type=search]{flex:2;min-width:180px}.ex-check{display:flex;gap:7px;align-items:center;font-size:13px;white-space:nowrap}.ex-notice{border-radius:10px;padding:13px 16px;margin-bottom:18px;background:#eaf3ff;color:#234f8c;line-height:1.5;overflow-wrap:anywhere}.ex-error{background:#fff0ee;color:#a1382b}.ex-inline-error{font-size:13px;color:#a1382b;overflow-wrap:anywhere}.ex-list{border:1px solid #dfe7f0;border-radius:12px;overflow:hidden;background:#fff}.ex-message{display:flex;width:100%;flex-direction:column;gap:7px;text-align:left;background:#fff;padding:18px 22px;border:0;border-bottom:1px solid #e9edf4;cursor:pointer;color:#253b58;font:inherit;min-width:0;overflow-wrap:anywhere}.ex-message:last-child{border-bottom:0}.ex-message:hover{background:#f5f8fd}.ex-message:focus-visible{outline:2px solid #3b76ce;outline-offset:-3px}.ex-message.ex-unread{border-left:3px solid #3373c8;background:#f8fbff}.ex-message strong{font-size:15px}.ex-message-top{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;font-size:13px;color:#64748b;min-width:0}.ex-message-top span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ex-message-top time{flex-shrink:0;font-size:12px}.ex-preview{color:#6d7d91;font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;overflow-wrap:anywhere}.ex-empty{text-align:center;padding:45px 20px;color:#64748b}.ex-empty h2{font-size:19px;color:#253b58;margin:0 0 12px}.ex-pager{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:16px 0 24px;font-size:13px;color:#64748b}.ex-history{background:#fff;border:1px solid #dfe7f0;border-radius:12px;padding:18px;font-size:13px;overflow-wrap:anywhere}.ex-history summary{font-weight:600;cursor:pointer}.ex-history p{line-height:1.7}.ex-dialog{border:0;border-radius:14px;width:min(820px,calc(100vw - 32px));max-height:88vh;box-sizing:border-box;padding:25px;color:#253b58;box-shadow:0 20px 80px #172b4744}.ex-dialog::backdrop{background:#172b4777}.ex-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.ex-dialog-head h2{font-size:19px;overflow-wrap:anywhere;min-width:0;margin:0}.ex-dialog-head button{flex-shrink:0}.ex-body{font-family:inherit;font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;border-top:1px solid #e2e8f0;padding-top:20px;margin:20px 0}.ex-loading{padding:20px;color:#64748b}#view-extra-mail [hidden]{display:none!important}@media(max-width:1150px){.ex-accounts{grid-template-columns:1fr}.ex-account-card .ex-actions{margin-top:10px}}@media(max-width:600px){.ex-header{padding:20px 16px;flex-direction:column}.ex-header h1{font-size:22px}.ex-wrap{padding:18px 14px}.ex-account-card{padding:16px}.ex-header>.ex-actions{width:100%}.ex-header>.ex-actions button{flex:1}.ex-filters select{max-width:none}.ex-filters button{width:100%}.ex-message{padding:15px}.ex-message-top{flex-direction:column;align-items:flex-start;gap:4px}.ex-message-top span{white-space:normal;overflow-wrap:anywhere;max-width:100%}.ex-pager{flex-wrap:wrap}.ex-dialog{padding:18px;width:calc(100vw - 20px);max-height:92vh}.ex-dialog-head h2{font-size:17px}.ex-check{white-space:normal}}

/* Clear unread state and header-level actions, including touch targets. */
.ex-folders{display:flex;gap:8px;margin:0 0 14px;flex-wrap:wrap}.ex-folders .active{background:#2459e8!important;color:#fff!important;border-color:#2459e8!important}
.ex-message{cursor:default;padding:0;border-left:6px solid transparent;gap:0}.ex-message-open{display:flex;flex-direction:column;gap:7px;width:100%;min-width:0;text-align:left;background:transparent;border:0;padding:18px 20px 10px;color:inherit;font:inherit;cursor:pointer;overflow-wrap:anywhere}.ex-message-open strong{font-weight:650}
.ex-message.ex-unread{border-left:6px solid #2459e8;background:#dfebff}.ex-message.ex-unread:hover{background:#d4e4ff}.ex-message.ex-unread .ex-message-open strong{font-weight:800;color:#123878;font-size:16px}.ex-unread .ex-message-top{color:#284d85}.ex-unread .ex-preview{color:#345783}
.ex-message-status{display:flex;gap:8px;flex-wrap:wrap}.ex-message-status:empty{display:none}.ex-unread-badge{display:inline-flex;align-items:center;background:#2154cb;color:#fff;font-size:12px;font-weight:750;border-radius:5px;padding:4px 8px}.ex-spam-badge{background:#fff1de;color:#8a4310;padding:4px 8px;border-radius:5px;font-size:12px;font-weight:700}
.ex-message-actions{display:flex;gap:8px;flex-wrap:wrap;padding:0 20px 15px}.ex-message-actions .btn{min-height:40px;padding:8px 12px;font-size:13px;background:#fff}.ex-message-actions .ex-spam-action{color:#a12c24;border-color:#e5bcb8}.ex-message-open:focus-visible,.ex-message-actions button:focus-visible{outline:3px solid #194ac2;outline-offset:-3px}
@media(max-width:600px){.ex-message{padding:0}.ex-message-open{padding:14px 12px 10px}.ex-message-actions{padding:0 12px 14px}.ex-message-actions .btn{min-height:44px}.ex-message-actions .ex-read-action{flex:1}.ex-message-open strong{overflow-wrap:anywhere}}
