.mg-mt {
    font-family: 'RF Dewi', sans-serif;
    color: var(--mg-black);
}

.mg-mt__hero {
    background-color: var(--mg-cream);
    padding: 60px 0;
}

.mg-mt__hero-tool {
    margin-top: 36px;
    max-width: 640px;
}

.mg-mt__hero-step {
    margin: 0 0 12px;
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 600;
    color: var(--mg-black);
}

.mg-mt__address-box {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid var(--mg-border);
    border-radius: 3px;
    background: var(--mg-white);
    overflow: hidden;
}

.mg-mt__address-box--hero .mg-mt__address-input {
    padding: 14px 16px;
    font-size: clamp(14px, 1.5vw, 17px);
}

.mg-mt__address-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    color: var(--mg-black);
}

.mg-mt__address-input:focus {
    outline: none;
}

.mg-mt__copy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--mg-border);
    border-radius: 0;
    background: var(--mg-white);
    color: var(--mg-muted);
    cursor: pointer;
}

.mg-mt__copy-icon .mg-mt__icon-check {
    display: none;
}

.mg-mt__copy-icon:hover:not(:disabled):not(.is-copied) {
    color: var(--mg-blue-link);
    background: var(--mg-cream);
}

.mg-mt__copy-icon.is-copied {
    color: #10b981;
    background: var(--mg-cream);
}

.mg-mt__copy-icon.is-copied .mg-mt__icon-copy {
    display: none;
}

.mg-mt__copy-icon.is-copied .mg-mt__icon-check {
    display: block;
}

.mg-mt__copy-icon:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mg-mt__check-btn {
    width: 100%;
    max-width: 320px;
    margin-bottom: 12px;
}

body.mg-site--v2b .mg-mt__check-btn.mg2-btn--fill {
    color: var(--mg-on-accent);
}

.mg-mt__check-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mg-mt__upload-details {
    margin-top: 8px;
    border-top: 1px solid var(--mg-border);
    padding-top: 16px;
}

.mg-mt__upload-summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: var(--mg-blue-link);
    list-style: none;
}

.mg-mt__upload-summary::-webkit-details-marker {
    display: none;
}

.mg-mt__upload-summary::after {
    content: ' ›';
}

.mg-mt__upload-details[open] .mg-mt__upload-summary {
    margin-bottom: 12px;
}

.mg-mt__headers-details {
    margin-top: 4px;
}

.mg-mt__headers-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mg-mt__headers-form .mg-tool__label {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--mg-black);
}

.mg-mt__headers-textarea {
    width: 100%;
    min-height: 180px;
    padding: 12px 14px;
    border: 1px solid var(--mg-border);
    border-radius: 3px;
    background: var(--mg-white);
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
    box-sizing: border-box;
}

.mg-mt__headers-textarea:focus {
    outline: 2px solid var(--mg-blue-link);
    outline-offset: -1px;
}

.mg-mt__headers-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mg-mt__headers-error {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #b91c1c;
}

.mg-mt__headers-hint {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--mg-muted);
    line-height: 1.45;
}

.mg-mt__headers-paste-results {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--mg-border);
}

.mg-mt__headers-paste-results .mg-hd__report-actions {
    margin-top: 16px;
}

.mg-mt__headers-copy-status {
    font-size: 14px;
    font-weight: 600;
    color: var(--mg-blue-link);
}

.mg-mt__upload-box {
    border: 2px dashed var(--mg-border);
    border-radius: 3px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    background: var(--mg-white);
}

.mg-mt__upload-box:hover, .mg-mt__upload-box.dragover {
    border-color: var(--mg-blue-link);
}

.mg-mt__upload-hint {
    font-size: 13px;
    color: var(--mg-muted);
    margin-top: 8px;
}


.mg-mt__analysis {
    margin-top: 40px;
    background: var(--mg-white);
    border-radius: 8px;
    padding: 32px;
    border: 1px solid var(--mg-border);
}

.mg-mt__analysis-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.mg-mt__analysis-email {
    margin: 0 0 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--mg-black);
    line-height: 1.45;
    word-break: break-all;
}

