/* Weryfikator e-mail (tools/email.php): what the studio kit (assets/wb-kit.css)
   does not already cover. Panel tokens only. */

.em-studio [hidden] { display: none !important; }
.em-mode { display: flex; }
.em-mode > button { flex: 1; justify-content: center; }
.em-mode-note { margin: 8px 2px 0; color: var(--wb-muted); font-size: .8rem; line-height: 1.45; }
.em-form { display: flex; flex-direction: column; gap: 12px; }
.em-list { field-sizing: content; min-height: calc(1.55em + 26px); max-height: calc(18.6em + 26px); resize: none; overflow-y: auto; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.55; }
.em-upload { align-self: flex-start; }
#em-addr-go:disabled { cursor: default; }
.em-count { min-height: 1.3em; margin: 0; color: var(--wb-text-soft); font-size: .8rem; font-variant-numeric: tabular-nums; }
.em-hint { margin: 0; color: var(--wb-muted); font-size: .76rem; }
.em-error { margin: 0; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--wb-bad) 30%, var(--wb-border)); border-radius: var(--wb-r-sm); background: var(--wb-bad-bg); color: var(--wb-bad); font-size: .82rem; line-height: 1.5; }
.em-gate { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--wb-border); border-radius: var(--wb-r); background: var(--wb-surface-sunk); }
.em-gate p { margin: 0; color: var(--wb-text-soft); font-size: .84rem; line-height: 1.5; }
.em-run { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--wb-border); border-radius: var(--wb-r); background: var(--wb-surface-sunk); }
.em-run__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .84rem; font-variant-numeric: tabular-nums; }

