.mx{display:grid;grid-template-columns:200px minmax(260px,340px) minmax(0,1fr);height:calc(100vh - 230px);min-height:480px}
.mx-side{display:flex;flex-direction:column;gap:3px;padding:12px 10px;border-right:1px solid var(--line);min-width:0}
.mx-me{display:flex;align-items:center;gap:7px;margin:0 4px 10px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;font:500 11px 'IBM Plex Mono',monospace;color:var(--muted);min-width:0}
.mx-me span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mx-me svg.lucide{width:13px;height:13px;flex-shrink:0;color:var(--accent-hi)}
.mx-f{display:flex;align-items:center;gap:10px;width:100%;padding:9px 11px;border:0;border-radius:8px;background:none;color:var(--muted);cursor:pointer;font:inherit;font-size:13px;text-align:left}
.mx-f:hover{background:rgba(255,255,255,.03);color:var(--text)}
.mx-f.on{background:var(--accent-bg);color:var(--text)}
.mx-f svg.lucide{width:15px;height:15px}
.mx-f span{flex:1}
.mx-f b{min-width:20px;padding:1px 7px;border-radius:999px;background:var(--accent);color:#fff;font:600 11px 'IBM Plex Mono',monospace;text-align:center}
.mx-list{display:flex;flex-direction:column;border-right:1px solid var(--line);min-width:0;min-height:0}
.mx-search{display:flex;align-items:center;gap:8px;margin:10px;padding:0 10px;height:34px;border:1px solid var(--line-2);border-radius:8px}
.mx-search svg.lucide{width:14px;height:14px;color:var(--dim)}
.mx-search input{flex:1;min-width:0;border:0;background:none;outline:0;color:var(--text);font:inherit;font-size:13px}
.mx-items{flex:1;overflow:auto;border-top:1px solid var(--line)}
.mx-item{display:grid;gap:3px;width:100%;padding:11px 14px;border:0;border-bottom:1px solid var(--line);border-left:3px solid transparent;background:none;color:inherit;cursor:pointer;font:inherit;text-align:left}
.mx-item:hover{background:rgba(255,255,255,.025)}
.mx-item.on{background:var(--accent-bg);border-left-color:var(--accent)}
.mx-row1,.mx-row2{display:flex;align-items:center;gap:6px;min-width:0}
.mx-who{flex:1;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mx-item.unread .mx-who,.mx-item.unread .mx-subj{font-weight:700;color:var(--text)}
.mx-item.unread .mx-who:before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:var(--accent-hi);vertical-align:1px}
.mx-date{font:500 11px 'IBM Plex Mono',monospace;color:var(--dim);white-space:nowrap}
.mx-subj{flex:1;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mx-prev{font-size:11.5px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mx-imp,.mx-flag{display:inline-grid;place-items:center;flex-shrink:0}
.mx-imp svg.lucide,.mx-flag svg.lucide{width:13px;height:13px}
.mx-imp.hi{color:var(--danger)}
.mx-imp.lo{color:var(--dim)}
.mx-flag{color:var(--warn)}
.mx-flag svg.lucide{fill:currentColor}
.mx-read{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto;padding:16px 22px}
.mx-tools{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.mx-tools .btn.on{border-color:var(--warn);color:var(--warn)}
.mx-back{display:none}
.mx-title{margin:16px 0 12px;font-size:20px;line-height:1.3;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.mx-head{display:grid;gap:5px;padding:12px 14px;margin-bottom:16px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.015);font-size:13px}
.mx-head span{display:inline-block;width:46px;color:var(--dim);font-size:11.5px;text-transform:uppercase;letter-spacing:1px}
.mx-head em{font-style:normal;color:var(--muted);font-family:'IBM Plex Mono',monospace;font-size:12px}
.mx-body{white-space:pre-wrap;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.mx-empty{display:grid;justify-items:center;gap:6px;padding:46px 18px;text-align:center;color:var(--muted);font-size:12.5px;margin:auto}
.mx-empty svg.lucide{width:26px;height:26px;color:var(--dim)}
.mx-empty b{color:var(--text);font-size:14px}
.mx-to{position:relative}
.mx-suggest{position:absolute;left:0;right:0;top:100%;z-index:5;margin-top:4px;padding:4px;border:1px solid var(--line-2);border-radius:9px;background:var(--panel);box-shadow:0 14px 36px rgba(0,0,0,.45)}
.mx-suggest button{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:8px 10px;border:0;border-radius:6px;background:none;color:var(--text);cursor:pointer;font:inherit;text-align:left}
.mx-suggest button:hover{background:var(--accent-bg)}
.mx-suggest b{font:500 12.5px 'IBM Plex Mono',monospace}
.mx-suggest span{font-size:11.5px;color:var(--muted)}
@media (max-width:1100px){.mx{grid-template-columns:170px minmax(220px,280px) minmax(0,1fr)}}
@media (max-width:860px){
  .mx{grid-template-columns:1fr;height:auto;min-height:0}
  .mx-side{flex-direction:row;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--line)}
  .mx-me{width:100%;margin:0 0 6px}
  .mx-f{width:auto;flex:1 1 auto;padding:7px 10px}
  .mx-list{border-right:0;max-height:none}
  .mx-items{max-height:none}
  .mx-read{display:none;padding:14px}
  .mx.reading .mx-list{display:none}
  .mx.reading .mx-read{display:flex}
  .mx-back{display:inline-grid}
}
