/* MXScan shared UI controls — works with Tailwind CDN (no Vite build required). */

.mx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease;
    text-decoration: none;
    white-space: nowrap;
}

/* Report hierarchy and remediation refinement */
.report-hero {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid #dbe3ee;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.06);
}

.report-eyebrow {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.report-hero-summary,
.report-priority-card {
    min-width: 0;
    padding: 1rem;
    border-radius: 0.875rem;
}

.report-hero-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.report-hero-summary h2,
.report-priority-heading h2 {
    margin-top: 0.35rem;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
}

.report-hero-summary dl {
    display: grid;
    gap: 0.625rem;
    margin-top: 1rem;
}

.report-hero-summary dl div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    color: #475569;
    font-size: 0.875rem;
}

.report-hero-summary dd {
    color: #0f172a;
    font-weight: 700;
}

.report-priority-card {
    border-left: 4px solid #dc2626;
    background: #fff7ed;
    border-block: 1px solid #fed7aa;
    border-right: 1px solid #fed7aa;
}

.report-priority-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
}

.report-priority-explanation {
    margin-top: 0.75rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.55;
}

.report-priority-actions,
.mx-recommendation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.report-summary-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr);
}

.report-summary-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    min-width: 0;
    min-height: 8.75rem;
    padding: 1rem;
    border: 1px solid #dbe3ee;
    border-left: 4px solid #64748b;
    border-radius: 0.875rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.report-summary-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 8px 20px rgb(15 23 42 / 0.08);
}