.mg-mt__analysis-email-label {
    display: inline;
    margin-right: 6px;
    color: var(--mg-muted);
    font-weight: 600;
}

.mg-mt__analysis-email code {
    font-size: 14px;
}

.mg-mt__checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mg-mt__checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    color: var(--mg-muted);
    border-bottom: 1px solid var(--mg-cream);
}

.mg-mt__checklist li:last-child {
    border-bottom: none;
}

.mg-mt__check-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--mg-border);
    position: relative;
}

.mg-mt__checklist li.loading .mg-mt__check-icon {
    border-color: var(--mg-border);
    border-top-color: var(--mg-blue-link);
    animation: mg-mt-spin 1s linear infinite;
}

@keyframes mg-mt-spin {
    to { transform: rotate(360deg); }
}

.mg-mt__checklist li.done .mg-mt__check-icon {
    border-color: #10b981;
    background: #10b981;
}

.mg-mt__checklist li.done .mg-mt__check-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    /* -55% по Y — оптический центр галочки после rotate(45deg) */
    transform: translate(-50%, -55%) rotate(45deg);
}

.mg-mt__error {
    margin-top: 40px;
    background: #fef2f2;
    border: 1px solid #f87171;
    border-radius: 8px;
    padding: 24px;
}

.mg-mt__error-title {
    color: #b91c1c;
    font-size: 20px;
    margin-bottom: 8px;
}

.mg-mt__report {
    padding: 60px 0;
}

.mg-mt__report-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.mg-mt__report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: auto;
    align-items: center;
}

.mg-mt__report-actions .mg2-btn.is-copied {
    border-color: var(--mg-blue-link);
    color: var(--mg-blue-link);
}

.mg-mt__score-wrap {
    position: relative;
    width: 120px;
    height: 120px;
}

.mg-mt__score-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.mg-mt__score-ring-bg {
    fill: none;
    stroke: var(--mg-border);
    stroke-width: 8;
}

.mg-mt__score-ring-value {
    fill: none;
    stroke: #10b981;
    stroke-width: 8;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease-out, stroke 0.3s;
}

.mg-mt__score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.mg-mt__score-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--mg-black);
}

.mg-mt__score-max {
    font-size: 14px;
    font-weight: 600;
    color: var(--mg-muted);
}

.mg-mt__verdict {
    flex: 1;
    min-width: 0;
}

.mg-mt__verdict-title {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.mg-mt__verdict-desc {
    margin: 0 0 8px;
    max-width: 40em;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--mg-black);
}

/* Подписи / lead внутри отчёта (раньше класс был без стилей → 20px чёрный) */
.mg-mt__muted {
    margin: 0 0 14px;
    max-width: 48em;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--mg-muted);
}

.mg-mt__stat-line {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--mg-black);
}

.mg-mt__accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mg-mt__section {
    background: var(--mg-white);
    border: 1px solid var(--mg-border);
    border-radius: 3px;
    overflow: hidden;
}

.mg-mt__section-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: var(--mg-black);
    background: var(--mg-white);
}

.mg-mt__section[open] > .mg-mt__section-summary {
    background: var(--mg-cream);
}

.mg-mt__section-summary::-webkit-details-marker {
    display: none;
}

.mg-mt__section-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: var(--mg-blue-link);
}

.mg-mt__section-icon.is-bad {
    color: #B91C1C;
}

.mg-mt__section-icon.is-neutral {
    color: var(--mg-black);
}

.mg-mt__section-name {
    min-width: 0;
    font-weight: 700;
}

.mg-mt__section-status {
    margin-left: auto;
    flex-shrink: 1;
    min-width: 0;
    max-width: 62%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-align: right;
}

.mg-mt__sending-service {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--mg-black);
}

.mg-mt__sending-service--unknown {
    color: var(--mg-black);
    font-weight: 600;
}

.mg-mt__sender-domain {
    margin: 0 0 16px;
}

.mg-mt__from-spf {
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--mg-border);
}

