/* Email Tools pages: list cleaner, AMIQ Mail comparison, SES / provider / LMS guides. Loaded via front matter pageCss. */

/* ---------- shared layout ---------- */
.et { min-width: 0; }
.et input[type="checkbox"], .et input[type="radio"] { width: auto; padding: 0; accent-color: var(--brand); }
.et-hero { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; padding: clamp(28px, 5vw, 56px) 0 12px; }
.et-hero h1 { margin: 6px 0 12px; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.1; }
.et-hero p.lead { color: var(--text-2); font-size: 1.1rem; margin: 0 0 18px; max-width: 58ch; }
.et-hero .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.et-hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; }
.et-hero-card h2 { font-size: 1.05rem; margin: 0 0 10px; }
.et-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.et-ticks li { position: relative; padding-left: 28px; color: var(--text-2); line-height: 1.45; }
.et-ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--brand-2, #12c2b5) 18%, transparent); }
.et-ticks li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 6px; height: 9px; border: solid var(--brand-2, #12c2b5); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.et-ticks b { color: var(--text); }
.et-status { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); }
.et-status i { width: 8px; height: 8px; border-radius: 50%; background: #e0a100; }
.et-status.live i { background: #16a34a; }

.et-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.et-toc a { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .88rem; text-decoration: none; }
.et-toc a:hover { border-color: var(--brand); color: var(--text); }

.et-sec { padding: clamp(26px, 4vw, 48px) 0; }
.et-sec > .wrap > h2, .et-sec h2.et-h { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 8px; scroll-margin-top: 90px; }
.et-sec .et-sub { color: var(--text-2); margin: 0 0 20px; max-width: 70ch; }
.et-sec.alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.et h3 { scroll-margin-top: 90px; }

.et-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.et-cards .card h3 { font-size: 1.05rem; }
.et-cards .card p + p { margin-top: 6px; }
.et-num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--brand-ink); line-height: 1; }

/* ---------- comparison table (scrolls sideways inside its box on phones) ---------- */
.et-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.et-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; min-width: 760px; }
.et-table th, .et-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); line-height: 1.4; }
.et-table thead th { font-family: var(--font-head); font-size: .9rem; background: var(--bg-2); position: sticky; top: 0; z-index: 1; }
.et-table tbody tr:last-child td, .et-table tbody tr:last-child th { border-bottom: 0; }
.et-table tbody th { font-weight: 600; color: var(--text); width: 22%; }
.et-table th:first-child, .et-table td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 2; box-shadow: 1px 0 0 var(--border); }
.et-table thead th:first-child { background: var(--bg-2); z-index: 3; }
.et-table .us { background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.et-table thead .us { background: color-mix(in srgb, var(--brand) 16%, var(--bg-2)); color: var(--brand-ink); }
.et-table td { color: var(--text-2); }
.et-y, .et-n, .et-p { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.et-y { color: #15803d; } .et-n { color: #b42318; } .et-p { color: #a16207; }
:root[data-theme="dark"] .et-y { color: #4ade80; } :root[data-theme="dark"] .et-n { color: #f87171; } :root[data-theme="dark"] .et-p { color: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .et-y { color: #4ade80; } :root:not([data-theme="light"]) .et-n { color: #f87171; } :root:not([data-theme="light"]) .et-p { color: #fbbf24; } }
.et-swipe { display: none; font-size: .82rem; color: var(--muted); margin: 0 0 8px; }

/* ---------- competitor cards ---------- */
.et-vs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.et-vs article { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.et-vs header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.et-vs h3 { margin: 0; font-size: 1.15rem; }
.et-vs .kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.et-vs p { margin: 0; color: var(--text-2); font-size: .94rem; line-height: 1.5; }
.et-vs .pick { border-radius: 10px; padding: 10px 12px; font-size: .92rem; line-height: 1.45; }
.et-vs .pick b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.et-vs .pick.them { background: var(--bg-2); color: var(--text-2); }
.et-vs .pick.us { background: color-mix(in srgb, var(--brand) 9%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.et-vs .pick.us b { color: var(--brand-ink); }

/* ---------- guide steps ---------- */
.et-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 14px; }
.et-steps > li { counter-increment: st; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 18px 18px 64px; scroll-margin-top: 90px; min-width: 0; }
.et-steps > li::before { content: counter(st); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: var(--font-head); }
.et-steps h3 { margin: 4px 0 8px; font-size: 1.12rem; }
.et-steps p, .et-steps li li { color: var(--text-2); line-height: 1.55; }
.et-steps p { margin: 0 0 10px; }
.et-steps ul, .et-steps ol { padding-left: 1.2em; margin: 0 0 10px; }
.et-steps > li > :last-child { margin-bottom: 0; }
.et-path { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; word-break: break-word; }
.et code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
.et pre { background: #0b1220; color: #e8ecf5; border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: .85rem; line-height: 1.5; margin: 0 0 10px; max-width: 100%; }
.et pre code { background: none; border: 0; padding: 0; color: inherit; overflow-wrap: normal; }
.et-dns { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 4px 0 10px; }
.et-dns th, .et-dns td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.et-dns th { background: var(--bg-2); font-weight: 600; }
.et-dns td { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; overflow-wrap: anywhere; color: var(--text); }
.et-callout { border-radius: 12px; padding: 12px 14px; background: color-mix(in srgb, #e0a100 10%, var(--surface)); border: 1px solid color-mix(in srgb, #e0a100 35%, transparent); color: var(--text); font-size: .93rem; line-height: 1.5; margin: 0 0 10px; }
.et-callout.info { background: color-mix(in srgb, var(--brand) 7%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 28%, transparent); }

/* ---------- provider / LMS picker cards ---------- */
.et-prov { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.et-prov article { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.et-prov h3 { margin: 0; font-size: 1.08rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.et-prov p, .et-prov li { color: var(--text-2); font-size: .93rem; line-height: 1.5; margin: 0; }
.et-prov ul { margin: 0; padding-left: 1.1em; }
.et-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--border); }
.et-tag.best { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; border-color: transparent; }

/* ---------- flow diagram ---------- */
.et-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 6px 0 4px; }
.et-flow > div { flex: 1 1 150px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; position: relative; min-width: 0; }
.et-flow b { display: block; font-family: var(--font-head); margin-bottom: 4px; }
.et-flow span { font-size: .86rem; color: var(--text-2); line-height: 1.4; display: block; }
.et-flow > div:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 50%; transform: translate(50%, -50%); color: var(--muted); font-weight: 700; z-index: 1; }

/* ---------- early-access form ---------- */
.et-form { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: clamp(16px, 3vw, 26px); box-shadow: var(--shadow); display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.et-form .full { grid-column: 1 / -1; }
.et-form label { font-size: .88rem; margin: 0 0 4px; }
.et-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.et-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.et-form-msg { font-size: .92rem; color: var(--text-2); }
.et-form-msg.ok { color: #15803d; font-weight: 600; } .et-form-msg.bad { color: #b42318; font-weight: 600; }
.et-cta { display: grid; gap: 24px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }

/* ---------- Email List Cleaner ---------- */
.elc { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.elc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(14px, 2.6vw, 22px); box-shadow: var(--shadow); min-width: 0; }
.elc-in { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.elc textarea { min-height: 220px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.45; }
.elc-drop { border: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--border)); border-radius: 14px; padding: 18px; text-align: center; background: color-mix(in srgb, var(--brand) 4%, var(--bg-2)); color: var(--text-2); cursor: pointer; display: grid; place-items: center; gap: 4px; min-height: 120px; }
.elc-drop.over, .elc-drop:hover { background: color-mix(in srgb, var(--brand) 10%, var(--bg-2)); }
.elc-drop strong { color: var(--text); font-family: var(--font-head); }
.elc-opts { display: grid; gap: 8px; margin: 12px 0 0; }
.elc-opts label { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; font-size: .92rem; margin: 0; line-height: 1.35; cursor: pointer; }
.elc-opts label input { margin-top: 2px; flex: none; }
.elc-opts small { display: block; color: var(--muted); font-weight: 400; }
.elc-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
#elcMsg { font-size: .9rem; color: var(--text-2); }
.elc-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); margin-bottom: 16px; }
.elc-tile { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--bg-2); display: flex; flex-direction: column; gap: 2px; }
.elc-tile b { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.1; }
.elc-tile span { font-size: .8rem; color: var(--text-2); }
.elc-tile.ok b { color: #15803d; } .elc-tile.bad b { color: #b42318; } .elc-tile.warn b { color: #a16207; }
.elc h3 { font-size: 1.02rem; margin: 18px 0 8px; }
.elc-tbl-wrap { overflow: auto; max-height: 340px; border: 1px solid var(--border); border-radius: 12px; }
.elc-tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.elc-tbl th, .elc-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; overflow-wrap: anywhere; }
.elc-tbl th { background: var(--bg-2); position: sticky; top: 0; font-weight: 600; }
.elc-pill { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text-2); }
.elc-pill.invalid { color: #b42318; } .elc-pill.duplicate { color: var(--muted); } .elc-pill.role, .elc-pill.disposable { color: #a16207; }
.elc-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; white-space: nowrap; }
.elc-pill.nomailbox { color: #b42318; } .elc-pill.risky { color: #a16207; }
.elc-verify { margin: 18px 0 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); }
.elc-verify h3 { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.elc-verify .elc-check { white-space: normal; align-items: flex-start; }
.elc-price { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text-2); }
.elc-bar { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; margin-top: 8px; }
.elc-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s; }
.elc-dl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
#elcMore { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .et-hero, .et-cta, .elc-in { grid-template-columns: minmax(0, 1fr); }
  .et-swipe { display: block; }
}
@media (max-width: 600px) {
  .et-form { grid-template-columns: minmax(0, 1fr); }
  .et-steps > li { padding: 56px 14px 14px; }
  .et-steps > li::before { left: 14px; top: 14px; }
  .et-table { font-size: .86rem; min-width: 640px; }
  .et-table th, .et-table td { padding: 10px; }
  .et-table tbody th { width: 120px; min-width: 120px; }
  .et-flow > div { flex-basis: 100%; }
  .et-flow > div:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -10px; transform: translate(50%, 50%); }
  .et-hero .btn-row .btn, .elc-btns .btn, .elc-dl .btn { flex: 1 1 auto; }
  .et-dns { font-size: .8rem; }
  .et-dns th, .et-dns td { padding: 6px; }
}
.et-hero .btn-row { justify-content: flex-start; }
.elc-opts label { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: start; }
.elc-opts small { grid-column: 2; }
.et-dns td:first-child { white-space: nowrap; }

/* ---------- Sending setup app (clean, dashboard-style) ---------- */
.mx-app { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; min-height: 420px; }
/* loading: four dots going round, a light sweeping over "Working on it", and the seconds so far (like Claude's own "working" line) */
.mx-loading { grid-column: 1 / -1; padding: 60px 0; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 1rem; letter-spacing: .01em;
  color: transparent; background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 40%, var(--text) 50%, var(--muted) 60%, var(--muted) 100%) 0 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; animation: mxShine 2.2s linear infinite; }
.mx-loading::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; margin: 0 9px 9px 0; background: #e0794f;
  box-shadow: 8px 0 0 rgba(224,121,79,.3), 8px 8px 0 rgba(224,121,79,.3), 0 8px 0 rgba(224,121,79,.3); animation: mxDots4 1s steps(1) infinite; }
