/* Email Tools pages: list cleaner, Cortex 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-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; }
.mx-loading { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--muted); }
.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; }