.mg-mt__from-spf-providers {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--mg-black);
}

.mg-mt__dns-hints {
    margin: 0 0 20px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--mg-border);
}

.mg-mt__dns-hint-row {
    margin: 0 0 10px;
}

.mg-mt__dns-hint-key {
    display: block;
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--mg-muted, #666);
}

.mg-mt__dns-hint-val {
    margin: 0;
    padding: 10px 12px;
    max-height: 120px;
    overflow: auto;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--mg-surface-2, #f5f5f5);
    border-radius: 6px;
}

.mg-mt__from-spf-raw {
    margin: 0;
    padding: 12px 14px;
    max-height: 140px;
    overflow: auto;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--mg-cream, #F2EEEB);
    border-radius: 3px;
    color: var(--mg-black);
}

.mg-mt__section-content {
    padding: 20px 20px 22px;
    border-top: 1px solid var(--mg-border);
}

.mg-mt__section-content > p:not([class]) {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--mg-black);
}

/* Единый уровень подзаголовков внутри секций отчёта */
.mg-mt__delivery-subhead,
.mg-mt__subsection-title,
.mg-mt__section-content .mg-hd__block-title,
.mg-mt__section-content .mg-mt-lu__block-title,
.mg-mt__reputation .mg-blc__rep-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--mg-black);
}

.mg-mt__reputation .mg-blc__panel + .mg-blc__panel {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--mg-border);
}

.mg-mt__reputation.mg-blc__reputation {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* Sender Score / DNSBL из IP Reputation: в отчёте не hero 36px */
.mg-mt__reputation .mg-blc__rep-score {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.mg-mt__reputation .mg-blc__rep-of {
    font-size: 13px;
    font-weight: 600;
}

.mg-mt__reputation .mg-blc__rep-meta,
.mg-mt__reputation .mg-blc__rep-msg,
.mg-mt__reputation .mg-blc__rep-link,
.mg-mt__reputation .mg-blc__domains-lead {
    font-size: 13px;
    font-weight: 600;
}

.mg-mt__rep-cross {
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--mg-border);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--mg-muted);
}

body.mg-site--v2b .mg-mt__rep-cross a.mg2-textlink {
    color: var(--mg-blue-link);
    white-space: nowrap;
}

body.mg-site--v2b .mg-mt__rep-cross a.mg2-textlink:hover {
    color: var(--mg-blue-hover);
}

.mg-mt__reputation .mg-mt-table {
    font-size: 14px;
    font-weight: 600;
}

.mg-mt__reputation .mg-mt-table th {
    font-size: 13px;
    font-weight: 700;
}

.mg-mt__delivery-path {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--mg-border);
}

.mg-mt__spam-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .mg-mt__spam-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .mg-mt__spam-col + .mg-mt__spam-col {
        padding-left: 32px;
        border-left: 1px solid var(--mg-border);
    }
}

@media (min-width: 1100px) {
    .mg-mt__spam-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.mg-mt__preview-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--mg-border);
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.mg-mt__preview-tabs, .mg-mt__preview-devices {
    display: flex;
    gap: 8px;
}

.mg-mt__tab, .mg-mt__device {
    padding: 6px 16px;
    background: var(--mg-cream);
    border: 1px solid var(--mg-border);
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.mg-mt__tab.active, .mg-mt__device.active {
    background: var(--mg-blue-link);
    color: var(--mg-on-accent);
    border-color: var(--mg-blue-link);
}

.mg-mt__preview-pane {
    display: none;
}

.mg-mt__preview-pane.active {
    display: block;
}

.mg-mt__iframe-wrapper {
    margin: 0 auto;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    transition: width 0.3s;
    overflow: hidden;
}

.mg-mt__iframe-wrapper.desktop {
    width: 100%;
    max-width: 600px;
}

.mg-mt__iframe-wrapper.mobile {
    width: 375px;
}

.mg-mt__iframe-wrapper iframe,
.mg-mt__preview-frame {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
    background: #fff;
}

.mg-mt__preview-empty {
    padding: 24px 16px;
    color: var(--mg-muted);
    font-size: 15px;
    text-align: center;
}

.mg-mt__headers-wrap {
    position: relative;
}

.mg-mt__headers-pre {
    background: var(--mg-cream);
    padding: 16px;
    padding-right: 48px;
    border-radius: 4px;
    border: 1px solid var(--mg-border);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.mg-mt__headers-copy-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--mg-border);
    border-radius: 3px;
    background: var(--mg-white);
    color: var(--mg-muted);
    cursor: pointer;
}