/* ---- domain settings ------------------------------------------------------- */
.em-domains { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.em-domains button { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.em-domain-go { justify-content: space-between; }
.em-domain-go:disabled { opacity: .6; cursor: wait; }
.em-selector { display: grid; gap: 10px; padding-top: 18px; margin-top: 6px; border-top: 1px solid var(--wb-border); }
.em-domain-report { display: grid; gap: 16px; min-width: 0; }
.em-domain-hero.wk-bezel__core { flex-direction: row; align-items: center; gap: 24px; padding: 24px; }
.em-domain-hero > div:last-child { min-width: 0; }
.em-domain-hero h2, .em-domain-heading { margin: 0 0 10px; font-family: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif; letter-spacing: -.03em; overflow-wrap: anywhere; }
.em-domain-hero p { margin: 8px 0; color: var(--wb-text-soft); line-height: 1.6; }
.em-domain-note { margin: 0; color: var(--wb-text-soft); font-size: .82rem; line-height: 1.6; overflow-wrap: anywhere; }
.em-domain-hero .em-domain-note { font-size: .82rem; }
.em-domain-checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.em-domain-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 76px; padding: 14px 16px; border: 1px solid var(--wb-border); border-radius: var(--wb-r-sm); background: var(--wb-surface-solid); color: var(--wb-text); font: inherit; text-align: left; cursor: pointer; transition: transform 160ms var(--wb-ease); }
.em-domain-row > span:first-child { min-width: 0; flex: 1; }
.em-domain-row strong { display: block; font-size: .92rem; }
.em-domain-row:hover:not(:disabled) { border-color: var(--wb-border-strong); }
.em-domain-row:active:not(:disabled) { transform: scale(.97); }
.em-domain-row:disabled { cursor: wait; }
.em-domain-row .wb-badge { flex-shrink: 0; max-width: 46%; white-space: normal; text-align: center; }
.em-domain-sub { display: block; margin-top: 4px; color: var(--wb-text-soft); font-size: .82rem; overflow-wrap: anywhere; }
.em-domain-skeleton { display: block; width: min(230px, 85%); height: 12px; margin-top: 8px; }
.em-requirements h3 { margin: 0; font-size: 1rem; }
.em-requirements p { margin: 10px 0 0; color: var(--wb-text-soft); font-size: .85rem; line-height: 1.6; }
.em-auth-ticks { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 14px; }
.em-auth-tick { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .85rem; font-weight: 650; }
.em-auth-tick small { color: var(--wb-text-soft); font-size: .75rem; font-weight: 400; }
.em-tone--mut { color: var(--wb-muted); }
.em-tone--warn { color: var(--wb-warn); }
.em-own-mail { font-size: .86rem; }
.em-error p { margin: 0 0 8px; }
.em-dns-raw { max-width: 100%; padding: 14px; border: 1px solid var(--wb-border); border-radius: var(--wb-r-sm); background: var(--wb-surface-sunk); color: var(--wb-text-soft); font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .78rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.em-dns-record { padding: 14px; border: 1px solid var(--wb-border); border-radius: var(--wb-r-sm); background: var(--wb-surface-sunk); }
.em-dns-record dl { display: grid; gap: 10px; margin: 0 0 14px; }
.em-dns-record dl > div { display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 10px; }
.em-dns-record dt { color: var(--wb-muted); font-size: .8rem; }
.em-dns-record dd { margin: 0; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .8rem; overflow-wrap: anywhere; }
.em-list-results { display: grid; gap: 10px; padding: 0; list-style: none; }
.em-list-results li { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--wb-border); border-radius: var(--wb-r-sm); font-size: .82rem; overflow-wrap: anywhere; }
.em-list-results li > span { color: var(--wb-text-soft); }
#em-detail-body > p { color: var(--wb-text-soft); line-height: 1.65; overflow-wrap: anywhere; }

/* ---- inbox test ------------------------------------------------------------ */
.em-inbox__recent { display: grid; gap: 8px; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--wb-border); }
.em-inbox__recent h3 { margin: 0; }
.em-inbox__recent ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.em-mt-recent { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 12px; border: 1px solid var(--wb-border); border-radius: var(--wb-r-sm); background: var(--wb-surface-solid); color: var(--wb-text); font: inherit; text-align: left; cursor: pointer; transition: border-color 160ms var(--wb-ease), transform 160ms var(--wb-ease); }
.em-mt-recent:hover { border-color: var(--wb-border-strong); }
.em-mt-recent:active { transform: scale(.97); }
.em-mt-recent.is-on { border-color: color-mix(in srgb, var(--wb-accent) 40%, var(--wb-border)); background: color-mix(in srgb, var(--wb-accent) 6%, var(--wb-surface-solid)); }
.em-mt-recent-row { position: relative; }
.em-mt-recent.has-more { padding-right: 52px; }
.em-mt-more { position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; padding: 0; border: 0; border-radius: var(--wb-r-sm); background: transparent; color: var(--wb-muted); cursor: pointer; transition: background-color 160ms var(--wb-ease), color 160ms var(--wb-ease), transform 160ms var(--wb-ease); }
.em-mt-more:hover, .em-mt-more[aria-expanded="true"] { background: var(--wb-surface-sunk); color: var(--wb-text); }
.em-mt-more:active { transform: scale(.97); }
.em-mt-menu { position: absolute; top: calc(50% + 22px); right: 6px; z-index: 5; min-width: 150px; padding: 4px; border: 1px solid var(--wb-border); border-radius: var(--wb-r-sm); background: var(--wb-surface-solid); box-shadow: var(--wb-shadow-sm); transform-origin: top right; animation: em-mt-menu-in 160ms ease-out; }
.em-mt-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--wb-bad); font: inherit; font-size: .86rem; font-weight: 600; text-align: left; cursor: pointer; }
.em-mt-menu button:hover, .em-mt-menu button:focus-visible { background: var(--wb-bad-bg); outline: none; }
.em-mt-menu button:disabled { opacity: .6; cursor: progress; }
@keyframes em-mt-menu-in { from { opacity: 0; transform: scale(.95); } }
.em-mt-recent__txt { display: grid; gap: 1px; min-width: 0; }
.em-mt-recent__txt strong { overflow: hidden; font-size: .82rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.em-mt-recent__txt small { color: var(--wb-muted); font-size: .74rem; }
.em-mt-recent__score { flex-shrink: 0; font-family: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.em-mt-steps { display: grid; gap: 6px; max-width: 44ch; margin: 4px auto 0; padding-left: 1.3em; color: var(--wb-text-soft); font-size: .88rem; line-height: 1.55; text-align: left; }
.em-mt-wait.wk-bezel__core { display: grid; gap: 12px; padding: 24px; }
.em-mt-step { margin: 6px 0 0; font-size: .95rem; font-weight: 650; }
.em-mt-step:first-child { margin-top: 0; }
.em-mt-address { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border: 1px solid var(--wb-border); border-radius: var(--wb-r-sm); background: var(--wb-surface-sunk); }
.em-mt-address code { flex: 1 1 240px; min-width: 0; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.em-mt-mailto { justify-self: start; }
.em-mt-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; color: var(--wb-text-soft); font-size: .88rem; line-height: 1.55; }
.em-mt-pulse { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--wb-accent); animation: em-mt-pulse 1.6s ease-out infinite; }
@keyframes em-mt-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wb-accent) 45%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.em-mt-code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .08em; user-select: all; }

