/* MessageLasso app additions on top of the Lasso family app.css */
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 14px}
.ml-cols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;align-items:start;margin-bottom:16px}
@media(max-width:980px){.ml-cols{grid-template-columns:1fr}}
.btn.danger{color:var(--lost)}
.avatar.sm{width:30px;height:30px;font-size:12px;flex:none;display:inline-grid;place-items:center;cursor:default;background:var(--brand-l);color:var(--brand)}
.bad-t{color:var(--lost)}.ok-t{color:var(--won)}.warn-t{color:var(--accent-d)}.nowrap{white-space:nowrap}
.tabs.sm a{padding:7px 10px;font-size:13px}
/* Setup checklist */
.ml-setup{margin-bottom:16px;border-left:4px solid var(--accent)}
.ml-setup ol{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.ml-setup li{display:flex;gap:10px;align-items:flex-start}
.ml-setup li small{display:block}
.ml-step{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:700;background:var(--bg);border:2px solid var(--line2);color:var(--muted)}
.ml-setup li.done .ml-step{background:var(--won);border-color:var(--won);color:#fff}.ml-setup li.done b{color:var(--muted);text-decoration:line-through}
/* Bars */
.ml-bars{display:flex;align-items:flex-end;gap:6px;height:150px;padding:8px 0;border-bottom:1px solid var(--line)}
.ml-bars>div{flex:1;height:100%;display:flex;align-items:flex-end;justify-content:center;gap:2px;position:relative}
.ml-bars i{width:42%;min-height:2px;border-radius:3px 3px 0 0}.ml-bars i.o,.ml-key.o{background:var(--brand)}.ml-bars i.r,.ml-key.r{background:var(--accent)}
.ml-bars small{position:absolute;bottom:-20px;font-size:10px;color:var(--muted)}
.ml-key{display:inline-block;width:10px;height:10px;border-radius:2px;margin:18px 2px 0 8px}
.ml-conv-mini{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);color:var(--ink)}
.ml-conv-mini:hover{text-decoration:none;background:var(--bg)}.ml-conv-mini div{flex:1;min-width:0}.ml-conv-mini small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Send */
.ml-msghead{justify-content:space-between;margin:12px 0 4px;gap:8px}.ml-msghead select{width:auto}
.ml-counter{font-size:13px;color:var(--ink2);margin:6px 0 10px}.ml-counter.long{color:var(--accent-d)}
.ml-lists{display:flex;flex-wrap:wrap;gap:4px 16px;margin:4px 0 10px}.ml-lists b{width:100%}
.ml-sendside{position:sticky;top:76px}
.ml-when{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:8px 0}.ml-when input[type=datetime-local]{width:auto}
.ml-est{margin:10px 0;font-size:14px}
.ml-preview{background:#EEF2F1;border-radius:18px;padding:14px;margin-bottom:12px;min-height:120px}
.ml-preview img{max-width:70%;border-radius:12px;display:block;margin:6px 0 0 auto}
.ml-ph-top{text-align:center;font-size:13px;margin-bottom:10px}.ml-ph-top small{display:block;color:var(--muted)}
/* Bubbles */
.bub{max-width:78%;padding:9px 13px;border-radius:18px;margin:6px 0;line-height:1.4;font-size:14.5px;white-space:normal;word-wrap:break-word;width:fit-content}
.bub.out{background:var(--brand);color:#fff;margin-left:auto;border-bottom-right-radius:5px}
.bub.in{background:#fff;border:1px solid var(--line);border-bottom-left-radius:5px}
.bub small{display:block;font-size:11px;opacity:.75;margin-top:3px}.bub img{max-width:240px;max-height:240px;border-radius:12px;display:block;margin-bottom:6px}
.bub .st-failed{color:#FFD3C9;font-weight:700}.bub.in .st-failed{color:var(--lost)}
/* Inbox */
.ml-inbox{display:grid;grid-template-columns:330px 1fr;gap:14px;height:calc(100vh - 120px);min-height:480px}
.ml-convs{overflow:auto;padding:0}.ml-convs-h{padding:10px}.ml-convs .tabs{padding:0 10px;margin-bottom:0}
.ml-conv{display:flex;gap:10px;padding:11px 12px;border-bottom:1px solid var(--line);color:var(--ink);align-items:flex-start}
.ml-conv:hover{background:var(--bg);text-decoration:none}.ml-conv.on{background:var(--brand-l)}
.ml-conv div{flex:1;min-width:0}.ml-conv small{display:block;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ml-conv em{font-style:normal;font-size:11px;color:var(--muted);text-align:right}.ml-conv em i{display:block;margin:4px 0 0 auto;width:fit-content;min-width:18px;padding:1px 6px;border-radius:99px;background:var(--accent);color:#fff;font-style:normal;font-weight:700}
.ml-conv.unread b{font-weight:800}
.ml-convo{display:flex;flex-direction:column;padding:0;overflow:hidden}
.ml-convo-h{display:flex;gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line)}.ml-convo-h>div:nth-child(2){flex:1}.ml-convo-h small{display:block}
.ml-back{display:none;font-size:26px;line-height:1;color:var(--ink)}
.ml-thread{flex:1;overflow:auto;padding:14px 16px;background:#F4F6F5}
.ml-day{text-align:center;font-size:12px;color:var(--muted);margin:14px 0 6px}
.ml-reply{padding:10px 12px;border-top:1px solid var(--line)}.ml-reply textarea{resize:vertical;margin-bottom:6px}
.ml-reply .row-end{justify-content:flex-end;gap:8px}.ml-reply .ml-counter{margin:0 auto 0 0}
.ml-sim{display:flex;gap:8px;padding:8px 12px;background:#FFF6E8;border-top:1px dashed var(--accent)}
@media(max-width:820px){.ml-inbox{grid-template-columns:1fr;height:auto}.ml-inbox.has-conv .ml-convs{display:none}.ml-inbox:not(.has-conv) .ml-convo{display:none}.ml-back{display:block}.ml-thread{max-height:60vh}}
/* Contacts / lists / numbers */
.ml-filter{flex-wrap:wrap;gap:8px;margin-bottom:12px;justify-content:flex-start}.ml-filter input,.ml-filter select{width:auto}
.ml-bulk{display:flex;gap:8px;align-items:center;padding:10px 12px;background:var(--brand-l)}.ml-bulk select{width:auto}
.ml-numgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;margin:12px 0}
.ml-num{border:1px solid var(--line);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:6px}.ml-num b{font-size:17px;font-family:var(--hfont, Manrope)}
.ml-amounts{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin-bottom:10px}
.ml-amt{border:1px solid var(--line);border-radius:10px;padding:10px;cursor:pointer;display:flex;flex-direction:column}.ml-amt input{position:absolute;opacity:0}
.ml-amt:has(input:checked){border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-l)}.ml-amt b{font-size:20px}.ml-amt small{color:var(--muted)}
tr.ml-cur td{background:var(--brand-l)}
.ml-key-show{display:flex;gap:8px;align-items:center;margin-top:8px}.ml-key-show code{background:#fff;padding:6px 10px;border-radius:6px;font-size:14px}
.ml-code{background:#14181F;color:#E9F3F1;border-radius:10px;padding:14px;overflow:auto;font-size:12.5px;line-height:1.6}
.ml-reg-form .card{margin-bottom:14px}
.ml-help{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px}.ml-help li{margin:6px 0}
.ml-preview .bub{white-space:pre-line}
/* Sign-in & security */
.ml-sso-btns{display:grid;gap:8px;margin:10px 0 4px}.ml-sso{display:flex;gap:10px;justify-content:center;align-items:center;background:#fff;color:var(--ink);border:1px solid var(--line2)}.ml-sso:hover{background:var(--bg)}
.ml-or{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12.5px;margin:12px 0}.ml-or::before,.ml-or::after{content:"";flex:1;height:1px;background:var(--line)}
.ml-pk{margin-top:10px;background:#fff;color:var(--brand);border:1px solid var(--brand)}
.ml-pkadd{justify-content:flex-start;gap:8px;margin:8px 0 6px}.ml-pkadd input{flex:1;min-width:180px}
#twostep h4{margin:18px 0 6px;font-size:14.5px}#twostep h4 small{font-weight:400}
.ml-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0;font-family:ui-monospace,Consolas,monospace;font-size:15px}.ml-codes span{background:#fff;border:1px dashed var(--line2);border-radius:6px;padding:6px 10px;text-align:center}
.ml-qr{width:180px;height:180px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:10px}.ml-qr svg{width:100%;height:100%}
.ml-secret code{font-size:14px;letter-spacing:1px;background:var(--bg);padding:4px 8px;border-radius:6px}
.ml-score{display:flex;gap:18px;align-items:center;margin-bottom:10px}
.ml-ring{--p:0;flex:none;width:96px;height:96px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--brand) calc(var(--p)*1%),var(--line) 0)}
.ml-ring b{width:74px;height:74px;border-radius:50%;background:#fff;display:grid;place-items:center;font:800 26px var(--hfont)}
.ml-checks{list-style:none;padding:0;margin:0}.ml-checks li{padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}.ml-checks li span{display:inline-block;width:18px;font-weight:700}
.ml-checks li.ok span{color:var(--won)}.ml-checks li.no span{color:var(--lost)}.ml-checks form{display:inline}
.ml-days{display:flex;flex-wrap:wrap;gap:4px 14px;margin:4px 0}
.ml-secure{max-width:820px;margin:0 auto}.ml-mfa-pick{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:16px 0}
.ml-mfa-opt{border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:6px;align-items:flex-start;background:#fff}.ml-mfa-opt.best{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-l)}
.mailer-modes{display:flex;gap:18px;margin:8px 0}.mailer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 14px}.mailer-graph,.mailer-smtp{border:0;padding:0;margin:0}
/* Carrier registration progress, drip steps */
.ml-steps{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.ml-steps .pill{padding:6px 12px;font-size:.85rem}
.drip-step{margin:0 0 12px;border:1px solid var(--line,#e3e7ef);box-shadow:none}.drip-step textarea{width:100%}
