.ml-shell { max-width: 1180px; margin: 0 auto; }
.ml-toolbar { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.ml-toolbar h2 { margin:.15rem 0 .35rem; font-size:1.55rem; color:var(--text-primary); }
.ml-eyebrow { margin:0; color:var(--accent-blue); font-size:.68rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.ml-subtitle { margin:0; color:#64748b; font-size:.82rem; }
.ml-tabs { display:flex; gap:.4rem; padding:.3rem; margin-bottom:.7rem; background:var(--bg-secondary); border:1px solid var(--border-color); border-radius:10px; width:max-content; max-width:100%; }
.ml-tabs button { min-height:44px; border:0; border-radius:7px; padding:.5rem .8rem; color:#64748b; background:transparent; cursor:pointer; font-weight:650; }
.ml-tabs button.active { color:#fff; background:var(--accent-blue); }
.ml-feedback { min-height:1.3rem; margin-bottom:.45rem; color:#64748b; font-size:.76rem; }
.ml-list { display:grid; gap:.75rem; }
.ml-load-more { justify-self:center; min-height:44px; margin:.25rem 0 .5rem; }
.ml-card { padding:1rem 1.05rem; background:var(--bg-card); border:1px solid var(--border-color); border-radius:12px; box-shadow:var(--shadow-sm); }
.ml-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.ml-card h3 { margin:.18rem 0 0; color:var(--text-primary); font-size:1rem; }
.ml-source { color:var(--accent-blue); font-size:.67rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.ml-status { flex:0 0 auto; padding:.25rem .52rem; border-radius:999px; background:#eef2ff; color:#4338ca; font-size:.67rem; font-weight:750; }
.ml-status.contacted { background:#ecfeff; color:#0e7490; }
.ml-status.won { background:#ecfdf5; color:#047857; }
.ml-status.lost { background:#fef2f2; color:#b91c1c; }
.ml-meta { display:flex; flex-wrap:wrap; gap:.35rem .8rem; margin-top:.65rem; color:#64748b; font-size:.72rem; }
.ml-excerpt { margin:.7rem 0; padding:.65rem .75rem; color:var(--text-primary); background:var(--bg-secondary); border-radius:8px; font-size:.8rem; line-height:1.5; overflow-wrap:anywhere; }
.ml-contacts { display:flex; flex-wrap:wrap; gap:.4rem; }
.ml-contact { min-height:44px; display:inline-flex; align-items:center; gap:.3rem; padding:.36rem .55rem; color:var(--accent-blue); background:rgba(59,130,246,.08); border-radius:7px; font-size:.72rem; text-decoration:none; overflow-wrap:anywhere; }
.ml-no-contact { margin:.6rem 0; color:var(--text-muted); font-size:.74rem; }
.ml-assignment { display:flex; align-items:center; gap:.55rem; margin-top:.8rem; padding-top:.75rem; border-top:1px solid var(--border-color); }
.ml-assignment > label { color:#64748b; font-size:.72rem; white-space:nowrap; }
.ml-assignment-controls { display:flex; flex:1; gap:.45rem; min-width:0; }
.ml-assignment select { flex:1; min-width:160px; min-height:44px; padding:.42rem .55rem; color:var(--text-primary); background:var(--bg-secondary); border:1px solid var(--border-color); border-radius:7px; }
.ml-assignment .btn { min-height:44px; }
.ml-followup { display:flex; align-items:center; gap:.55rem; margin-top:.8rem; padding-top:.75rem; border-top:1px solid var(--border-color); }
.ml-followup label { color:var(--text-muted); font-size:.72rem; white-space:nowrap; }
.ml-followup input { min-width:210px; min-height:44px; padding:.42rem .55rem; color:var(--text-primary); background:var(--bg-secondary); border:1px solid var(--border-color); border-radius:7px; }
.ml-actions { display:flex; flex-wrap:wrap; gap:.45rem; margin-top:.65rem; }
.ml-actions .btn { min-height:44px; }
.ml-lost { color:#b91c1c; }
.ml-outcome { margin-top:.8rem; padding:.58rem .7rem; border-radius:8px; color:#047857; background:#ecfdf5; font-size:.76rem; }
.ml-outcome.lost { color:#991b1b; background:#fef2f2; }
.ml-outcome.readonly { color:#475569; background:#f1f5f9; }
.ml-empty, .ml-loading { min-height:190px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.55rem; padding:1.2rem; color:var(--text-muted); text-align:center; background:var(--bg-card); border:1px solid var(--border-color); border-radius:12px; }
.ml-empty strong { color:var(--text-primary); }
.ml-empty.error strong { color:#b91c1c; }
.ml-lost-modal { width:min(470px, 94vw); }
.ml-lost-modal input, .ml-lost-modal textarea { width:100%; min-height:44px; padding:.65rem; color:var(--text-primary); background:var(--bg-secondary); border:1px solid var(--border-color); border-radius:8px; }
.ml-lost-modal textarea { resize:vertical; }
.ml-modal-actions { display:flex; justify-content:flex-end; gap:.55rem; margin-top:.8rem; }
body[data-pms-page="revenue-inbox"] #fw-container { display:none !important; }

@media (max-width: 720px) {
    .ml-toolbar { align-items:stretch; flex-direction:column; }
    .ml-toolbar .btn { align-self:flex-start; }
    .ml-tabs { width:100%; }
    .ml-tabs button { flex:1; padding:.48rem .35rem; font-size:.72rem; }
    .ml-card-head { gap:.5rem; }
    .ml-assignment { align-items:stretch; flex-direction:column; }
    .ml-assignment-controls { width:100%; }
    .ml-assignment select { min-width:0; }
    .ml-followup { align-items:stretch; flex-direction:column; }
    .ml-followup input { min-width:0; width:100%; }
    .ml-actions .btn { flex:1 1 calc(50% - .45rem); }
}