.mg-mt__headers-copy-icon .mg-mt__icon-check {
    display: none;
}

.mg-mt__headers-copy-icon:hover:not(:disabled):not(.is-copied) {
    color: var(--mg-blue-link);
    border-color: var(--mg-blue-link);
}

.mg-mt__headers-copy-icon.is-copied {
    color: #10b981;
    border-color: #10b981;
}

.mg-mt__headers-copy-icon.is-copied .mg-mt__icon-copy {
    display: none;
}

.mg-mt__headers-copy-icon.is-copied .mg-mt__icon-check {
    display: block;
}

.mg-mt__headers-copy-icon:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.mg-mt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.mg-mt-table th, .mg-mt-table td {
    padding: 12px;
    border-bottom: 1px solid var(--mg-border);
    text-align: left;
}

.mg-mt-table th {
    font-weight: 600;
    color: var(--mg-muted);
    background: var(--mg-cream);
}

.mg-mt-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
}

.mg-mt-status-badge.pass { background: #d1fae5; color: #065f46; }
.mg-mt-status-badge.fail { background: #fee2e2; color: #991b1b; }
.mg-mt-status-badge.warn { background: #fef3c7; color: #92400e; }
.mg-mt-status-badge.neutral { background: var(--mg-cream); color: var(--mg-muted); }

.mono {
    font-family: var(--mg-tool-mono);
}

/* URL / tech strings в отчёте — не тянуть body 20px и не жирнить mono */
.mg-mt__section-content code,
.mg-mt__section-content .mono,
.mg-mt-lu__uri-list code,
.mg-mt-lu__uri-list .mono {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.mg-mt__check-title code,
.mg-mt__check-title .mono {
    font-size: 13px;
    word-break: normal;
}

/* Header Decoder embed + Sender Score inside report */
.mg-mt__headers-embed .mg-hd__block,
.mg-mt__headers-embed .mg-hd__verdict {
  margin-left: 0;
  margin-right: 0;
  border-radius: 3px;
}

.mg-mt__headers-embed .mg-hd__block:last-child {
  margin-bottom: 0;
}

.mg-mt__headers-embed .mg-hd__verdict-text {
  font-weight: 600;
}

.mg-mt__headers-embed .mg-hd__verdict {
  margin-bottom: 16px;
}

.mg-mt__spam-col > .mg-mt__stat-line,
.mg-mt__spam-col > p:not([class]) {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--mg-black);
}

.mg-mt__tool-links {
  margin: 12px 0 0;
  font-size: 14px;
}

.mg-mt__reputation {
  margin: 0;
}

.mg-mt__ss-panel,
.mg-mt__dnsbl-panel {
  margin: 0;
}

.mg-mt__ss-panel .mg-blc__domain-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* API promo — белая полоса между cream-hero и feature-request */
.mg-mt__api-promo {
    padding: 64px 0;
}

.mg-mt__api-promo .mg2-section-head {
    margin-bottom: 28px;
}

.mg-mt__api-promo .mg2-section-head p {
    max-width: 52rem;
}

.mg-mt__api-promo .mg2-section-head p .mg2-textlink {
    margin-left: 0.15em;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    white-space: nowrap;
}

.mg-mt__api-promo .mg2-features {
    max-width: 52rem;
}

body.mg-site--v2b .mg-mt-lu__actions .mg2-btn--fill {
    color: var(--mg-on-accent, #fff);
}

body.mg-site--v2b .mg-mt__lu-details a.mg2-textlink {
    color: var(--mg-blue-link);
}

body.mg-site--v2b .mg-mt__lu-details a.mg2-textlink:hover {
    color: var(--mg-blue-hover);
}

/* List-Unsubscribe Inspector (paste on start + report embed) */
.mg-mt__lu-details {
    margin-top: 12px;
}

.mg-mt-lu__textarea {
    min-height: 200px;
    font-family: var(--mg-tool-mono);
    font-size: 13px;
    line-height: 1.45;
}

.mg-mt-lu__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.mg-mt-lu__results,
.mg-mt-lu__embed {
    margin-top: 16px;
}

.mg-mt-lu__embed {
    margin-top: 0;
}

.mg-mt-lu__embed .mg-mt-lu__verdict {
    margin-top: 0;
    margin-bottom: 16px;
}

.mg-mt-lu__embed > .mg-mt__muted:last-of-type {
    margin-bottom: 16px;
}

.mg-mt-lu__report-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.mg-mt-lu__copy-status {
    font-size: 14px;
    color: var(--mg-muted);
}

.mg-mt-lu__verdict {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid var(--mg-border);
    border-radius: 3px;
    background: var(--mg-white);
}

.mg-mt-lu__badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mg-mt-lu__badge--ok {
    background: #e8f5e9;
    color: #1b5e20;
}

.mg-mt-lu__badge--warn {
    background: #fff8e1;
    color: #8a5a00;
}

.mg-mt-lu__badge--fail {
    background: #fdecea;
    color: #b42318;
}

.mg-mt-lu__verdict-text {
    margin: 0;
    flex: 1 1 240px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.mg-mt-lu__checks {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mg-mt-lu__check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--mg-border);
    border-radius: 3px;
    background: var(--mg-white);
}

.mg-mt-lu__check--skipped {
    border-color: var(--mg-border);
    background: var(--mg-white);
}

.mg-mt-lu__check--skipped .mg-mt-lu__check-icon {
    color: var(--mg-muted);
}

.mg-mt-lu__check--success {
    border-color: #bfdbfe;
    background: var(--mg-cream);
}

.mg-mt-lu__check--warning {
    border-color: #fcd34d;
    background: #fffbeb;
}

.mg-mt-lu__check--failure {
    border-color: #fca5a5;
    background: #fef2f2;
}

.mg-mt-lu__check-icon {
    flex-shrink: 0;
    width: 1.5rem;
    font-weight: 700;
    color: var(--mg-blue-link);
}

.mg-mt-lu__check--failure .mg-mt-lu__check-icon {
    color: #B91C1C;
}

.mg-mt-lu__check--warning .mg-mt-lu__check-icon {
    color: #8a5a00;
}

.mg-mt-lu__check-title {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 15px;
}

.mg-mt-lu__check-detail {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--mg-black);
}

.mg-mt-lu__block {
    margin-bottom: 16px;
    padding: 16px 18px;
    border: 1px solid var(--mg-border);
    border-radius: 3px;
    background: var(--mg-white);
}

.mg-mt-lu__block-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
}

.mg-mt-lu__uri-list,
.mg-mt-lu__tips {
    margin: 0;
    padding-left: 1.1rem;
}

.mg-mt-lu__uri-list li {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.mg-mt-lu__tips li {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.mg-mt-lu__uri-kind {
    color: var(--mg-muted);
    font-size: 13px;
    font-weight: 600;
}

.mg-mt-lu__note {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--mg-muted);
    font-weight: 600;
}

@media (max-width: 720px) {
    .mg-mt__api-promo {
        padding: 48px 0;
    }
}

/* Actionable checks (#18940) */
.mg-mt__checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mg-mt__check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--mg-border);
    border-radius: 3px;
    background: var(--mg-white);
}

.mg-mt__check--success {
    border-color: #bfdbfe;
    background: var(--mg-cream);
}

.mg-mt__check--warning {
    border-color: #fcd34d;
    background: #fffbeb;
}

.mg-mt__check--failure {
    border-color: #fca5a5;
    background: #fef2f2;
}

.mg-mt__check--neutral {
    background: var(--mg-cream);
}

.mg-mt__check-mark {
    flex-shrink: 0;
    min-width: 2.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--mg-blue-link);
}