.em-mt-fix { margin: 0; color: var(--wb-text-soft); font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }
.em-mt-fix strong { color: var(--wb-text); }

/* Send, press "Sprawdź wynik", watch, reveal, report: the order mail-tester.com
   made familiar. Status circles carry the tone; loops only while waiting. */
.em-mt-ico { display: inline-grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--wb-surface-sunk); color: var(--wb-muted); }
.em-mt-ico--ok { background: var(--wb-ok-bg); color: var(--wb-ok); }
.em-mt-ico--warn { background: var(--wb-warn-bg); color: var(--wb-warn); }
.em-mt-ico--bad { background: var(--wb-bad-bg); color: var(--wb-bad); }
.em-mt-go { justify-self: start; justify-content: space-between; min-width: 220px; }
.em-mt-go.is-ready { animation: em-mt-nudge 1.6s ease-out 2; }
@keyframes em-mt-nudge { 0% { box-shadow: var(--wb-shadow-sm), 0 0 0 0 color-mix(in srgb, var(--wb-accent) 40%, transparent); } 100% { box-shadow: var(--wb-shadow-sm), 0 0 0 10px transparent; } }
.em-mt-ready { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--wb-ok); font-size: .88rem; font-weight: 600; }
.em-mt-ready .em-mt-ico { width: 20px; height: 20px; }

/* The wait and the reveal fill the screen in a modal dialog: the rest of the page stays out of reach until the message is in. */
.em-mt-stage { position: fixed; inset: 0; box-sizing: border-box; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px 16px; border: 0; overflow: auto; background: var(--wb-bg); color: var(--wb-text); }
.em-mt-stage[open] { display: grid; place-items: center; animation: em-mt-stage-in 240ms ease-out; }
.em-mt-stage.is-leaving { opacity: 0; transition: opacity 200ms ease-out; }
.em-mt-stage::backdrop { background: var(--wb-bg); }
html:has(.em-mt-stage[open]) { overflow: hidden; }
@keyframes em-mt-stage-in { from { opacity: 0; } }
.em-mt-watch { display: grid; justify-items: center; gap: 12px; width: min(560px, 100%); text-align: center; }
.em-mt-watch h2 { margin: 6px 0 0; font-family: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.03em; }
.em-mt-watch__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.em-mt-watch__addr { max-width: 100%; padding: 7px 16px; border: 1px solid var(--wb-border); border-radius: var(--wb-r-pill); background: var(--wb-surface-sunk); font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .9rem; overflow-wrap: anywhere; }
.em-mt-watch__hint { min-height: 3.1em; max-width: 46ch; margin: 2px 0 0; color: var(--wb-text-soft); font-size: .98rem; line-height: 1.55; transition: opacity 180ms ease-out; }
.em-mt-watch__hint.is-out { opacity: 0; }
.em-mt-watch__time { margin: 0 0 4px; color: var(--wb-muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
/* The envelope crosses from the sender to our inbox, which listens with a radar ring. */
.em-mt-track { display: flex; align-items: center; width: min(520px, 100%); margin-bottom: 14px; }
.em-mt-track__end { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 64px; height: 64px; border: 1px solid var(--wb-border); border-radius: 50%; background: var(--wb-surface-solid); color: var(--wb-text-soft); }
.em-mt-track__end--to { border-color: color-mix(in srgb, var(--wb-accent) 40%, var(--wb-border)); color: var(--wb-accent); }
.em-mt-track__end--to::before, .em-mt-track__end--to::after { content: ''; position: absolute; inset: -1px; border: 1.5px solid var(--wb-accent); border-radius: 50%; opacity: 0; animation: em-mt-radar 2.4s ease-out infinite; }
.em-mt-track__end--to::after { animation-delay: 1.2s; }
.em-mt-track__lane { position: relative; flex: 1; height: 26px; margin: 0 8px; container-type: inline-size; background: repeating-linear-gradient(90deg, var(--wb-border-strong) 0 6px, transparent 6px 12px) center / 100% 2px no-repeat; }
.em-mt-track__mail { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 34px; height: 26px; border-radius: 6px; background: var(--wb-surface-solid); color: var(--wb-accent); animation: em-mt-fly 2.4s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes em-mt-fly { 0% { opacity: 0; transform: translateX(0); } 15%, 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(calc(100cqw - 34px)); } }
@keyframes em-mt-radar { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.8); } }
.em-mt-tick { display: grid; gap: 8px; width: min(400px, 100%); margin: 6px 0 4px; padding: 0; list-style: none; text-align: left; }
.em-mt-tick li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--wb-border); border-radius: var(--wb-r-sm); background: var(--wb-surface-solid); font-size: .9rem; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity 220ms ease-out, transform 220ms ease-out; }
.em-mt-tick li.is-in { opacity: 1; transform: none; }