.report-summary-card:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.report-summary-card--success { border-left-color: #15803d; }
.report-summary-card--warning { border-left-color: #d97706; }
.report-summary-card--danger { border-left-color: #dc2626; }

.report-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: #f1f5f9;
    color: #475569;
}

.report-summary-icon svg { width: 1rem; height: 1rem; }

.report-summary-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.report-summary-label {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.report-summary-evidence,
.report-summary-score,
.mx-recommendation-category,
.mx-recommendation-summary {
    color: #475569;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.report-summary-score { font-weight: 650; }

.report-score-impact {
    display: inline-flex;
    width: fit-content;
    color: #1d4ed8;
    font-size: 0.8125rem;
    font-weight: 700;
}

.mx-recommendation-card-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
}

.mx-recommendation-rank,
.mx-recommendation-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mx-recommendation-rank {
    flex-direction: column;
    align-items: flex-start;
}

.mx-recommendation-card-header h3 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.4;
}

.mx-recommendation-summary { margin-top: 0.45rem; }

.mx-recommendation-action {
    justify-content: flex-end;
    color: #1d4ed8;
    font-size: 0.875rem;
    font-weight: 700;
}

.mx-recommendation-action svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #64748b;
    transition: transform 175ms ease;
}

.mx-recommendation-detail-grid {
    display: grid;
    gap: 1rem;
    padding-top: 0.75rem;
}

.mx-recommendation-detail-grid section {
    min-width: 0;
}

.mx-recommendation-detail-grid h4 {
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 700;
}

.mx-recommendation-detail-grid p {
    margin-top: 0.35rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.55;
}

.report-warning-panel,
.report-success-panel {
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.report-warning-panel {
    border: 1px solid #fbbf24;
    background: #fffbeb;
    color: #78350f;
}

.report-success-panel {
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #14532d;
}

.report-record-diff {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.875rem;
    border: 1px solid #dbe3ee;
    border-radius: 0.75rem;
    background: #fff;
}

.report-record-diff-row,
.report-copy-field {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.report-record-diff-row {
    padding: 0.625rem;
    border-left: 3px solid;
    border-radius: 0.375rem;
}

.report-record-diff-row--remove { border-color: #dc2626; background: #fef2f2; }
.report-record-diff-row--add { border-color: #15803d; background: #f0fdf4; }

.report-record-diff code,
.report-copy-field code {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    user-select: text;
}

.report-copy-field {
    margin-top: 0.625rem;
}

.report-copy-field .mx-btn {
    width: fit-content;
    min-height: 2.75rem;
}

.report-generated-record {
    border-color: #86efac;
    background: #f0fdf4;
}

.mx-tech-remediation-layout {
    grid-template-columns: minmax(0, 1fr);
}

.mx-tech-remediation-context {
    min-width: 0;
}

.mx-spf-step-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.mx-spf-step-nav button {
    min-height: 2.75rem;
    padding: 0.625rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    background: #fff;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 650;
}

.mx-spf-step-nav button[aria-current="step"] {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.mx-spf-step-panel,
.mx-spf-provider-selector {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.mx-spf-provider-selector select,
.mx-spf-provider-selector input,
.mx-dns-provider-instructions select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #fff;
    font-size: 0.875rem;
}

.mx-spf-provider-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.mx-copy-feedback {
    min-height: 1.25rem;
    color: #166534;
    font-size: 0.8125rem;
}

.mx-btn,
button,
select {
    touch-action: manipulation;
}

.report-mobile-action-bar {
    display: flex;
    gap: 0.5rem;
}

@media (min-width: 375px) {
    .report-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .report-hero {
        grid-template-columns: minmax(13rem, 0.7fr) minmax(15rem, 0.8fr) minmax(0, 1.5fr);
        align-items: stretch;
        padding: 1.5rem;
    }

    .report-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mx-tech-remediation-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .mx-tech-remediation-context {
        grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
        align-items: stretch;
    }

    .mx-tech-solution-panel {
        width: 100%;
    }
}

/* Dashboard */
.dashboard-page-heading h1,
.dashboard-section-heading h2,
.dashboard-hero h2,
.dashboard-priority-action h2 {
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-page-heading h1 {
    margin-top: 0.125rem;
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    line-height: 1.2;
}

.dashboard-page-heading > div > p:last-child,
.dashboard-section-heading p {
    margin-top: 0.375rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.5;
}

.dashboard-eyebrow {
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.dashboard-hero {
    display: grid;
    min-width: 0;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid #dbe3ef;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.06);
}

.dashboard-hero-score,
.dashboard-hero-priority,
.dashboard-hero-actions {
    min-width: 0;
}

.dashboard-score-value {
    margin-top: 0.35rem;
    color: #0f172a;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
}

.dashboard-score-value span {
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}

.dashboard-score-status {
    margin-top: 0.5rem;
    color: #9a3412;
    font-size: 0.875rem;
    font-weight: 700;
}

.dashboard-score-progress {
    width: min(100%, 15rem);
    height: 0.45rem;
    margin-top: 0.75rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.dashboard-score-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
}

.dashboard-domain {
    margin-top: 0.875rem;
    color: #1e293b;
    font-size: 0.9375rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.dashboard-scan-date {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.dashboard-hero-priority h2 {
    margin-top: 0.4rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.dashboard-hero-priority > p:not(.dashboard-eyebrow) {
    max-width: 38rem;
    margin-top: 0.6rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.55;
}

.dashboard-priority-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.dashboard-hero-actions,
.dashboard-priority-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.dashboard-hero-actions .mx-btn,
.dashboard-priority-action-buttons .mx-btn {
    width: 100%;
    min-height: 2.75rem;
    justify-content: center;
}

.dashboard-priority-section,
.dashboard-metrics-section {
    display: grid;
    gap: 0.875rem;
}

.dashboard-section-heading h2 {
    font-size: 1.25rem;
    line-height: 1.3;
}

.dashboard-priority-action {
    display: grid;
    min-width: 0;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #fbbf24;
    border-left: 4px solid #d97706;
    border-radius: 1rem;
    background: #fffbeb;
    box-shadow: 0 5px 16px rgb(120 53 15 / 0.06);
}

.dashboard-priority-action h2 {
    margin-top: 0.35rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.dashboard-priority-action-copy > p:last-child {
    margin-top: 0.75rem;
    color: #334155;
    font-size: 0.875rem;
    line-height: 1.55;
}

.dashboard-next-actions {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 4px 14px rgb(15 23 42 / 0.04);
}

.dashboard-next-actions > h3 {
    color: #334155;
    font-size: 0.875rem;
    font-weight: 700;
}

.dashboard-recommendation-list {
    margin-top: 0.5rem;
}

.dashboard-recommendation-row {
    display: grid;
    min-width: 0;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
}

.dashboard-recommendation-row:first-child {
    border-top: 0;
}

.dashboard-recommendation-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8125rem;
    font-weight: 800;
}

.dashboard-recommendation-copy {
    min-width: 0;
}

.dashboard-recommendation-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-recommendation-heading h3 {
    color: #0f172a;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.4;
}

.dashboard-recommendation-copy > .report-score-impact {
    margin-top: 0.45rem;
}

.dashboard-recommendation-copy > p {
    margin-top: 0.45rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.5;
}

.dashboard-recommendation-button {
    width: 100%;
    min-height: 2.75rem;
    justify-content: center;
}

.dashboard-metric-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.875rem;
}

.dashboard-metric-card {
    position: relative;
    min-width: 0;
    padding: 1.125rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 4px 14px rgb(15 23 42 / 0.04);
}

.dashboard-metric-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: #94a3b8;
    content: "";
}

.dashboard-metric-card--danger::before { background: #dc2626; }
.dashboard-metric-card--warning::before { background: #d97706; }
.dashboard-metric-card--success::before { background: #059669; }

.dashboard-metric-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.dashboard-metric-header h3 {
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.4;
}

.dashboard-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border-radius: 0.6rem;
    background: #f1f5f9;
    color: #475569;
}

.dashboard-metric-icon svg {
    width: 1rem;
    height: 1rem;
}

.dashboard-metric-value {
    margin-top: 0.75rem;
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

.dashboard-metric-description {
    min-height: 2.7rem;
    margin-top: 0.5rem;
    color: #475569;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.dashboard-metric-action {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    gap: 0.3rem;
    margin-top: 0.5rem;
    color: #1d4ed8;
    font-size: 0.8125rem;
    font-weight: 700;
}

.dashboard-metric-action svg {
    width: 0.875rem;
    height: 0.875rem;
}

.dashboard-score-history {
    min-width: 0;
    padding: 1.25rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 4px 14px rgb(15 23 42 / 0.04);
}

.dashboard-chart-wrap {
    position: relative;
    width: 100%;
    height: 15rem;
    min-width: 0;
    margin-top: 1rem;
    overflow: hidden;
}

.dashboard-chart-wrap--sparse {
    height: 11rem;
}

.dashboard-chart-empty {
    display: grid;
    justify-items: center;
    padding: 2rem 1rem;
    text-align: center;
}

.dashboard-chart-empty svg {
    width: 2rem;
    height: 2rem;
    color: #94a3b8;
}

.dashboard-chart-empty h3 {
    margin-top: 0.75rem;
    color: #1e293b;
    font-size: 0.9375rem;
    font-weight: 700;
}

.dashboard-chart-empty p {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.dashboard-incident-alert {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #fecaca;
    border-radius: 1rem;
    background: #fef2f2;
}

.dashboard-incident-alert h2 {
    margin-top: 0.25rem;
    color: #991b1b;
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-incident-alert p:last-child {
    margin-top: 0.35rem;
    color: #7f1d1d;
    font-size: 0.875rem;
    line-height: 1.5;
}

.dashboard-incident-alert .mx-btn {
    min-height: 2.75rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .dashboard-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-priority-action,
    .dashboard-incident-alert {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .dashboard-priority-action-buttons .mx-btn,
    .dashboard-incident-alert .mx-btn {
        width: auto;
    }

    .dashboard-recommendation-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .dashboard-recommendation-button {
        width: auto;
    }
}

@media (min-width: 1024px) {
    .dashboard-hero {
        grid-template-columns: minmax(12rem, 0.8fr) minmax(22rem, 1.45fr) minmax(10rem, 0.65fr);
        align-items: center;
        padding: 1.5rem;
    }

    .dashboard-hero-priority {
        padding: 0.25rem 1.5rem;
        border-right: 1px solid #e2e8f0;
        border-left: 1px solid #e2e8f0;
    }

    .dashboard-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .dashboard-hero-actions .mx-btn,
    .dashboard-priority-action-buttons .mx-btn,
    .dashboard-recommendation-button,
    .dashboard-incident-alert .mx-btn {
        width: 100%;
    }

    .dashboard-chart-wrap {
        height: 11rem;
    }

    .dashboard-chart-wrap--sparse {
        height: 9.5rem;
    }
}

@media (max-width: 767px) {
    .report-hero,
    .report-hero-summary,
    .report-priority-card {
        padding: 1rem;
    }

    .report-priority-actions,
    .mx-recommendation-buttons,
    .report-mobile-action-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .report-priority-actions .mx-btn,
    .mx-recommendation-buttons .mx-btn,
    .report-mobile-action-bar .mx-btn {
        width: 100%;
        min-height: 2.75rem;
    }

    .mx-recommendation-card-header {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .mx-recommendation-rank {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .mx-recommendation-action span {
        display: none;
    }

    .mx-spf-step-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .mx-spf-provider-results {
        grid-template-columns: minmax(0, 1fr);
    }

    .mx-spf-step-panel:not([style*="display: none"]) {
        display: grid;
    }

    .mx-dns-solution-value code,
    .mx-policy-file pre,
    .mx-evidence-record code {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        overflow-wrap: normal;
        white-space: pre;
    }
}

@media (max-width: 374px) {
    .report-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mx-tech-toolbar-sep {
        display: none;
    }

    .mx-tech-check-status-slot {
        width: 100%;
        margin-left: 2.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.mx-btn:focus {
    outline: none;
}

.mx-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.mx-btn:disabled,
.mx-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.mx-btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.mx-btn-primary:hover:not(:disabled):not([disabled]) {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.mx-btn-secondary {
    background-color: #ffffff;
    border-color: #d1d5db;
    color: #1f2937;
}

.mx-btn-secondary:hover:not(:disabled):not([disabled]) {
    background-color: #f9fafb;
}

.mx-btn-danger {
    background-color: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.mx-btn-danger:hover:not(:disabled):not([disabled]) {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.mx-btn-success {
    background-color: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.mx-btn-success:hover:not(:disabled):not([disabled]) {
    background-color: #15803d;
    border-color: #15803d;
}

.mx-btn-ghost {
    background-color: transparent;
    border-color: transparent;
    color: #6b7280;
    padding: 0.375rem;
}

.mx-btn-ghost:hover:not(:disabled):not([disabled]) {
    background-color: #f3f4f6;
    color: #374151;
}

.mx-btn-block {
    display: flex;
    width: 100%;
}

.mx-btn-sm {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    line-height: 1rem;
    gap: 0.375rem;
}

.mx-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5rem;
}

/* Scan report — shared presentation tokens */

.mx-report-section-title {
    font-size: 1.375rem;
    line-height: 1.35;
    font-weight: 600;
    color: #111827;
}

.mx-report-section-subtitle {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4b5563;
}

.mx-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 1.625rem;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1.25rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid transparent;
}

.mx-status-pill-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.mx-status-pill--success {
    background-color: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.mx-status-pill--success .mx-status-pill-dot {
    background-color: #10b981;
}

.mx-status-pill--warning {
    background-color: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.mx-status-pill--warning .mx-status-pill-dot {
    background-color: #f59e0b;
}

.mx-status-pill--danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.mx-status-pill--danger .mx-status-pill-dot {
    background-color: #ef4444;
}

.mx-status-pill--info {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.mx-status-pill--info .mx-status-pill-dot {
    background-color: #3b82f6;
}

.mx-status-pill--neutral {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

.mx-status-pill--neutral .mx-status-pill-dot {
    background-color: #9ca3af;
}

.mx-tech-category-card {
    border-radius: 0.875rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04);
}

.mx-tech-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 0.875rem 0.875rem 0 0;
}

.mx-tech-check-row {
    border-bottom: 1px solid #f3f4f6;
}

.mx-tech-check-row:last-child {
    border-bottom: none;
}

.mx-tech-check-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.875rem 1.25rem;
    min-height: 4.25rem;
    cursor: pointer;
    list-style: none;
    transition: background-color 150ms ease;
}

.mx-tech-check-summary::-webkit-details-marker {
    display: none;
}

.mx-tech-check-summary::marker {
    display: none;
    content: '';
}

.mx-tech-check-summary:hover {
    background-color: #fafafa;
}

.mx-tech-check-summary:focus {
    outline: none;
}

.mx-tech-check-summary:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

.mx-tech-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
}

.mx-tech-check-main {
    display: flex;
    min-width: 0;
    flex: 1 1 12rem;
    flex-direction: column;
    gap: 0.25rem;
}

.mx-tech-check-title {
    font-size: 0.875rem;
    line-height: 1.35;
    font-weight: 600;
    color: #111827;
}

.mx-tech-check-desc {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6b7280;
}

.mx-tech-check-status-slot {
    flex: 0 0 auto;
}

.mx-tech-check-meta-slot {
    display: none;
    flex: 0 0 auto;
    font-size: 0.75rem;
    line-height: 1.25rem;
    color: #6b7280;
}

.mx-tech-check-action-slot {
    display: none;
    flex: 0 0 auto;
    text-align: right;
}

.mx-tech-check-chevron-slot {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.mx-tech-check-mobile-bar {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (max-width: 767px) {
    .mx-tech-check-main {
        flex: 1 1 calc(100% - 5.5rem);
        order: 2;
    }

    .mx-tech-check-status-slot {
        order: 3;
        margin-left: auto;
    }

    .mx-tech-check-icon {
        order: 1;
    }

    .mx-tech-check-mobile-bar {
        order: 4;
    }
}

@media (min-width: 768px) {
    .mx-tech-check-summary {
        flex-wrap: nowrap;
    }

    .mx-tech-check-main {
        flex: 1 1 auto;
    }

    .mx-tech-check-status-slot {
        flex: 0 0 7.5rem;
    }

    .mx-tech-check-meta-slot {
        display: block;
        flex: 0 0 5.5rem;
    }

    .mx-tech-check-action-slot {
        display: block;
        flex: 0 0 6.5rem;
    }

    .mx-tech-check-chevron-slot {
        display: flex;
        flex: 0 0 1.25rem;
    }

    .mx-tech-check-mobile-bar {
        display: none;
    }
}

.mx-tech-check-chevron {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    max-width: 1.25rem;
    max-height: 1.25rem;
    color: #9ca3af;
    transition: transform 175ms ease;
    flex-shrink: 0;
}

details[open] > summary .mx-tech-check-chevron {
    transform: rotate(90deg);
}

details[open] > summary .mx-tech-check-action-slot .mx-tech-check-action,
details[open] > summary .mx-tech-check-mobile-bar .mx-tech-check-action {
    display: none;
}

.mx-tech-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.625rem;
    font-size: 0.75rem;
    line-height: 1.25rem;
    color: #6b7280;
}

.mx-tech-toolbar-btn {
    border: none;
    background: transparent;
    padding: 0.125rem 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
}

.mx-tech-toolbar-btn:hover {
    color: #111827;
    text-decoration: underline;
}

.mx-tech-toolbar-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 0.125rem;
}

.mx-tech-toolbar-sep {
    color: #d1d5db;
    user-select: none;
}

.mx-tech-toolbar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: 0.25rem;
    cursor: pointer;
    user-select: none;
}

.mx-tech-toolbar-checkbox {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 0.125rem;
    border: 1px solid #d1d5db;
    accent-color: #2563eb;
}

.mx-tech-detail-sections {
    display: grid;
    gap: 0.875rem;
}

.mx-tech-detail-block {
    display: grid;
    gap: 0.375rem;
}

.mx-tech-detail-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
}

.mx-tech-detail-text {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6b7280;
}

.mx-tech-detail-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1d4ed8;
}

.mx-tech-detail-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.mx-evidence-panel {
    margin: 0 1.25rem 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: #f9fafb;
    border: 1px solid #f3f4f6;
}

.mx-evidence-panel-grid {
    display: grid;
    gap: 0.875rem;
}

@media (min-width: 768px) {
    .mx-evidence-panel-grid--split {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    }
}

.mx-dns-value-block {
    position: relative;
    min-width: 0;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 2.75rem 0.75rem 0.75rem;
}

.mx-dns-value-block code {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #111827;
    word-break: break-all;
    white-space: pre-wrap;
}

.mx-dns-value-copy {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.mx-recommendation-card {
    overflow: hidden;
    border-radius: 0.875rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.mx-recommendation-card:hover {
    border-color: #d1d5db;
}

.mx-recommendation-card--high,
.mx-recommendation-card--critical {
    border-left: 3px solid #f59e0b;
}

.mx-recommendation-card--critical {
    border-left-color: #ef4444;
}

.mx-recommendation-card-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem 1rem;
    padding: 1rem 1.25rem;
    text-align: left;
    width: 100%;
    cursor: pointer;
    border: none;
    background: transparent;
    min-height: 2.75rem;
}

.mx-recommendation-card-header:focus {
    outline: none;
}

.mx-recommendation-card-header:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
}

.mx-recommendation-priority {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}

.mx-recommendation-expanded {
    border-top: 1px solid #f3f4f6;
    padding: 0 1.25rem 1.25rem;
}

.mx-evidence-table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.mx-evidence-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    padding: 0 1rem 0.5rem 0;
}

.mx-evidence-table td {
    padding: 0.625rem 1rem 0.625rem 0;
    border-top: 1px solid #f3f4f6;
    vertical-align: top;
}

.mx-evidence-table tbody tr:nth-child(even) td {
    background-color: rgb(249 250 251 / 0.6);
}

.mx-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background-color: #f3f4f6;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    line-height: 1.25rem;
    color: #374151;
}

.mx-dkim-selectors {
    margin-top: 0.5rem;
}

.mx-dkim-table {
    width: 100%;
    border-collapse: collapse;
}

.mx-dkim-table th {
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 0 0.75rem 0.375rem 0;
}

.mx-dkim-table-row td {
    padding: 0.625rem 0.75rem 0.625rem 0;
    border-top: 1px solid #f3f4f6;
    vertical-align: middle;
    font-size: 0.8125rem;
    line-height: 1.25rem;
    min-height: 3rem;
}

.mx-dkim-detail-row td {
    padding: 0 0 0.75rem;
    border-top: none;
}

.mx-dkim-view-btn {
    border: none;
    background: transparent;
    padding: 0.25rem 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1d4ed8;
    cursor: pointer;
}

.mx-dkim-view-btn:hover {
    text-decoration: underline;
}

.mx-dkim-record-detail {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    padding: 0.75rem;
}

.mx-dkim-record-meta {
    display: grid;
    gap: 0.5rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 0.75rem;
}

.mx-dkim-record-meta dt {
    color: #9ca3af;
    font-weight: 500;
}

.mx-dkim-record-meta dd {
    margin: 0;
    color: #111827;
}

.mx-dkim-record-value {
    margin-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 0.75rem;
}

.mx-dkim-table--desktop {
    display: none;
}

.mx-dkim-table--mobile {
    display: grid;
    gap: 0.5rem;
}

.mx-dkim-mobile-row {
    border-top: 1px solid #f3f4f6;
    padding-top: 0.5rem;
}

.mx-dkim-mobile-row-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.5rem 0.75rem;
    align-items: center;
    min-height: 3rem;
}

@media (min-width: 768px) {
    .mx-dkim-table--desktop {
        display: table;
    }

    .mx-dkim-table--mobile {
        display: none;
    }
}

/* Solution-first technical checks */
.mx-tech-category-card {
    overflow: hidden;
    border-color: #dbe3ee;
    background: #fff;
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.06);
}

.mx-tech-category-header {
    min-height: 4.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom-color: #dbe3ee;
}

.mx-tech-category-header h3 {
    font-size: 1rem !important;
}

.mx-tech-check-row {
    position: relative;
    border-left: 4px solid transparent;
}

.mx-tech-check-row--failing {
    border-left-color: #dc2626;
}

.mx-tech-check-row--failing.mx-tech-check-row:has(.mx-status-pill--warning) {
    border-left-color: #d97706;
}

.mx-tech-check-row--failing > .mx-tech-check-summary {
    background: #fff8f7;
}

.mx-tech-check-row--failing > .mx-tech-check-summary:hover {
    background: #fff1ef;
}

.mx-tech-check-row--passing > .mx-tech-check-summary {
    min-height: 3.75rem;
    background: #fff;
}

.mx-tech-check-row--passing .mx-tech-check-icon {
    background: #f0fdf4;
    color: #15803d;
}

.mx-tech-check-row--optional {
    border-left-color: #94a3b8;
}

.mx-tech-check-row--optional > .mx-tech-check-summary {
    background: #f8fafc;
}

.mx-tech-check-title {
    font-size: 0.9375rem;
    font-weight: 700;
}

.mx-tech-check-desc,
.mx-tech-detail-text {
    font-size: 0.875rem;
}

.mx-tech-lost-points {
    color: #b91c1c;
    white-space: nowrap;
}

.mx-tech-optional-label,
.mx-confidence-badge {
    display: inline-flex;
    width: fit-content;
    border-radius: 9999px;
    padding: 0.2rem 0.6rem;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
}

.mx-tech-check-detail {
    padding: 0 1rem 1rem;
}

.mx-tech-remediation-layout {
    display: grid;
    gap: 1rem;
    padding-top: 0.25rem;
}

.mx-tech-remediation-context {
    display: grid;
    align-content: start;
    gap: 0.875rem;
}

.mx-tech-issue-panel,
.mx-tech-evidence-panel,
.mx-tech-solution-panel {
    min-width: 0;
    border-radius: 0.875rem;
    padding: 1rem;
}

.mx-tech-issue-panel {
    border: 1px solid #fecaca;
    background: #fff7f7;
}

.mx-tech-evidence-panel {
    margin: 0;
    border: 1px solid #dbe3ee;
    background: #f8fafc;
}

.mx-tech-solution-panel {
    display: grid;
    align-content: start;
    gap: 1rem;
    border: 1px solid #93c5fd;
    background: linear-gradient(145deg, #eff6ff, #f0fdfa);
    box-shadow: 0 10px 24px rgb(37 99 235 / 0.08);
}

.mx-tech-panel-label {
    margin-bottom: 0.625rem;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mx-tech-solution-panel > .mx-tech-panel-label {
    color: #1d4ed8;
}

.mx-tech-issue-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.mx-tech-issue-heading h4,
.mx-tech-solution-panel h4,
.mx-tech-solution-panel h5 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 750;
}

.mx-tech-issue-heading p,
.mx-tech-solution-panel p,
.mx-tech-evidence-panel p {
    margin-top: 0.35rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.55;
}

.mx-tech-issue-metrics {
    display: grid;
    flex: 0 0 auto;
    gap: 0.2rem;
    text-align: right;
    color: #7f1d1d;
    font-size: 0.8125rem;
}

.mx-evidence-record,
.mx-certificate-evidence {
    display: grid;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    background: #fff;
}

.mx-evidence-record code,
.mx-tech-evidence-panel > code,
.mx-policy-file code {
    display: block;
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: 0.8125rem;
}

.mx-certificate-evidence dl {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.mx-certificate-evidence dl div {
    display: grid;
    grid-template-columns: minmax(8rem, 0.4fr) minmax(0, 1fr);
    gap: 0.75rem;
}

.mx-certificate-evidence dt,
.mx-dns-solution-fields dt {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.mx-detected-sender {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    background: #fff;
}

.mx-detected-sender > div {
    display: grid;
    gap: 0.35rem;
}

.mx-detected-sender code {
    overflow-wrap: anywhere;
    font-size: 0.8125rem;
}

.mx-spf-builder,
.mx-spf-generated-record,
.mx-spf-provider-picker {
    display: grid;
    gap: 1rem;
}

.mx-spf-step h5 {
    font-size: 1rem;
}

.mx-spf-provider-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.mx-spf-provider-grid label,
.mx-spf-policy-options label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 2.75rem;
    padding: 0.625rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    background: #fff;
    cursor: pointer;
}

.mx-spf-provider-grid input,
.mx-spf-policy-options input {
    width: 1rem;
    height: 1rem;
}

.mx-custom-sender-input {
    display: flex;
    gap: 0.5rem;
}

.mx-custom-sender-input input,
.mx-dns-provider-instructions select {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid #94a3b8;
    border-radius: 0.625rem;
    background: #fff;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
}

.mx-spf-record-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.mx-spf-record-heading > strong,
.mx-tech-score-gain strong {
    color: #166534;
}

.mx-dns-solution-record {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #86efac;
    border-radius: 0.75rem;
    background: #f0fdf4;
}

.mx-dns-solution-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.mx-dns-solution-fields > div {
    display: grid;
    gap: 0.25rem;
}

.mx-dns-solution-value {
    grid-column: 1 / -1;
}

.mx-dns-solution-value dd {
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #052e16;
    color: #bbf7d0;
}

.mx-dns-solution-value code {
    display: block;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.mx-tech-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
}

.mx-tech-action-row .mx-dns-value-copy,
.mx-tech-solution-panel .mx-dns-value-copy {
    position: static;
}

.mx-spf-policy-options,
.mx-spf-validation,
.mx-tech-callout,
.mx-dns-provider-steps,
.mx-policy-file {
    display: grid;
    gap: 0.625rem;
    padding: 0.875rem;
    border-radius: 0.75rem;
}

.mx-spf-validation--ready {
    border: 1px solid #86efac;
    background: #f0fdf4;
}

.mx-spf-validation--warning,
.mx-tech-callout {
    border: 1px solid #fcd34d;
    background: #fffbeb;
}

.mx-spf-validation ul,
.mx-dns-provider-steps ol,
.mx-provider-setup ol,
.mx-solution-steps {
    list-style: decimal;
    padding-left: 1.25rem;
    color: #475569;
    font-size: 0.875rem;
}

.mx-dns-provider-instructions {
    display: grid;
    gap: 0.75rem;
}

.mx-dns-provider-instructions label {
    display: grid;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.mx-dns-provider-steps {
    border: 1px solid #bfdbfe;
    background: #fff;
}

.mx-policy-file {
    border: 1px solid #cbd5e1;
    background: #fff;
}

.mx-policy-file pre {
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #0f172a;
    color: #d1fae5;
    font-size: 0.8125rem;
}

.mx-provider-setup {
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    background: #fff;
}

.mx-provider-setup summary {
    min-height: 2.75rem;
    padding: 0.75rem;
    cursor: pointer;
    font-weight: 700;
}

.mx-provider-setup ol {
    padding: 0 1rem 1rem 2rem;
}

.mx-tech-rescan-button {
    min-height: 2.75rem;
}

.mx-form-error {
    color: #b91c1c !important;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .mx-tech-remediation-layout {
        grid-template-columns: minmax(0, 3fr) minmax(24rem, 2fr);
        gap: 1.25rem;
    }

    .mx-detected-sender {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 1fr);
    }
}

@media (max-width: 767px) {
    .mx-tech-check-summary {
        padding: 1rem;
    }

    .mx-tech-check-detail {
        padding: 0 0.75rem 0.75rem;
    }

    .mx-tech-issue-heading,
    .mx-spf-record-heading,
    .mx-custom-sender-input {
        flex-direction: column;
    }

    .mx-tech-issue-metrics {
        text-align: left;
    }

    .mx-spf-provider-grid,
    .mx-dns-solution-fields {
        grid-template-columns: 1fr;
    }

    .mx-dns-solution-value {
        grid-column: auto;
    }

    .mx-tech-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .mx-tech-action-row .mx-btn,
    .mx-tech-action-row button,
    .mx-tech-action-row a,
    .mx-tech-rescan-button {
        justify-content: center;
        width: 100%;
        min-height: 2.75rem;
    }
}

/* Keep complex solutions full-width after legacy remediation rules. */
.mx-tech-remediation-layout {
    grid-template-columns: minmax(0, 1fr);
}

.report-issue-panel {
    border-left: 4px solid #dc2626;
}

.report-evidence-panel {
    background: #f8fafc;
}

.report-solution-panel {
    border-color: #93c5fd;
    background: #eff6ff;
}

.mx-btn,
.mx-tech-toolbar-btn,
.mx-tech-toolbar-toggle,
.mx-recommendation-card-header {
    min-height: 2.75rem;
}

.mx-dkim-view-btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
}

.mx-tech-check-meta-slot {
    line-height: 1.35;
}

.mx-tech-score-label {
    display: block;
    color: #334155;
    font-size: 0.75rem;
    white-space: nowrap;
}

.report-skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 8px 20px rgb(15 23 42 / 0.18);
    transform: translateY(-200%);
}

.report-skip-link:focus {
    transform: translateY(0);
}

@media (min-width: 1024px) {
    .mx-tech-remediation-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .mx-tech-remediation-context {
        grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
        align-items: stretch;
    }
}