.mg-mt__check-mark--bad {
    color: #B91C1C;
}

.mg-mt__check-mark--good {
    color: var(--mg-blue-link);
}

.mg-mt__check-title {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 15px;
}

.mg-mt__check-advice {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--mg-black);
}

.mg-mt__subsection-title {
    margin: 20px 0 12px;
}

.mg-mt__disclaimer {
    margin: 12px 0 0;
    max-width: 40em;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--mg-muted);
}

.mg-mt__analyzed {
    margin: 10px 0 0;
    max-width: 40em;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--mg-muted);
}

.mg-mt__analyzed #mg-mt-analyzed-text {
    margin-right: 0.35em;
}

body.mg-site--v2b .mg-mt__reanalyze-link.mg2-textlink {
    color: var(--mg-blue-link);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

body.mg-site--v2b .mg-mt__reanalyze-link.mg2-textlink:hover {
    color: var(--mg-blue-hover);
}

body.mg-site--v2b .mg-mt__reanalyze-link.mg2-textlink:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mg-mt__retention {
    margin: 8px 0 0;
    max-width: 40em;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--mg-muted);
}

.mg-mt__retention-actions {
    margin: 6px 0 0;
    max-width: 40em;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

body.mg-site--v2b .mg-mt__extend-link.mg2-textlink {
    color: var(--mg-blue-link);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

body.mg-site--v2b .mg-mt__extend-link.mg2-textlink:hover {
    color: var(--mg-blue-hover);
}

body.mg-site--v2b .mg-mt__extend-link.mg2-textlink:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mg-mt__extend-status {
    margin-left: 10px;
    color: var(--mg-muted);
}

.mg-mt__recent {
    margin-top: 36px;
    max-width: 640px;
}

.mg-mt__recent-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.mg-mt__recent-lead {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mg-muted);
}

.mg-mt__recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mg-mt__recent-item {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-top: 1px solid var(--mg-border);
}

.mg-mt__recent-thumb-link {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
    text-decoration: none;
}

.mg-mt__recent-thumb {
    display: block;
    width: 140px;
    height: 180px;
    object-fit: cover;
    object-position: top center;
    background: #fff;
    border: 1px solid var(--mg-border, #e5e1dc);
}

@media (max-width: 560px) {
    .mg-mt__recent-thumb {
        width: 104px;
        height: 134px;
    }
}

.mg-mt__recent-thumb--empty {
    background: var(--mg-cream, #F2EEEB);
}

.mg-mt__recent-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.mg-mt__recent-link {
    font-size: 15px;
    font-weight: 700;
    color: var(--mg-blue-link);
    text-decoration: none;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.mg-mt__recent-link:hover {
    color: var(--mg-blue-hover);
}

.mg-mt__recent-meta {
    font-size: 13px;
    font-weight: 600;
    color: var(--mg-muted);
    font-variant-numeric: tabular-nums;
}

/* Partner embed / iframe (/tools/mail-tester/embed) — #21430 */
.mg-mt-embed-brand {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--mg-black, #000);
    color: var(--mg-white, #fff);
    border-bottom: 1px solid var(--mg-black, #000);
}
/* Не прятать полосу правилами темы (крошки/промо ниже — отдельно). Снятие только WL на сервере. */
body.mg-mt--embed .mg-mt-embed-brand,
body.mg-mt-embed-body .mg-mt-embed-brand {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
}
.mg-mt-embed-brand__link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
    padding: 10px 16px;
    color: inherit;
    text-decoration: none;
    font-family: inherit;
}
.mg-mt-embed-brand__link:hover,
.mg-mt-embed-brand__link:focus {
    color: var(--mg-white, #fff);
    text-decoration: none;
}
.mg-mt-embed-brand__mark {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
}
.mg-mt-embed-brand__hint {
    font-weight: 600;
    font-size: 13px;
    opacity: 0.78;
}

body.mg-mt--embed,
body.mg-mt-embed-body {
    background: var(--mg-white);
    margin: 0;
}

body.mg-mt--embed .mg-tool__crumbs,
body.mg-mt-embed-body .mg-tool__crumbs,
body.mg-mt--embed .mg-mt__recent,
body.mg-mt-embed-body .mg-mt__recent,
body.mg-mt--embed .mg-mt__api-promo,
body.mg-mt-embed-body .mg-mt__api-promo,
body.mg-mt--embed .mg-mt__lu-details,
body.mg-mt-embed-body .mg-mt__lu-details {
    display: none !important;
}

body.mg-mt--embed .mg-mt__hero,
body.mg-mt-embed-body .mg-mt__hero {
    padding: 24px 0 16px;
    background: var(--mg-white);
}

body.mg-mt--embed .mg2-hero__title,
body.mg-mt-embed-body .mg2-hero__title {
    font-size: clamp(28px, 4vw, 40px);
}

body.mg-mt--embed .mg2-hero__lead,
body.mg-mt-embed-body .mg2-hero__lead {
    font-size: 15px;
    max-width: 36em;
}

body.mg-mt--embed .mg-mt__report,
body.mg-mt-embed-body .mg-mt__report {
    padding-top: 16px;
}

.mg-mt-embed-main {
    min-height: 100vh;
}

.mg-mt__report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}


/* Email Screenshot section */
.mg-mt__shots {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 20px;
    margin-top: 12px;
    align-items: start;
}
.mg-mt__shot {
    margin: 0;
    padding: 12px;
    background: var(--mg-cream, #F2EEEB);
    border: 1px solid var(--mg-border, #e5e1dc);
}
.mg-mt__shot figcaption {
    font-weight: 700;
    margin-bottom: 8px;
}
.mg-mt__shot img {
    display: block;
    max-width: 100%;
    height: auto;
    background: #fff;
    border: 1px solid var(--mg-border, #e5e1dc);
}
.mg-mt__shot-dl {
    margin-top: 10px;
    display: inline-flex;
}
@media (max-width: 720px) {
    .mg-mt__shots {
        grid-template-columns: 1fr;
    }
}

/* Dark theme: semantic pastels on dark surface */
html[data-theme="dark"] .mg-mt-status-badge.pass { background: #064e3b; color: #a7f3d0; }
html[data-theme="dark"] .mg-mt-status-badge.fail { background: #7f1d1d; color: #fecaca; }
html[data-theme="dark"] .mg-mt-status-badge.warn { background: #78350f; color: #fde68a; }
html[data-theme="dark"] .mg-mt-status-badge.neutral { background: var(--mg-cream); color: var(--mg-muted); }
html[data-theme="dark"] .mg-mt-lu__badge--ok { background: #064e3b; color: #a7f3d0; }
html[data-theme="dark"] .mg-mt-lu__badge--warn { background: #78350f; color: #fde68a; }
html[data-theme="dark"] .mg-mt-lu__badge--fail { background: #7f1d1d; color: #fecaca; }
html[data-theme="dark"] .mg-mt__error {
    background: #3f1515;
    border-color: #b91c1c;
}
html[data-theme="dark"] .mg-mt__tab.active,
html[data-theme="dark"] .mg-mt__device.active {
    color: var(--mg-on-accent, #fff);
}
html[data-theme="dark"] body.mg-site--v2b .mg-mt__check-btn.mg2-btn--fill {
    color: var(--mg-on-accent, #fff);
}
html[data-theme="dark"] .mg-mt-lu__check--skipped {
    background: var(--mg-surface, #1a1a1a);
    border-color: var(--mg-border);
}
html[data-theme="dark"] .mg-mt-lu__check--warning,
html[data-theme="dark"] .mg-mt__check--warning {
    background: #3b2f14;
    border-color: #fcd34d;
}
html[data-theme="dark"] .mg-mt-lu__check--failure,
html[data-theme="dark"] .mg-mt__check--failure {
    background: #3f1515;
    border-color: #fca5a5;
}