.mx-loading::after { content: attr(data-sec); color: var(--muted); font-variant-numeric: tabular-nums; -webkit-text-fill-color: var(--muted); opacity: .85; }
.mx-loading.inline { display: inline-flex; padding: 4px 0; justify-content: flex-start; font-size: .9rem; }
.mw-route-load { position: absolute; inset: 0 0 auto 0; padding: 18px 0 18px 4px; justify-content: flex-start; z-index: 5; }
.mx-main { position: relative; }
@keyframes mxShine { from { background-position: 100% 0; } to { background-position: 0% 0; } }
@keyframes mxDots4 {
  0%   { background: #e0794f; box-shadow: 8px 0 0 rgba(224,121,79,.3), 8px 8px 0 rgba(224,121,79,.3), 0 8px 0 rgba(224,121,79,.3); }
  25%  { background: rgba(224,121,79,.3); box-shadow: 8px 0 0 #e0794f, 8px 8px 0 rgba(224,121,79,.3), 0 8px 0 rgba(224,121,79,.3); }
  50%  { background: rgba(224,121,79,.3); box-shadow: 8px 0 0 rgba(224,121,79,.3), 8px 8px 0 #e0794f, 0 8px 0 rgba(224,121,79,.3); }
  75%  { background: rgba(224,121,79,.3); box-shadow: 8px 0 0 rgba(224,121,79,.3), 8px 8px 0 rgba(224,121,79,.3), 0 8px 0 #e0794f; } }
@media (prefers-reduced-motion: reduce) { .mx-loading, .mx-loading::before { animation: none; } .mx-loading { color: var(--muted); background: none; } }
.mx-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 4px; }
.mx-side nav { display: flex; flex-direction: column; gap: 2px; }
.mx-side nav button, .mx-side-link { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font: inherit; font-size: .98rem; color: var(--text-2); cursor: pointer; text-decoration: none; }
.mx-side nav button svg, .mx-side-link svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.mx-side nav button:hover, .mx-side-link:hover { background: var(--bg-2); color: var(--text); }
.mx-side nav button.on { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand-ink); font-weight: 600; }
.mx-side nav button.on svg { color: var(--brand); }
.mx-side-link { margin-top: 10px; border-top: 1px solid var(--border); border-radius: 0; padding-top: 16px; }
.mx-side-who { font-size: .8rem; color: var(--muted); padding: 8px 12px; margin: 0; overflow-wrap: anywhere; }
.mx-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; outline: none; }
.mx-greet h2, .mx-head h2 { margin: 0 0 4px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
.mx-greet p, .mx-head p { margin: 0; }
.mx-muted { color: var(--muted); }
.mx-small { font-size: .86rem; line-height: 1.5; }
.mx-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; overflow-wrap: anywhere; }
.mx-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; min-width: 0; }
.mx-card h3 { margin: 0 0 10px; font-size: 1.06rem; font-weight: 600; }
.mx-card p { margin: 0 0 8px; }
.mx-card > :last-child { margin-bottom: 0; }
.mx-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.mx-card-head h3 { margin: 0; }
.mx-grid2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.mx-tiles { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.mx-tiles > div { padding: 22px 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mx-tiles > div:nth-child(2n) { border-right: 0; } .mx-tiles > div:nth-child(n+3) { border-bottom: 0; }
.mx-tiles b { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mx-tiles span { color: var(--text-2); font-size: .95rem; }
.c-blue { color: #2563eb; } .c-green { color: #16a34a; } .c-red { color: #dc2626; }
:root[data-theme="dark"] .c-blue { color: #7aa2ff; } :root[data-theme="dark"] .c-green { color: #4ade80; } :root[data-theme="dark"] .c-red { color: #f87171; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-blue { color: #7aa2ff; } :root:not([data-theme="light"]) .c-green { color: #4ade80; } :root:not([data-theme="light"]) .c-red { color: #f87171; } }
.mx-kv { display: flex; flex-direction: column; }
.mx-kv > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; font-size: .98rem; }
.mx-kv > div span { color: var(--text-2); }
.mx-kv > div b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.mx-kv .mx-sep { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 13px; }
.mx-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); background: var(--bg-2); white-space: nowrap; }
.mx-chip.ok { color: #15803d; border-color: color-mix(in srgb, #16a34a 45%, transparent); background: color-mix(in srgb, #16a34a 9%, transparent); }
.mx-chip.warn { color: #a16207; border-color: color-mix(in srgb, #d97706 45%, transparent); background: color-mix(in srgb, #d97706 9%, transparent); }
.mx-chip.bad { color: #b42318; border-color: color-mix(in srgb, #dc2626 45%, transparent); background: color-mix(in srgb, #dc2626 8%, transparent); }
:root[data-theme="dark"] .mx-chip.ok { color: #4ade80; } :root[data-theme="dark"] .mx-chip.warn { color: #fbbf24; } :root[data-theme="dark"] .mx-chip.bad { color: #f87171; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mx-chip.ok { color: #4ade80; } :root:not([data-theme="light"]) .mx-chip.warn { color: #fbbf24; } :root:not([data-theme="light"]) .mx-chip.bad { color: #f87171; } }
.mx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: .95rem; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.mx-btn:hover { border-color: var(--brand); }
.mx-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.mx-btn.primary:hover { filter: brightness(1.06); }
.mx-btn.danger { color: #b42318; }
.mx-btn.sm { padding: 6px 12px; font-size: .86rem; }
.mx-btn:disabled { opacity: .6; cursor: default; }
.mx-btn .mx-i { width: 16px; height: 16px; }
.mx-icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--brand); cursor: pointer; flex: none; padding: 0; }
.mx-icon-btn svg { width: 18px; height: 18px; }
.mx-icon-btn:hover { background: var(--bg-2); }
.mx-icon-btn.spin svg { animation: fp-spin .8s linear infinite; }
.mx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.mx-msg { font-size: .9rem; color: var(--text-2); margin: 0; }
.mx-msg.bad, .mx-bad { color: #b42318; font-weight: 600; }
.mx-msg:empty { display: none; }
.mx-progress { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin-bottom: 8px; }
.mx-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 999px; }
.mx-steps { list-style: none; margin: 0; padding: 0; }
.mx-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mx-steps li:last-child { border-bottom: 0; }
.mx-steps li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mx-steps li span:not(.mx-dot) { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.mx-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: .85rem; background: var(--bg-2); color: var(--muted); border: 1px solid var(--border); }
.mx-steps li.done .mx-dot { background: #16a34a; border-color: #16a34a; color: #fff; }
.mx-choices { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.mx-choice { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.mx-choice.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.mx-choice header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mx-choice h3 { margin: 0; font-size: 1.15rem; }
.mx-choice dl { margin: 0; display: grid; gap: 8px; flex: 1; }
.mx-choice dt { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mx-choice dd { margin: 0 0 4px; color: var(--text); line-height: 1.5; }
.mx-choice .mx-btn { align-self: flex-start; }
.mx-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; line-height: 1.5; }
.mx-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; margin: 0; }
.mx-fields { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 6px; }
.mx-fields.three { grid-template-columns: 1.3fr 1.3fr .8fr; }
.mx-fields label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mx-fields.three label:last-child { grid-column: auto; }
.mx-pw { position: relative; display: block; }
.mx-pw input { padding-right: 64px; }
.mx-link { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--brand); font: inherit; font-size: .85rem; cursor: pointer; }
.mx-howto { margin: 0 0 6px; padding-left: 1.2em; display: grid; gap: 10px; line-height: 1.5; font-size: .95rem; }
.mx-code { position: relative; background: #0b1220; color: #e8ecf5; border-radius: 10px; padding: 12px 44px 12px 14px; margin-top: 8px; }
.mx-code pre { margin: 0; font-size: .8rem; line-height: 1.5; overflow-x: auto; white-space: pre; background: none; padding: 0; color: inherit; }
.mx-code .mx-icon-btn { position: absolute; top: 6px; right: 6px; color: #9fb4ff; }
.mx-code.inline { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.mx-code.inline .mx-icon-btn { position: static; }
.mx-code.inline .mx-mono { flex: 1; min-width: 0; }
.mx-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.mx-inline input { width: auto; min-width: 200px; padding: 7px 10px; }
.mx-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.mx-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mx-table th { text-align: left; font-weight: 600; background: var(--bg-2); padding: 10px 12px; white-space: nowrap; }
.mx-table td { padding: 12px; border-top: 1px solid var(--border); vertical-align: top; }
.mx-table tr.ok td { background: color-mix(in srgb, #16a34a 4%, transparent); }
.mx-table td small { display: block; margin-top: 4px; }
.mx-val { display: flex; align-items: flex-start; gap: 4px; }
.mx-val .mx-mono { flex: 1; min-width: 0; padding-top: 5px; }
.mx-domain .mx-card-head h3 { font-size: 1.2rem; }
.mx-newkey { border-color: color-mix(in srgb, #16a34a 50%, var(--border)); background: color-mix(in srgb, #16a34a 5%, var(--surface)); }
.mx-help summary { cursor: pointer; font-weight: 600; }
.mx-help[open] summary { margin-bottom: 10px; }
.mx-out { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 18px; }
.mx-signin { text-align: center; padding: 32px 20px; }
.mx-signin p { max-width: 54ch; margin: 0 auto 16px; color: var(--text-2); }
.mx-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #0b1220; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .92rem; opacity: 0; pointer-events: none; transition: .2s; z-index: 80; }
.mx-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 960px) {
  .mx-app { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mx-side { position: static; }
  .mx-side nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .mx-side nav button { width: auto; white-space: nowrap; padding: 8px 12px; border: 1px solid var(--border); }
  .mx-side-link, .mx-side-who { display: none; }
  .mx-grid2, .mx-choices { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .mx-fields, .mx-fields.three { grid-template-columns: minmax(0, 1fr); }
  .mx-card { padding: 16px; }
  .mx-table thead { display: none; }
  .mx-table, .mx-table tbody, .mx-table tr, .mx-table td { display: block; width: 100%; }
  .mx-table tr { border-top: 1px solid var(--border); padding: 6px 0; }
  .mx-table td { border: 0; padding: 6px 12px; }
  .mx-table td[data-l]::before { content: attr(data-l); display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
  .mx-inline input { min-width: 0; flex: 1; }
  .mx-tiles b { font-size: 1.6rem; }
}
#two-ways .et-vs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
/* hover and pointer feedback */
.mx-btn, .mx-icon-btn, .mx-side nav button, .mx-side-link, .mx-choice, .mx-table tbody tr, .et-vs article, .et-prov article, .et-cards .card, .elc-tile, .et-toc a, .mx-help summary, .elc-drop, .elc-opts label { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s; }
.mx-btn, .mx-icon-btn, .mx-side nav button, .mx-help summary, .elc-drop, .elc-opts label, .et-toc a, .mx-choice .mx-btn, [data-copy] { cursor: pointer; }
.mx-btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.mx-btn.primary:not(:disabled):hover { background: var(--brand); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent); }
.mx-btn.danger:not(:disabled):hover { border-color: #dc2626; background: color-mix(in srgb, #dc2626 7%, var(--surface)); }
.mx-btn:not(:disabled):active { transform: translateY(0); }
.mx-icon-btn:hover { transform: scale(1.08); }
.mx-side nav button:hover svg { color: var(--brand); }
.mx-choice:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .08); }
.mx-table tbody tr:hover td { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.mx-card { transition: border-color .15s, box-shadow .15s; }
.mx-card:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); box-shadow: 0 6px 18px rgba(0, 0, 0, .05); }
.mx-steps li { transition: background-color .15s; border-radius: 10px; }
.mx-steps li:hover { background: var(--bg-2); }
.et-vs article:hover, .et-prov article:hover, .et-cards .card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: 0 12px 28px rgba(0, 0, 0, .08); }
.elc-tile:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.elc-opts label:hover { color: var(--brand-ink); }
.mx-help summary:hover { color: var(--brand-ink); }
.et-table tbody tr:hover td, .et-table tbody tr:hover th { background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.mx-chip { transition: transform .12s; }
.mx-table tr:hover .mx-chip { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .mx-btn, .mx-choice, .et-vs article, .et-prov article, .et-cards .card, .mx-icon-btn { transform: none !important; transition: none !important; } }
.mx-brands { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.mx-brand-top { display: flex; gap: 12px; align-items: flex-start; }
.mx-brand-top h3 { margin: 0 0 2px; }
.mx-brand-top p { margin: 0; overflow-wrap: anywhere; }
.mx-avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 12%, transparent); overflow: hidden; border: 1px solid var(--border); }
.mx-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.mx-btn { text-decoration: none; }
/* providers (like a provider list with a detail panel) */
.mx-prov { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.mx-plist { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px; position: sticky; top: 84px; }
.mx-plist-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1px solid transparent; background: none; padding: 9px 10px; border-radius: 10px; font: inherit; font-size: .95rem; color: var(--text-2); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.mx-plist-item:hover { background: var(--bg-2); color: var(--text); }
.mx-plist-item.on { background: color-mix(in srgb, var(--brand) 9%, transparent); border-color: color-mix(in srgb, var(--brand) 30%, transparent); color: var(--brand-ink); font-weight: 600; }
.mx-pbadge { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .02em; }
.mx-pd-title .mx-pbadge { width: 42px; height: 42px; border-radius: 11px; font-size: .85rem; }
.mx-plist-name { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; flex-wrap: wrap; }
.mx-live { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 20%, transparent); display: inline-block; }
.mx-default { font-style: normal; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-ink); margin-left: auto; }
.mx-pdetail { display: flex; flex-direction: column; gap: 14px; }
.mx-pdetail > .mx-card-head { margin-bottom: 0; }
.mx-pd-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mx-pd-title h3 { margin: 0; }
.mx-pd-title p { margin: 2px 0 0; }
.mx-incl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mx-incl > div { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--bg-2); }
.mx-incl b { display: block; font-size: .93rem; color: var(--text); }
.mx-incl b::first-letter { color: #16a34a; }
.mx-incl span { font-size: .85rem; color: var(--muted); }
/* billing */
.mx-bal { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; flex-wrap: wrap; }
.mx-bal b { font-size: 2.2rem; line-height: 1; color: var(--brand-ink); }
.mx-bal span { color: var(--muted); }
.mx-calc { margin-top: 14px; }
.mx-calc:empty { display: none; }
.mx-calc-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--bg-2); margin-bottom: 12px; }
.mx-calc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mx-calc-cols > div { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.mx-calc-cols > div:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.mx-calc-cols h4 { margin: 0 0 8px; font-size: .98rem; }
.mx-calc-cols p { margin: 0 0 4px; font-size: .92rem; color: var(--text-2); }
.mx-total { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 1.15rem !important; font-weight: 700; color: var(--text) !important; }
@media (max-width: 960px) {
  .mx-prov { grid-template-columns: minmax(0, 1fr); }
  .mx-plist { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
  .mx-plist-item { width: auto; white-space: nowrap; flex: none; }
  .mx-plist-name { flex-wrap: nowrap; }
  .mx-default { margin-left: 4px; }
}
@media (max-width: 640px) {
  .mx-incl, .mx-calc-cols { grid-template-columns: minmax(0, 1fr); }
}
.mx-fields.three[data-calc] { grid-template-columns: 1fr 1fr 1.5fr; }
/* public pricing cards */
.et-price { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.et-price article { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.et-price article:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: 0 14px 32px rgba(0, 0, 0, .09); }
.et-price article.us { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.et-price .kind { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.et-price h2 { margin: 0; font-size: 2.3rem; line-height: 1.1; }
.et-price h2 small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.et-price p { margin: 0; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.et-price .et-ticks { flex: 1; align-content: start; }
.et-price .btn { align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .et-price article { transform: none !important; transition: none !important; } }
/* sending health */
.c-amber { color: #b45309; } :root[data-theme="dark"] .c-amber { color: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-amber { color: #fbbf24; } }
.mx-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border: 1px solid color-mix(in srgb, #dc2626 40%, var(--border)); background: color-mix(in srgb, #dc2626 7%, var(--surface)); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: .94rem; }
.mx-health .mx-tiles span { font-size: .82rem; }
/* address check at send: on/off switch in Sending health */
.mx-autocheck { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.mx-autocheck p { margin: 4px 0 0; }
.mx-switch { position: relative; flex: 0 0 auto; width: 40px; height: 22px; margin-top: 2px; cursor: pointer; }
.mx-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mx-switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--border); transition: background-color .15s; }
.mx-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.mx-switch input:checked + span { background: var(--brand); }
.mx-switch input:checked + span::after { transform: translateX(18px); }
.mx-switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.mx-autocheck + p { margin-top: 12px; }
/* brand logo + sender picture pickers (Sending setup → Brands) */
.mx-brand-imgs { margin-top: 4px; }
.mx-imgpick { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; }
.mx-imgpick b { display: block; }
.mx-imgpick p { margin: 2px 0 8px; }
.mx-imgpick .mx-btn { cursor: pointer; }
.mx-imgprev { flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; font-size: .75rem; color: var(--text-2); }
.mx-logo-prev { width: 120px; height: 56px; border-radius: 8px; background: repeating-conic-gradient(color-mix(in srgb, var(--border) 60%, transparent) 0 25%, transparent 0 50%) 0 0 / 12px 12px; border: 1px solid var(--border); }
.mx-logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mx-imgprev.mx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mx-brand-logo { margin-top: 10px; padding: 10px; border-radius: 10px; background: #fff; display: inline-flex; max-width: 100%; }
.mx-brand-logo img { max-height: 44px; max-width: 220px; object-fit: contain; }
.mx-table .mx-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- AMIQ Mail workspace (/email/app/) ---------- */
.mw { --k1: #2f6bff; --k2: #0f9b8e; --k3: #7c4dff; --k4: #c77700; --kbad: #dc2626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mw { --k1: #6d97ff; --k2: #2fd5c7; --k3: #a98bff; --k4: #f0a73a; --kbad: #f87171; } }
:root[data-theme="dark"] .mw { --k1: #6d97ff; --k2: #2fd5c7; --k3: #a98bff; --k4: #f0a73a; --kbad: #f87171; }
.mw .mx-side-link.mw-side-2 { margin-top: 0; border-top: 0; padding-top: 10px; }
.mx-chip.info { color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 40%, transparent); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.mw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.mw-head .mx-head p { margin-top: 4px; max-width: 70ch; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mw-head-act { display: flex; gap: 8px; flex-wrap: wrap; }
.mw-back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); text-decoration: none; font-size: .9rem; margin-bottom: -8px; }
.mw-back svg { width: 16px; height: 16px; }
.mw-back:hover { color: var(--brand); }
.mw-subj { margin: 0; font-size: 1.02rem; }
.mw-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0; }
.mw-filters label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--text-2); min-width: 130px; }
.mw-filters .mw-grow { flex: 1 1 220px; }
.mw-filters input, .mw-filters select { padding: 8px 10px; }
.mw-filt-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mw-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.mw-kpis.big { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mw-kpis.small { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
.mw-kpis.small .mw-kpi b { font-size: 1.35rem; }
.mw-kpi { position: relative; display: flex; flex-direction: column; gap: 3px; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 16px; min-width: 0; overflow: hidden; }
.mw-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--border); }
.mw-kpi.c1::before { background: var(--k1); } .mw-kpi.c2::before { background: var(--k2); } .mw-kpi.c3::before { background: var(--k3); } .mw-kpi.c4::before { background: var(--k4); } .mw-kpi.bad::before { background: var(--kbad); }
.mw-kpi-l { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.mw-kpi b { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.mw-kpi-s { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.mw-kpi-bar { display: block; height: 4px; border-radius: 4px; background: var(--bg-2); margin-top: 6px; overflow: hidden; }
.mw-kpi-bar i { display: block; height: 100%; border-radius: 4px; background: var(--text-2); }
.mw-kpi.c1 .mw-kpi-bar i { background: var(--k1); } .mw-kpi.c2 .mw-kpi-bar i { background: var(--k2); } .mw-kpi.c3 .mw-kpi-bar i { background: var(--k3); } .mw-kpi.c4 .mw-kpi-bar i { background: var(--k4); }
button.mw-kpi { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
button.mw-kpi:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); box-shadow: 0 6px 18px rgba(0, 0, 0, .07); transform: translateY(-1px); }
button.mw-kpi.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
button.mw-kpi:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mw .mx-table td.n, .mw .mx-table th.n { text-align: right; font-variant-numeric: tabular-nums; }
.mw .mx-table td small { display: block; }
.mw-click { cursor: pointer; }
.mw-click:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.mw-cname { display: flex; gap: 10px; align-items: flex-start; min-width: 220px; }
.mw-cname img, .mw-nothumb { width: 38px; height: 48px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--border); flex: none; background: var(--bg-2); }
.mw-cname div { min-width: 0; }
.mw-empty { text-align: center; padding: 34px 20px; }
.mw-empty p { max-width: 60ch; margin: 0 auto 14px; }
.mw-empty .mx-row { justify-content: center; }
.mw-pager { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: .9rem; color: var(--text-2); }
.mw-setup { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.mw-setup-l { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mw-setup-r { position: sticky; top: 84px; }
.mw-preview iframe { width: 100%; height: 72vh; min-height: 480px; border: 1px solid var(--border); border-radius: 10px; background: #fff; margin-top: 10px; }
.mw-sub { margin: 14px 0 8px; font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mw-picks { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mw-pick { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: .93rem; }
.mw-pick:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.mw-pick:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.mw-pick input { width: auto; margin: 0; flex: none; }
.mw-pick span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mw-pick em { font-style: normal; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mw-excl { margin-top: 12px; }
.mw-skip { margin-top: 14px; }
.mw-skip .mw-picks { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.mw-pick-lock { cursor: default; opacity: .85; }
.mw-pick-lock em { color: var(--muted); }
.mw-excl summary { cursor: pointer; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.mw-aud-total { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); font-size: .93rem; }
.mw-checks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.mw-checks li { position: relative; padding-left: 28px; line-height: 1.45; font-size: .95rem; }
.mw-checks li::before { position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; }
.mw-checks li.ok::before { content: "✓"; background: #16a34a; }
.mw-checks li.no::before { content: "!"; background: #d97706; }
.mw-send-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mw-inline-lbl { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-size: .9rem; }
.mw-inline-lbl input, .mw-inline-lbl select { width: auto; padding: 7px 10px; }
.mw-inline { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.mw-confirm { margin-top: 14px; padding: 14px; border: 1.5px solid var(--brand); border-radius: 12px; background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.mw-confirm p { margin: 0; }
.mw-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); }
.mw-prog .mx-progress { height: 10px; }
.mw-grid2 { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mw-grid3 { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mw-score { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.mw-score b { font-size: 2.6rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.mw-score > span { color: var(--muted); margin-right: 6px; }
.mw-part, .mw-funnel > div { display: grid; grid-template-columns: 92px minmax(0, 1fr) 46px; gap: 10px; align-items: center; font-size: .86rem; padding: 4px 0; }
.mw-part b, .mw-funnel b { text-align: right; font-variant-numeric: tabular-nums; }
.mw-part-t, .mw-funnel-t { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.mw-part-t i, .mw-funnel-t i { display: block; height: 100%; border-radius: 4px; background: var(--k2); }
.mw-funnel-t i { background: var(--k1); }
.mw-funnel { margin: 10px 0; }
.mw-funnel > div { grid-template-columns: 82px minmax(0, 1fr) 64px; }
.mw-cmp { display: grid; gap: 10px; }
.mw-cmp > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.mw-cmp span { color: var(--text-2); font-size: .9rem; }
.mw-cmp b { text-align: right; font-variant-numeric: tabular-nums; }
.mw-cmp em { grid-column: 2; text-align: right; font-style: normal; font-size: .78rem; color: var(--muted); }
.mw-up { color: #15803d; } .mw-down { color: #b42318; }
.mw-insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mw-insights li { padding: 9px 12px 9px 14px; border-radius: 10px; background: var(--bg-2); border-left: 4px solid var(--k1); line-height: 1.45; font-size: .93rem; }
.mw-insights li.good { border-left-color: #16a34a; } .mw-insights li.warn { border-left-color: #d97706; } .mw-insights li.bad { border-left-color: #dc2626; }
.mw-follow { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.mw-follow-i { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.mw-follow-i b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.mw-follow-i span { font-weight: 600; }
.mw-follow-i em { font-style: normal; font-size: .84rem; color: var(--muted); }
.mw-follow-i .mx-row { margin-top: 8px; }
.mw-bars { margin-top: 6px; }
.mw-bars-plot { display: flex; align-items: flex-end; gap: 2px; height: 150px; border-bottom: 1px solid var(--border); }
.mw-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; min-width: 0; outline: none; }
.mw-bar i { display: block; width: 100%; background: var(--k1); border-radius: 4px 4px 0 0; transition: opacity .15s; }
.mw-bars-plot:hover .mw-bar i { opacity: .55; }
.mw-bars-plot .mw-bar:hover i, .mw-bar:focus-visible i { opacity: 1; }
.mw-bars-x { display: flex; gap: 2px; margin-top: 4px; }
.mw-bars-x span { flex: 1; min-width: 0; font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: visible; }
.mw-bar[data-tip]:not([data-tip=""]):hover::after, .mw-bar[data-tip]:not([data-tip=""]):focus-visible::after, .mw-hbar[data-tip]:not([data-tip=""]):hover::after, .mw-hbar[data-tip]:not([data-tip=""]):focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #0b1220; color: #fff; font-size: .78rem; font-weight: 500; padding: 6px 9px; border-radius: 8px; white-space: nowrap; z-index: 5; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.mw-bar:first-child:hover::after, .mw-bar:nth-child(-n+4):hover::after { left: 0; transform: none; }
.mw-bar:last-child:hover::after, .mw-bar:nth-last-child(-n+4):hover::after { left: auto; right: 0; transform: none; }
.mw-hbars { display: grid; gap: 8px; }
.mw-hbar { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: .88rem; outline: none; }
.mw-hbar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-hbar-t { height: 12px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.mw-hbar-t i { display: block; height: 100%; background: var(--k3); border-radius: 0 4px 4px 0; }
.mw-hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.mw-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.mw-tabs button { font: inherit; font-size: .88rem; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.mw-tabs button em { font-style: normal; color: var(--muted); margin-left: 2px; font-variant-numeric: tabular-nums; }
.mw-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.mw-tabs button[aria-selected="true"] em { color: rgba(255, 255, 255, .85); }
.mw-tabs.big button { font-size: .95rem; padding: 9px 16px; border-radius: 10px; }
#people .mw-filters { margin-bottom: 12px; }
.mw-people td { white-space: nowrap; }
.mw-people td:first-child { white-space: normal; min-width: 200px; }
.mw-trunc { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.mw-tl-row td { background: var(--bg-2); }
.mw-tl { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 18px; white-space: normal; }
.mw-tl-who { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.mw-tl-who span { color: var(--text-2); overflow-wrap: anywhere; }
.mw-tl-sum { margin-top: 6px; font-weight: 600; color: var(--text) !important; }
.mw-tl ol { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--border); display: grid; gap: 8px; }
.mw-tl li { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; font-size: .88rem; }
.mw-tl li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); border: 2px solid var(--bg-2); }
.mw-tl li.t-open::before { background: var(--k2); } .mw-tl li.t-click::before { background: var(--k3); } .mw-tl li.t-interest::before, .mw-tl li.t-delivered::before { background: #16a34a; } .mw-tl li[class*="bounce"]::before, .mw-tl li.t-complained::before { background: #dc2626; } .mw-tl li.t-unsubscribed::before { background: #d97706; }
.mw-tl time { color: var(--text-2); font-variant-numeric: tabular-nums; }
.mw-tl em { font-style: normal; color: var(--muted); }
.mw-tl a { overflow-wrap: anywhere; }
.mw-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--brand); border-radius: 12px; background: color-mix(in srgb, var(--brand) 5%, var(--surface)); position: sticky; top: 70px; z-index: 3; }
.mw-bulk select, .mw-bulk input { width: auto; padding: 6px 10px; }
.mw-contacts td:first-child, .mw-contacts th:first-child { width: 36px; }
.mw-contacts input[type=checkbox] { width: auto; }
.mw-acts { white-space: nowrap; text-align: right; }
.mw-acts .mx-btn + .mx-btn { margin-left: 6px; }
.mw-rule { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.mw-rule select, .mw-rule input { width: auto; padding: 7px 10px; }
.mw-rule input:not([type=number]) { flex: 1 1 180px; }
.mw-rule input[type=number] { width: 90px; }
.mw-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 38px 20px; border: 2px dashed var(--border); border-radius: 14px; text-align: center; cursor: pointer; }
.mw-drop:hover, .mw-drop.over { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 4%, transparent); }
.mw-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mw-drop b { font-size: 1.05rem; color: var(--brand-ink); }
.mw-drop span { color: var(--muted); font-size: .9rem; }
.mw-map select { width: auto; min-width: 170px; padding: 6px 10px; }
.mw-reasons { display: grid; gap: 6px; margin: 12px 0; }
.mw-reasons > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--bg-2); font-size: .92rem; }
.mw-reasons b { font-variant-numeric: tabular-nums; }
.mw-steps { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 10px; line-height: 1.5; }
.mw-tpls { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.mw-tpl { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mw-tpl-img { height: 210px; background: var(--bg-2); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.mw-tpl-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mw-tpl-img span { font-size: 3rem; font-weight: 700; color: var(--muted); }
.mw-tpl-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 1100px) { .mw-grid3 { grid-template-columns: minmax(0, 1fr); } .mw-setup { grid-template-columns: minmax(0, 1fr); } .mw-setup-r { position: static; } }
@media (max-width: 960px) { .mw .mx-side-link { display: none; } .mw-grid2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .mw .mx-table thead { display: table-header-group; }
  .mw .mx-table { display: table; min-width: 640px; }
  .mw .mx-table tbody { display: table-row-group; } .mw .mx-table tr { display: table-row; padding: 0; } .mw .mx-table td { display: table-cell; width: auto; padding: 10px; border-top: 1px solid var(--border); }
  .mw-kpis, .mw-kpis.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mw-tl, .mw-tl li { grid-template-columns: minmax(0, 1fr); }
  .mw-part, .mw-funnel > div { grid-template-columns: 96px minmax(0, 1fr) 48px; }
  .mw-preview iframe { height: 60vh; }
}
/* drips: flow builder */
.mw-drip { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.mw-drip-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.mw-drip-side .mx-form label:not(.mw-pick) { margin-bottom: 10px; }
.mw-savebar .mx-row { margin-top: 8px; }
.mw-flow { display: flex; flex-direction: column; align-items: stretch; }
.mw-node { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.mw-node.t-trigger { border-left-color: #16a34a; } .mw-node.t-email { border-left-color: var(--k1); } .mw-node.t-wait { border-left-color: var(--k4); } .mw-node.t-condition { border-left-color: var(--k3); } .mw-node.t-end { border-left-color: var(--muted); padding: 10px 16px; }
.mw-node-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mw-node-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-2); flex: none; }
.mw-node-ic svg { width: 17px; height: 17px; }
.mw-node.t-email .mw-node-ic { color: var(--k1); } .mw-node.t-wait .mw-node-ic { color: var(--k4); } .mw-node.t-condition .mw-node-ic { color: var(--k3); } .mw-node.t-trigger .mw-node-ic { color: #16a34a; }
.mw-node-wait { font-size: .8rem; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 8%, transparent); border-radius: 999px; padding: 2px 10px; }
.mw-node-ctrl { margin-left: auto; display: flex; gap: 2px; }
.mw-node-ctrl .mx-icon-btn { width: 28px; height: 28px; color: var(--text-2); }
.mw-node-ctrl .mx-icon-btn:disabled { opacity: .3; cursor: default; }
.mw-node-row { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; line-height: 2; }
.mw-node-row select, .mw-node-row input { width: auto; padding: 6px 10px; }
.mw-node-row input[type=number] { width: 72px; }
.mw-node-email { display: flex; gap: 14px; margin-top: 10px; }
.mw-node-email > img, .mw-node-email > .mw-nothumb { width: 70px; height: 88px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--border); flex: none; background: var(--bg-2); }
.mw-node-f { flex: 1; min-width: 0; display: grid; gap: 8px; }
.mw-node-f label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--text-2); }
.mw-node-f select, .mw-node-f input { padding: 7px 10px; }
.mw-node-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--text-2); }
.mw-node-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.mw-node-f .mx-row { margin-top: 0; }
.mw-ins { position: relative; display: flex; justify-content: center; padding: 8px 0; min-height: 36px; }
.mw-ins-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border); transform: translateX(-50%); }
.mw-ins-btns { position: relative; display: flex; gap: 6px; opacity: .35; transition: opacity .15s; background: var(--bg, #fff); padding: 0 6px; }
.mw-ins:hover .mw-ins-btns, .mw-ins:focus-within .mw-ins-btns { opacity: 1; }
.mw-ins-btns .mx-btn { padding: 3px 10px; font-size: .78rem; }
.mw-api { display: grid; gap: 8px; white-space: normal; }
.mw-api h4 { margin: 0; }
.mw-api .mx-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (hover: none) { .mw-ins-btns { opacity: 1; } }
@media (max-width: 1100px) { .mw-drip { grid-template-columns: minmax(0, 1fr); } .mw-drip-side { position: static; order: -1; } }
.mx-form .mw-pick, .mw-node .mw-pick { flex-direction: row !important; align-items: center; font-weight: 500; }

/* ---------- AMIQ Mail workspace: app shell and visual refresh (21 Oct, evening) ---------- */
.mw-page .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap.mw-wrap { width: min(1440px, 100% - 32px); }
.mw-pagehead { padding-top: 14px; padding-bottom: 6px; }
.mw-section { padding: 6px 0 56px; }
.mx-app.mw { grid-template-columns: 248px minmax(0, 1fr); gap: 24px; transition: grid-template-columns .2s ease; }
.mx-app.mw.collapsed { grid-template-columns: 68px minmax(0, 1fr); }
.mw .mw-side { top: 76px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px 10px; gap: 2px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); max-height: calc(100vh - 96px); overflow: visible; }
.mw-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; min-height: 44px; }
.mw-logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.mw-logo svg { width: 17px; height: 17px; }
.mw-brand b { font-size: 1.02rem; white-space: nowrap; overflow: hidden; }
.mw-collapse { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); display: grid; place-items: center; cursor: pointer; flex: none; position: relative; transition: transform .2s, background-color .15s; }
.mw-collapse svg { width: 16px; height: 16px; }
.mw-collapse:hover { background: var(--bg-2); color: var(--brand); }
.mw .mw-side nav { display: flex; flex-direction: column; gap: 2px; }
.mw-grp { margin: 10px 8px 4px; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; height: 14px; }
.mw-nav { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 9px 10px; border-radius: 10px; font: inherit; font-size: .94rem; color: var(--text-2); cursor: pointer; text-decoration: none; text-align: left; white-space: nowrap; transition: background-color .15s, color .15s; }
.mw-nav svg { width: 19px; height: 19px; flex: none; color: var(--muted); transition: color .15s; }
.mw-nav span { overflow: hidden; text-overflow: ellipsis; }
.mw-nav:hover { background: var(--bg-2); color: var(--text); }
.mw-nav:hover svg { color: var(--brand); }
.mw-nav.on { background: color-mix(in srgb, var(--brand) 11%, transparent); color: var(--brand-ink); font-weight: 600; }
.mw-nav.on svg { color: var(--brand); }
.mw-nav.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.mw-nav:focus-visible, .mw-collapse:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.mw-who { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 6px 2px; border-top: 1px solid var(--border); position: relative; }
.mw-who-t { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: .9rem; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
.mw-avatar.sm { width: 30px; height: 30px; font-size: .8rem; }
/* collapsed rail: icons only, the name comes out on hover */
.mx-app.mw.collapsed .mw-brand { justify-content: center; padding: 4px 0 12px; flex-direction: column; gap: 8px; }
.mx-app.mw.collapsed .mw-brand b, .mx-app.mw.collapsed .mw-nav span, .mx-app.mw.collapsed .mw-who-t { display: none; }
.mx-app.mw.collapsed .mw-collapse { margin: 0; transform: rotate(180deg); }
.mx-app.mw.collapsed .mw-grp { height: 1px; margin: 8px 10px; background: var(--border); }
.mx-app.mw.collapsed .mw-grp span { display: none; }
.mx-app.mw.collapsed .mw-nav { justify-content: center; padding: 10px 0; }
.mx-app.mw.collapsed .mw-nav.on::before { left: -10px; }
.mx-app.mw.collapsed .mw-who { justify-content: center; padding: 10px 0 2px; }
.mx-app.mw.collapsed .mw-side [data-tip]:hover::after, .mx-app.mw.collapsed .mw-side [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); background: #0b1220; color: #fff; font-size: .84rem; font-weight: 600; padding: 7px 12px; border-radius: 9px; white-space: nowrap; z-index: 30; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); pointer-events: none; animation: mw-fly .14s ease-out; }
.mx-app.mw.collapsed .mw-side [data-tip]:hover::before, .mx-app.mw.collapsed .mw-side [data-tip]:focus-visible::before { content: ""; position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right-color: #0b1220; border-left: 0; z-index: 30; }
.mx-app.mw.collapsed .mw-nav.on:hover::before, .mx-app.mw.collapsed .mw-nav.on:focus-visible::before { width: auto; left: calc(100% + 8px); top: 50%; bottom: auto; background: none; border-radius: 0; }
.mx-app.mw.collapsed .mw-nav:hover { background: color-mix(in srgb, var(--brand) 9%, transparent); }
@keyframes mw-fly { from { opacity: 0; transform: translate(-4px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
/* page parts */
.mw .mx-main { gap: 20px; }
.mw-head { align-items: center; padding: 2px 0 4px; }
.mw .mx-head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -.01em; }
.mw .mx-head p { font-size: .95rem; }
.mw .mx-card { border-radius: 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.mw .mx-btn { border-radius: 10px; }
.mw .mx-btn .mx-i { width: 16px; height: 16px; }
.mw-head-act .mx-btn { gap: 8px; }
.mw-filters { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
#people .mw-filters { background: var(--bg-2); border-color: transparent; }
.mw-kpi { border-radius: 16px; padding: 16px 18px 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); background: linear-gradient(180deg, var(--surface), var(--surface)); }
.mw-kpi::before { width: 0; }
.mw-kpi.c1 { background: linear-gradient(160deg, color-mix(in srgb, var(--k1) 7%, var(--surface)), var(--surface) 60%); }
.mw-kpi.c2 { background: linear-gradient(160deg, color-mix(in srgb, var(--k2) 7%, var(--surface)), var(--surface) 60%); }
.mw-kpi.c3 { background: linear-gradient(160deg, color-mix(in srgb, var(--k3) 7%, var(--surface)), var(--surface) 60%); }
.mw-kpi.c4 { background: linear-gradient(160deg, color-mix(in srgb, var(--k4) 8%, var(--surface)), var(--surface) 60%); }
.mw-kpi.bad { background: linear-gradient(160deg, color-mix(in srgb, var(--kbad) 7%, var(--surface)), var(--surface) 60%); }
.mw-kpi-ic { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); color: var(--text-2); }
.mw-kpi-ic svg { width: 17px; height: 17px; }
.mw-kpi.c1 .mw-kpi-ic { color: var(--k1); background: color-mix(in srgb, var(--k1) 12%, transparent); } .mw-kpi.c2 .mw-kpi-ic { color: var(--k2); background: color-mix(in srgb, var(--k2) 12%, transparent); }
.mw-kpi.c3 .mw-kpi-ic { color: var(--k3); background: color-mix(in srgb, var(--k3) 12%, transparent); } .mw-kpi.c4 .mw-kpi-ic { color: var(--k4); background: color-mix(in srgb, var(--k4) 13%, transparent); }
.mw-kpi b { font-size: clamp(1.6rem, 2.6vw, 2.05rem); margin-top: 4px; }
.mw-kpi-l { padding-right: 38px; }
button.mw-kpi.on { box-shadow: 0 0 0 2px var(--brand), 0 8px 22px color-mix(in srgb, var(--brand) 18%, transparent); border-color: transparent; }
.mw .mx-table-wrap { border-radius: 14px; background: var(--surface); }
.mw .mx-table th { background: var(--surface); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.mw .mx-table td { padding: 13px 14px; vertical-align: middle; }
.mw .mx-table tbody tr:first-child td { border-top: 0; }
.mw-person { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.mw-person div { min-width: 0; }
.mw-tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 8px; background: var(--bg-2); color: var(--text-2); white-space: nowrap; }
.mw .mx-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.mw .mx-chip { border-color: transparent; }
.mw-contacts td { white-space: nowrap; }
.mw-contacts td:nth-child(2) { white-space: normal; }
.mw-req { font-style: normal; font-size: .72rem; font-weight: 600; color: #b42318; margin-left: 4px; }
/* dialog */
.mw-dlg { border: 0; padding: 0; border-radius: 18px; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.mw-dlg::backdrop { background: rgba(11, 18, 32, .45); backdrop-filter: blur(3px); }
.mw-dlg form { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.mw-dlg-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 12px; border-bottom: 1px solid var(--border); }
.mw-dlg-h h3 { margin: 0; font-size: 1.15rem; }
.mw-dlg-b { padding: 16px 22px; overflow: auto; }
.mw-dlg-b .mx-fields { margin-top: 0; }
.mw-dlg-b > label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; }
.mw-dlg-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--border); }
/* preview */
.mw-pv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mw-pv-top h3 { margin: 0; }
.mw-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-2); gap: 2px; }
.mw-seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-size: .84rem; padding: 6px 10px; border-radius: 8px; color: var(--text-2); cursor: pointer; }
.mw-seg button svg { width: 15px; height: 15px; }
.mw-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.mw-inbox { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px 12px 0 0; background: var(--bg-2); }
.mw-inbox-t { min-width: 0; flex: 1; }
.mw-inbox-from { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: .9rem; }
.mw-inbox-from span { color: var(--muted); font-size: .82rem; }
.mw-inbox-subj { font-weight: 700; margin-top: 2px; overflow-wrap: anywhere; }
.mw-inbox-pre { color: var(--text-2); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-inbox-pre:empty { display: none; }
.mw-inbox-to { margin-top: 4px; }
.mw-pv-stage { border: 1px solid var(--border); border-top: 0; border-radius: 0 0 12px 12px; background: #eef1f6; padding: 16px 0; display: flex; justify-content: center; max-height: 78vh; overflow: auto; }
.mw-pv-stage iframe { width: 100%; max-width: 680px; height: 600px; border: 0; background: #fff; display: block; transition: max-width .2s; }
.mw-pv-stage.mobile { padding: 18px 0; }
.mw-pv-stage.mobile iframe { max-width: 375px; border-radius: 22px; box-shadow: 0 0 0 9px #1f2430, 0 12px 30px rgba(0, 0, 0, .25); }
.mw .mw-preview iframe { margin-top: 0; min-height: 0; }
.mw-setup { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
@media (max-width: 960px) {
  .mx-app.mw, .mx-app.mw.collapsed { grid-template-columns: minmax(0, 1fr); }
  .mw .mw-side { position: static; max-height: none; padding: 8px; flex-direction: row; align-items: center; overflow-x: auto; }
  .mw-brand, .mw-who, .mw-grp { display: none; }
  .mw .mw-side nav { flex-direction: row; gap: 6px; }
  .mw-nav { width: auto; padding: 8px 12px; border: 1px solid var(--border); }
  .mw-nav.on::before { display: none; }
  .mx-app.mw.collapsed .mw-nav span { display: inline; }
  .mx-app.mw.collapsed .mw-side [data-tip]:hover::after, .mx-app.mw.collapsed .mw-side [data-tip]:hover::before { display: none; }
}
.mw-camps td:nth-child(3) { white-space: nowrap; }
.mw-camps td:nth-child(2) { white-space: nowrap; }
.mw-head .mx-head { flex: 1 1 380px; min-width: 0; }
.mw-head-act { flex: none; }
.mw .mw-side { z-index: 20; }
.mw-health .mw-part { grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) 62px; padding: 6px 0; }
.mw-part-l { display: flex; flex-direction: column; min-width: 0; }
.mw-part-l em { font-style: normal; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mw-part b small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.mw-dlg.mw-dlg-sm { width: min(440px, calc(100vw - 32px)); }
.mw-dlg-b > label input { margin-top: 2px; }
.mx-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.mx-form .mx-checks label { flex-direction: row; align-items: center; gap: 8px; font-size: .92rem; }
.mx-checks input { width: auto; margin: 0; }
.mw-tpl-img { height: 250px; }
.mw-rule input[type=date] { width: auto; min-width: 150px; color-scheme: light dark; }
.mw-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 220px; }
.mw-tagchip { font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--k3) 12%, transparent); color: var(--text-2); white-space: nowrap; }
.mw-tagchip.more { background: var(--bg-2); }

/* Brands: footer, "Follow us" links and saved buttons (21 Oct 2026) */
.mx-bsec { margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.mx-bsec > summary { cursor: pointer; font-weight: 600; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.mx-bsec > summary span { font-weight: 400; font-size: .85rem; }
.mx-bsec[open] > summary { margin-bottom: 10px; }
.mx-bsec textarea { resize: vertical; min-height: 64px; }
.mx-blist { display: grid; gap: 10px; margin: 10px 0; }
.mx-brow { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.mx-bbtn { border: 1px dashed var(--border); border-radius: 12px; padding: 12px; }
.mx-bbtn-head { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.mx-bbtn-head b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mx-bsec .mx-fields label:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 640px) { .mx-brow { grid-template-columns: 1fr; } .mx-bsec .mx-fields { grid-template-columns: 1fr; } }

/* Templates: click to preview (desktop / mobile), duplicate (21 Oct 2026) */
.mw-tpl-img { position: relative; cursor: zoom-in; }
.mw-tpl-eye { position: absolute; inset: auto 12px 12px auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 18, 32, .78); color: #fff; font-size: .82rem; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.mw-tpl-eye svg { width: 14px; height: 14px; }
.mw-tpl-img:hover .mw-tpl-eye, .mw-tpl-img:focus-visible .mw-tpl-eye { opacity: 1; transform: none; }
.mw-tpl-img:hover img { filter: brightness(.92); }
.mw-tpl-img:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
@media (hover: none) { .mw-tpl-eye { opacity: 1; transform: none; } }
.mw-dlg.mw-tpv { width: min(900px, calc(100vw - 32px)); }
.mw-tpv-in { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.mw-tpv-tools { display: flex; align-items: center; gap: 10px; }
.mw-tpv .mw-dlg-h { gap: 12px; flex-wrap: wrap; }
.mw-tpv .mw-dlg-h h3 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mw-tpv .mw-pv-stage { max-height: none; }
.mw-tpv-img { max-width: min(640px, 100%); height: auto; display: block; }
.mw-flash { animation: mwFlash 1.6s ease-out 1; }
@keyframes mwFlash { 0%, 30% { box-shadow: 0 0 0 3px var(--brand); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 640px) { .mw-tpv .mw-seg span { display: none; } }
.mw-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; } .mw-tfrom { overflow-wrap: anywhere; } .mw-tfrom b { font-weight: 600; }

/* Contacts: mailbox check of saved contacts (21 Oct 2026) */
.mw-mbxjob { margin-bottom: 14px; display: grid; gap: 10px; }
.mw-mbxjob-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.mw-mbxjob-h small { display: block; margin-top: 4px; }
.mw-mbxbar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.mw-mbxbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--k1, var(--brand))); border-radius: inherit; transition: width .4s; }
.mw-mbxjob-n { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .9rem; }
.mw-lnk { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; color: var(--text); }
.mw-lnk.ok { color: #15803d; } .mw-lnk.warn { color: #b45309; } .mw-lnk.bad { color: #b91c1c; }
:root[data-theme="dark"] .mw-lnk.ok { color: #4ade80; } :root[data-theme="dark"] .mw-lnk.warn { color: #fbbf24; } :root[data-theme="dark"] .mw-lnk.bad { color: #f87171; }
.mw-mbx { display: block; margin-top: 4px; font-size: .74rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.mw-mbx.ok { color: #15803d; } .mw-mbx.warn { color: #b45309; } .mw-mbx.bad { color: #b91c1c; }
:root[data-theme="dark"] .mw-mbx.ok { color: #4ade80; } :root[data-theme="dark"] .mw-mbx.warn { color: #fbbf24; } :root[data-theme="dark"] .mw-mbx.bad { color: #f87171; }
.mw-mbxtags { max-height: 220px; overflow: auto; padding: 4px 2px; }
.mw-mbxest { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--bg-2); }
.mw-mbxest p { margin: 10px 0 0; }
.mw-mbxest-n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mw-mbxest-n b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.mw-mbxest-n span { font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) { .mw-mbxest-n { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mw-lnk.ok, :root:not([data-theme="light"]) .mw-mbx.ok { color: #4ade80; } :root:not([data-theme="light"]) .mw-lnk.warn, :root:not([data-theme="light"]) .mw-mbx.warn { color: #fbbf24; } :root:not([data-theme="light"]) .mw-lnk.bad, :root:not([data-theme="light"]) .mw-mbx.bad { color: #f87171; } }
/* LMS stage emails overview */
.mw-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 0; }
.mw-two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.mx-table td.mw-bad { color: var(--bad, #d64545); font-weight: 600; }
.mw-camps td small .mw-lnk { margin: 0 2px; }

/* ---------- AMIQ WhatsApp (/email/) ---------- */
.wa-page .wa-logo { background: #25d366; color: #fff; }
.wa-num { margin-bottom: 14px; }
.wa-num-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wa-num-h h3 { margin: 0; font-size: 1.15rem; }
.wa-num-h p { margin: 2px 0 0; }
.wa-num-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, #25d366 14%, transparent); color: #128c4a; }
.wa-num-ic svg { width: 22px; height: 22px; }
.wa-num-chips { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.wa-kpis { margin: 14px 0 6px; }
.wa-sync { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; font-size: .9rem; }
.wa-sync li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wa-inline { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--text-2); }
.wa-inline input, .wa-inline select { padding: 7px 10px; font: inherit; font-weight: 400; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.wa-help ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.wa-tpls { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.wa-tpl { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.wa-tpl-img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; background: var(--bg-2); }
.wa-vid { display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.wa-tpl-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wa-tpl-b h3 { margin: 0; }
.wa-tpl-b p { margin: 0; }
.wa-tpl-text { white-space: pre-line; font-size: .9rem; line-height: 1.45; max-height: 9.5em; overflow: hidden; color: var(--text-2); }
.wa-tpl-text mark { background: color-mix(in srgb, #25d366 22%, transparent); color: inherit; border-radius: 4px; padding: 0 3px; }
.wa-tpl-st { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-copy { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: .82rem; }
.wa-build { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.wa-build h4 { margin: 18px 0 8px; font-size: .95rem; }
.wa-build textarea { width: 100%; font: inherit; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); resize: vertical; }
.wa-seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.wa-opt { flex-direction: row !important; align-items: center; gap: 8px !important; border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 600 !important; }
.wa-opt:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.wa-check { flex-direction: row !important; align-items: center; gap: 8px !important; margin: 8px 0 !important; }
.wa-drop { position: relative; padding: 22px 16px; margin-bottom: 10px; }
.wa-drop p { margin: 0; color: var(--text-2); }
.wa-btnrow { display: grid; grid-template-columns: 130px 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.wa-btnrow input, .wa-btnrow select { padding: 8px 10px; font: inherit; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); min-width: 0; }
.wa-phone { position: sticky; top: 90px; background: #e5ddd5; border-radius: 22px; padding: 18px 14px; border: 8px solid #1f2937; min-height: 420px; }
:root[data-theme="dark"] .wa-phone { background: #0b141a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wa-phone { background: #0b141a; } }
.wa-bubble { background: #fff; color: #111b21; border-radius: 4px 12px 12px 12px; padding: 4px 4px 18px; position: relative; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); font-size: .88rem; line-height: 1.4; }
:root[data-theme="dark"] .wa-bubble, :root[data-theme="dark"] .wa-bbtn { background: #202c33; color: #e9edef; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wa-bubble, :root:not([data-theme="light"]) .wa-bbtn { background: #202c33; color: #e9edef; } }
.wa-bubble img, .wa-bubble video, .wa-ph { width: 100%; border-radius: 8px; display: block; aspect-ratio: 1.91 / 1; object-fit: cover; }
.wa-ph { display: grid; place-items: center; background: #d1d7db; color: #54656f; font-weight: 600; }
.wa-bubble p { margin: 6px 6px 0; word-wrap: break-word; }
.wa-bubble small { display: block; margin: 6px 6px 0; color: #667781; font-size: .78rem; }
.wa-ht { display: block; margin: 6px 6px 0; }
.wa-time { position: absolute; right: 8px; bottom: 3px; font-size: .68rem; color: #667781; }
.wa-bbtn { background: #fff; color: #027eb5; text-align: center; padding: 9px; margin-top: 3px; border-radius: 10px; font-size: .88rem; font-weight: 600; }
.wa-pv-note { margin-top: 12px; color: #54656f; }
.wa-names { margin: 12px 0; font-size: .92rem; }
.wa-bad { margin-top: 12px; }
.wa-bad summary { cursor: pointer; font-weight: 600; color: #a16207; }
.wa-win { display: flex; align-items: center; gap: 6px; }
.wa-win select { flex: 1; }
.wa-prog { height: 10px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin-bottom: 8px; }
.wa-prog i { display: block; height: 100%; background: #25d366; border-radius: 99px; transition: width .4s; }
.wa-sends td { vertical-align: top; }
@media (max-width: 900px) { .wa-build { grid-template-columns: 1fr; } .wa-phone { position: static; } .wa-btnrow { grid-template-columns: 1fr 1fr; } .wa-btnrow .mx-icon-btn { justify-self: end; } }
.wa-page .mx-btn svg, .wa-page .mx-icon-btn svg { width: 16px; height: 16px; flex: none; }
.wa-page .mw-filters input[type="search"] { flex: 1 1 220px; }
.wa-page .mw-acts { flex-wrap: wrap; } .wa-page .mw-acts .mx-small { flex: 1 1 200px; min-width: 0; }
.wa-page .mw-brand b { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Campaigns page: overall cards + one card per email group (managed · drip · stage), click to switch */
.mw-ovr { margin-bottom: 14px; }
.mw-grpcards { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 6px; }
.mw-grpcard { font: inherit; text-align: left; color: var(--text); background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 16px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: border-color .15s, box-shadow .15s, transform .12s; }
.mw-grpcard:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); transform: translateY(-1px); }
.mw-grpcard.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.mw-grpcard-h { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.mw-grpcard-h svg { width: 18px; height: 18px; color: var(--brand-ink); }
.mw-grpcard-n { font-size: 1.7rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mw-grpcard-n small { font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.mw-grpcard-s { font-size: .82rem; color: var(--text-2); }
.mw-grpcard-r { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 8px; }
.mw-grpcard-r b { color: var(--text); font-weight: 700; margin-left: 4px; }
.mw-ov-note { margin: 0 0 14px; }
@media (max-width: 860px) { .mw-grpcards { grid-template-columns: 1fr; } }

/* draft rows: Archive / Restore / Delete (29 Oct 2026) */
.mw-row-acts { white-space: nowrap; text-align: right; }
.mw-row-acts .mx-btn { margin-left: 4px; }