.em-mt-report { display: grid; gap: 14px; min-width: 0; }
.em-mt-report.is-enter { animation: em-mt-enter 260ms ease-out both; }
@keyframes em-mt-enter { from { opacity: 0; transform: translateY(6px); } }
.em-mt-hero h2 { font-size: 1.45rem; line-height: 1.2; }
.em-domain-hero .em-mt-subject { margin: 0 0 4px; color: var(--wb-text); font-weight: 600; overflow-wrap: anywhere; }
.em-mt-secs { display: grid; gap: 8px; }
.em-mt-sec { border: 1px solid var(--wb-border); border-radius: var(--wb-r); background: var(--wb-surface-solid); }
.em-mt-sec > summary { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: var(--wb-r); list-style: none; cursor: pointer; }
.em-mt-sec > summary::-webkit-details-marker { display: none; }
.em-mt-sec > summary:hover { background: var(--wb-surface-sunk); }
.em-mt-sec > summary > .em-mt-ico { width: 36px; height: 36px; }
.em-mt-sec__txt { display: grid; flex: 1; gap: 2px; min-width: 0; }
.em-mt-sec__txt strong { font-size: .98rem; }
.em-mt-sec__txt small { color: var(--wb-text-soft); font-size: .8rem; }
.em-mt-pts { flex-shrink: 0; color: var(--wb-bad); font-family: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif; font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.em-mt-chev { flex-shrink: 0; width: 8px; height: 8px; margin: 0 4px; border-right: 1.5px solid var(--wb-muted); border-bottom: 1.5px solid var(--wb-muted); transform: translateY(-2px) rotate(45deg); transition: transform 160ms var(--wb-ease); }
.em-mt-sec[open] .em-mt-chev { transform: translateY(2px) rotate(-135deg); }
.em-mt-sec__body { display: grid; gap: 12px; min-width: 0; padding: 0 18px 16px; }
.em-mt-items { display: grid; margin: 0; padding: 0; list-style: none; }
.em-mt-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0 0; }
.em-mt-item + .em-mt-item { margin-top: 12px; border-top: 1px solid var(--wb-border); }
.em-mt-item > .em-mt-ico { width: 22px; height: 22px; margin-top: 1px; }
.em-mt-item__txt { display: grid; flex: 1; gap: 6px; min-width: 0; }
.em-mt-item__txt > strong { font-size: .9rem; }
.em-mt-item__txt > p { margin: 0; color: var(--wb-text-soft); font-size: .85rem; line-height: 1.6; overflow-wrap: anywhere; }
.em-mt-item > .em-mt-pts { font-size: .88rem; }
.em-mt-raw summary { color: var(--wb-muted); font-size: .8rem; cursor: pointer; }
.em-mt-raw pre { margin: 8px 0 0; }
.em-mt-rules { display: grid; gap: 2px; padding: 6px 12px; border-radius: var(--wb-r-sm); background: var(--wb-surface-sunk); }
.em-mt-rule { display: grid; grid-template-columns: 44px minmax(0, 190px) minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 6px 0; font-size: .8rem; }
.em-mt-rule__pts { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.em-mt-rule code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .74rem; overflow-wrap: anywhere; }
.em-mt-rule > span:last-child { color: var(--wb-text-soft); overflow-wrap: anywhere; }
.em-mt-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.em-mt-chips li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 10px; border: 1px solid var(--wb-border); border-radius: var(--wb-r-sm); font-size: .8rem; font-weight: 600; }
.em-mt-chips li > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-mt-chips .em-mt-ico { width: 18px; height: 18px; }
.em-mt-chips .em-mt-chip--bad { border-color: color-mix(in srgb, var(--wb-bad) 35%, var(--wb-border)); background: var(--wb-bad-bg); }
.em-mt-links { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.em-mt-links li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .82rem; }
.em-mt-links li > :last-child { min-width: 0; overflow: hidden; color: var(--wb-text-soft); text-overflow: ellipsis; white-space: nowrap; }
.em-mt-chip { flex-shrink: 0; min-width: 46px; padding: 2px 8px; border-radius: var(--wb-r-pill); background: var(--wb-surface-sunk); color: var(--wb-muted); font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.em-mt-chip--ok { background: var(--wb-ok-bg); color: var(--wb-ok); }
.em-mt-chip--bad { background: var(--wb-bad-bg); color: var(--wb-bad); }
.em-mt-tabs { justify-self: start; }
/* Mail is designed on white, so the preview stays white in dark mode too. */
.em-mt-frame { display: block; width: 100%; height: 480px; border: 1px solid var(--wb-border); border-radius: var(--wb-r-sm); background: #fff; }
.em-mt-pre { max-height: 480px; margin: 0; overflow: auto; }
.em-mt-total { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 18px; border: 1px dashed var(--wb-border-strong); border-radius: var(--wb-r); color: var(--wb-text-soft); font-size: .9rem; }
.em-mt-total strong { font-family: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif; font-size: 2rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ---- one address ----------------------------------------------------------- */
.em-one { display: flex; flex-direction: column; gap: 16px; }
.em-verdict { padding: 22px 24px; }
.em-verdict__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 10px; }
.em-verdict__head h2 { min-width: 0; margin: 0; font-family: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif; font-size: 1.35rem; letter-spacing: -.03em; overflow-wrap: anywhere; }
.em-verdict p { margin: 0; color: var(--wb-text-soft); font-size: .92rem; line-height: 1.65; }
.em-verdict--drawer { display: grid; justify-items: start; gap: 10px; padding: 16px; border-radius: var(--wb-r); background: var(--wb-surface-sunk); }
.em-rows { display: grid; gap: 6px; margin: 0 0 16px; }
.em-rows > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; border: 1px solid var(--wb-border); border-radius: var(--wb-r-sm); font-size: .84rem; }
.em-rows dt { color: var(--wb-muted); }
.em-rows dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.em-tone--ok { color: var(--wb-ok); }
.em-tone--bad { color: var(--wb-bad); }

/* ---- a list ----------------------------------------------------------------- */
.em-many { display: flex; flex-direction: column; gap: 14px; }
.em-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; font-variant-numeric: tabular-nums; }
.em-sum__b {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-r);
  background: var(--wb-surface-solid);
  color: var(--wb-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms var(--wb-ease), transform 160ms var(--wb-ease);
}
.em-sum__b:hover { border-color: var(--wb-border-strong); }
.em-sum__b:active { transform: scale(.97); }
.em-sum__b[aria-pressed="true"] { border-color: var(--wb-accent); box-shadow: 0 0 0 1px var(--wb-accent); }
.em-sum__b strong { font-family: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif; font-size: 1.55rem; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.em-sum__b span { overflow: hidden; color: var(--wb-text-soft); font-size: .76rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.em-sum__b--ok strong { color: var(--wb-ok); }
.em-sum__b--warn strong { color: var(--wb-warn); }
.em-sum__b--bad strong { color: var(--wb-bad); }
.em-sum__b--mut strong { color: var(--wb-muted); }
.em-many__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.em-find { position: relative; flex: 1 1 220px; }
.em-find > svg { position: absolute; top: 50%; left: 14px; color: var(--wb-muted); transform: translateY(-50%); pointer-events: none; }
.em-find .wb-input { padding-left: 40px; border-radius: var(--wb-r-pill); font-size: .86rem; }
.em-table { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.em-r {
  display: grid;
  grid-template-columns: 8px minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-r-sm);
  background: var(--wb-surface-solid);
  color: var(--wb-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms var(--wb-ease), background-color 160ms var(--wb-ease);
}
.em-r:hover:not(:disabled) { border-color: var(--wb-border-strong); background: var(--wb-surface-sunk); }
.em-r:disabled { cursor: default; }
.em-r__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wb-border-strong); }
.em-r--ok .em-r__dot { background: var(--wb-ok); }
.em-r--warn .em-r__dot { background: var(--wb-warn); }
.em-r--bad .em-r__dot { background: var(--wb-bad); }
.em-r__mail { overflow: hidden; font-size: .86rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.em-r__note { overflow: hidden; color: var(--wb-muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.em-r .wb-badge { justify-self: end; white-space: nowrap; }
.em-wait { color: var(--wb-muted); font-size: .76rem; }
.em-none { margin: 0; padding: 18px; color: var(--wb-muted); text-align: center; }

/* ---- saved drawer ----------------------------------------------------------- */
.em-saved .wb-lib { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.em-saved .wb-lib .wb-card__head { display: none; }
.em-saved .wb-lib:not([hidden]) + .em-saved__empty { display: none; }

@media (max-width: 1100px) {
  .em-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .em-domain-hero.wk-bezel__core { flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px; }
  .em-domain-row { padding: 12px; gap: 8px; }
  .em-domain-row .wb-badge { font-size: .65rem; }
  .em-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-sum__b:first-child { grid-column: 1 / -1; }
  .em-r { grid-template-columns: 8px minmax(0, 1fr) auto; }
  .em-r__note { grid-column: 2 / -1; grid-row: 2; }
  .em-verdict { padding: 18px; }
  .em-mt-wait.wk-bezel__core { padding: 18px; }
  .em-mt-address code { font-size: .88rem; }
  .em-mt-go { justify-self: stretch; }
  .em-mt-track__end { width: 54px; height: 54px; }
  .em-mt-sec > summary { gap: 10px; padding: 13px 12px; }
  .em-mt-sec > summary > .em-mt-ico { width: 30px; height: 30px; }
  .em-mt-sec__body { padding: 0 12px 14px; }
  .em-mt-rule { grid-template-columns: 40px minmax(0, 1fr); gap: 2px 10px; }
  .em-mt-rule > span:last-child { grid-column: 2; }
  .em-mt-frame { height: 400px; }
}
@media (prefers-reduced-motion: reduce) {
  .em-domain-row { transition: none !important; }
  .em-domain-row:active:not(:disabled) { transform: none !important; }
  .em-sum__b, .em-r { transition: none !important; }
  .em-sum__b:active { transform: none !important; }
  .em-mt-recent { transition: none !important; }
  .em-mt-recent:active, .em-mt-more:active { transform: none !important; }
  .em-mt-menu { animation: none; }
  .em-mt-pulse { animation: none; }
  .em-mt-track__mail, .em-mt-track__end--to::before, .em-mt-track__end--to::after, .em-mt-go.is-ready, .em-mt-report.is-enter { animation: none; }
  .em-mt-track__mail { left: 50%; transform: translateX(-50%); }
  .em-mt-tick li { opacity: 1; transform: none; transition: none; }
  .em-mt-watch__hint, .em-mt-chev, .em-mt-stage.is-leaving { transition: none; }
  .em-mt-stage[open] { animation: none; }
}
