/* =========================================================
   247ChatMate — Plan and Licence CSS Split
   Phase 5-A-14B
   Checkpoint: PLANACCESSCSSSPLIT5A14BLOCK

   Scope:
   - Dedicated Plan & Licence visual styles moved from admin.css.
   - Visual-only split.
   - No licence, trial, Founder Beta, paid registry, lifecycle, save handler,
     widget, chip, vertical, WhatsApp handoff or lead-routing logic changes.

   Loading note:
   - This file is enqueued before admin.css so later locked dashboard/admin
     recovery rules in admin.css keep their existing cascade priority.
========================================================= */

/* =========================================================
   247ChatMate — Plan and Licence UI Consolidation
   Phase 5-A-11
   Checkpoint: PLANLICENCEUICONSOLIDATION5A11LOCK

   Purpose:
   - Makes Plan and Licence feel like a guided SaaS status area.
   - Keeps the first visible section light and calm.
   - Moves detail into click-through sections without changing logic.

   Does not:
   - Change licence, trial, registry, widget, chip, phone or lead logic.
========================================================= */

.matewa-plan-access-shell {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 24px;
    padding: 22px;
    background:
        radial-gradient(circle at 96% 0%, rgba(38, 143, 43, 0.08), transparent 32%),
        #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.045);
}

.matewa-plan-access-shell > h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.matewa-plan-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
    gap: 16px;
    align-items: stretch;
    margin: 0 0 16px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
}

.matewa-plan-overview__copy h3 {
    margin: 10px 0 8px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.matewa-plan-overview__copy p {
    max-width: 680px;
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.matewa-plan-overview__next {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 118px;
    padding: 16px;
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.14), transparent 38%),
        rgba(236, 253, 245, 0.72);
}

.matewa-plan-overview__next span {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.matewa-plan-overview__next strong {
    color: #14532d;
    font-size: 15px;
    line-height: 1.35;
}

.matewa-plan-status-circles {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.matewa-plan-status-circle {
    min-height: 116px;
    padding: 13px 10px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 14%, rgba(34, 197, 94, 0.10), transparent 34%),
        #ffffff;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.045);
}

.matewa-plan-status-circle strong {
    display: block;
    margin: 0 0 6px;
    color: #166534;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.1;
}

.matewa-plan-status-circle span {
    display: block;
    max-width: 108px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.matewa-plan-status-circle.is-next {
    border-color: rgba(34, 197, 94, 0.26);
    background:
        radial-gradient(circle at 50% 10%, rgba(34, 197, 94, 0.18), transparent 38%),
        #f0fdf4;
}

.matewa-plan-access-sections {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.matewa-plan-access-section {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.matewa-plan-access-section > summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 17px;
    color: #0f172a;
    font-weight: 850;
}

.matewa-plan-access-section > summary::-webkit-details-marker {
    display: none;
}

.matewa-plan-access-section > summary::after {
    content: "→";
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: #166534;
    font-size: 17px;
    line-height: 1;
    transition: transform 160ms ease;
}

.matewa-plan-access-section[open] > summary::after {
    transform: rotate(90deg);
}

.matewa-plan-access-section > summary span {
    display: block;
    font-size: 14px;
    line-height: 1.15;
}

.matewa-plan-access-section > summary small {
    display: block;
    margin-left: auto;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    text-align: right;
}

.matewa-plan-access-section[open] {
    border-color: rgba(34, 197, 94, 0.24);
}

.matewa-plan-access-section[open] > summary {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(236, 253, 245, 0.48);
}

.matewa-plan-access-section > .matewa-license-status-box,
.matewa-plan-access-section > .matewa-license-check-form,
.matewa-plan-access-section > p,
.matewa-plan-access-section > form {
    margin: 14px 16px !important;
}

.matewa-plan-access-section .matewa-license-check-form {
    border-radius: 18px !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    background: rgba(255, 255, 255, 0.88) !important;
}

.matewa-plan-access-section .matewa-license-status-box {
    border-radius: 18px;
}

.matewa-plan-access-shell .button:focus-visible,
.matewa-plan-access-shell .button-link:focus-visible,
.matewa-plan-access-section > summary:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.32);
    outline-offset: 3px;
    box-shadow: none;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-access-shell {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 96% 0%, rgba(106, 207, 99, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(9, 20, 32, 0.92), rgba(7, 17, 28, 0.98));
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-access-shell > h2,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-overview__copy h3,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-access-section > summary,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-status-circle {
    color: #f8fafc;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-overview,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-access-section,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-access-section .matewa-license-check-form,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-access-section .matewa-license-status-box,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-status-circle {
    border-color: rgba(148, 163, 184, 0.18) !important;
    background:
        radial-gradient(circle at 96% 0%, rgba(106, 207, 99, 0.08), transparent 30%),
        rgba(9, 20, 32, 0.78) !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-overview__copy p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-access-section > summary small,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-access-section p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-access-section .description,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-license-stat span,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-status-circle span {
    color: #b7c2cf;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-overview__next,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-status-circle.is-next,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-access-section[open] > summary {
    border-color: rgba(106, 207, 99, 0.34);
    background: rgba(34, 197, 94, 0.10);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-overview__next span,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-overview__next strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-status-circle strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-access-section > summary::after {
    color: #bbf7d0;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-access-section > summary::after,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-overview__next span {
    background: rgba(34, 197, 94, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .matewa-plan-access-section > summary::after {
        transition: none !important;
    }
}


.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-support-summary-card {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.50);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-support-summary-card strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-support-safe-note {
    color: #cbd5e1;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-support-summary-card span {
    color: #f8fafc;
}

@media (max-width: 1100px) {
    .matewa-plan-status-circles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .matewa-plan-access-shell {
        padding: 16px;
        border-radius: 22px;
    }

    .matewa-plan-overview {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .matewa-plan-status-circles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .matewa-plan-status-circle {
        min-height: 104px;
        border-radius: 24px;
    }

    .matewa-plan-access-section > summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .matewa-plan-access-section > summary small {
        margin-left: 0;
        text-align: left;
    }

    .matewa-plan-access-section > summary::after {
        position: absolute;
        right: 16px;
    }
}

/* =========================================================
   247ChatMate — 5A21K plan top-card gap guard
   Plan component spacing only. The active page wrapper owns the top gap.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="plan"] #matewa-plan-access-section {
    margin-top: var(--matewa-admin-visual-top-gap, 14px) !important;
    padding-top: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-dashboard-lower-accordions,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-shell,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview {
    margin-top: 0 !important;
}


/* =========================================================
   247ChatMate — 5A21L plan rear-card top gap support
   Plan shell owns its top offset from the topbar.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="plan"] #matewa-plan-access-section,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-dashboard-lower-accordions {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] #matewa-plan-access-section .matewa-plan-access-shell {
    margin-top: var(--matewa-admin-visual-top-gap, 14px) !important;
}

/* =========================================================
   247ChatMate — 5A21P Plan & Licence customer view tidy
   Visual-only: simplify the visible plan page, keep technical details inside
   support diagnostics and preserve all existing entitlement handlers.
========================================================= */

.matewa-plan-overview--customer {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    margin-bottom: 12px;
}

.matewa-plan-countdown-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 124px;
    padding: 16px;
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.16), transparent 40%),
        rgba(236, 253, 245, 0.78);
}

.matewa-plan-countdown-card span,
.matewa-plan-next-step span {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.matewa-plan-countdown-card strong {
    display: block;
    margin: 0 0 7px;
    color: #14532d;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.matewa-plan-countdown-card small,
.matewa-plan-next-step small {
    color: #475569;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.matewa-plan-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 12px;
}

.matewa-plan-feature-card {
    min-height: 112px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.035);
}

.matewa-plan-feature-card .dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    font-size: 16px;
    line-height: 1;
}

.matewa-plan-feature-card strong {
    display: block;
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.2;
}

.matewa-plan-feature-card small {
    display: block;
    color: #475569;
    font-size: 12px;
    line-height: 1.42;
}

.matewa-plan-next-step,
.matewa-plan-actions-card {
    margin: 0 0 12px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.matewa-plan-next-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.matewa-plan-next-step strong {
    display: block;
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.25;
}

.matewa-plan-actions-card__copy {
    margin-bottom: 12px;
}

.matewa-plan-actions-card__copy h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.2;
}

.matewa-plan-actions-card__copy p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.matewa-plan-actions-card__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.matewa-plan-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.76);
}

.matewa-plan-action-row--full {
    grid-column: 1 / -1;
}

.matewa-plan-action-row--tile {
    min-width: 0;
}

.matewa-plan-action-row strong {
    display: block;
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.2;
}

.matewa-plan-action-row span {
    display: block;
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
}

.matewa-plan-action-row form,
.matewa-plan-action-row p {
    margin: 0;
}

.matewa-plan-action-row .button {
    white-space: nowrap;
}

.matewa-support-diagnostics-intro {
    margin: 14px 16px 0;
    padding: 12px 14px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 16px;
    background: rgba(255, 251, 235, 0.76);
}

.matewa-support-diagnostics-intro strong {
    display: block;
    margin: 0 0 5px;
    color: #92400e;
    font-size: 13px;
}

.matewa-support-diagnostics-intro p {
    margin: 0;
    color: #78350f;
    font-size: 12px;
    line-height: 1.45;
}


.matewa-support-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 16px 0;
}

.matewa-support-summary-card {
    min-height: 70px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
}

.matewa-support-summary-card strong {
    display: block;
    margin: 0 0 6px;
    color: #334155;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.matewa-support-summary-card span {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.matewa-support-safe-note {
    margin: 12px 16px 16px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.matewa-plan-access-section--support .matewa-license-check-form h3,
.matewa-plan-access-section--support .matewa-license-status-box h3 {
    font-size: 14px;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-countdown-card {
    border-color: rgba(74, 222, 128, 0.24);
    background:
        radial-gradient(circle at 100% 0%, rgba(74, 222, 128, 0.14), transparent 40%),
        rgba(6, 78, 59, 0.28);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-countdown-card strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-next-step strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-feature-card strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-action-row strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-actions-card__copy h3 {
    color: #f8fafc;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-countdown-card small,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-next-step small,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-feature-card small,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-action-row span,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-actions-card__copy p {
    color: #cbd5e1;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-feature-card,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-next-step,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-actions-card,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-action-row {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.50);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-support-diagnostics-intro {
    border-color: rgba(251, 191, 36, 0.24);
    background: rgba(120, 53, 15, 0.24);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-support-diagnostics-intro strong {
    color: #fde68a;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-support-diagnostics-intro p {
    color: #fcd34d;
}


.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-support-summary-card {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.50);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-support-summary-card strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-support-safe-note {
    color: #cbd5e1;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-support-summary-card span {
    color: #f8fafc;
}

@media (max-width: 1100px) {
    .matewa-plan-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .matewa-support-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .matewa-plan-actions-card__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .matewa-plan-overview--customer,
    .matewa-plan-action-row,
    .matewa-plan-next-step {
        grid-template-columns: 1fr;
    }

    .matewa-plan-next-step {
        align-items: flex-start;
    }

    .matewa-plan-feature-grid,
    .matewa-support-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   247ChatMate — Test Clean Install Reset
   Checkpoint: TESTRESETCLEANINSTALLLOCK1
   Scope: Plan & Licence admin UI only. No frontend/widget changes.
========================================================= */

.matewa-plan-test-reset-card {
    margin: 14px 0 0;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 18px;
    background: rgba(255, 251, 235, 0.64);
    overflow: hidden;
}

.matewa-plan-test-reset-card > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.matewa-plan-test-reset-card > summary::-webkit-details-marker {
    display: none;
}

.matewa-plan-test-reset-card > summary strong {
    display: block;
    margin: 0 0 4px;
    color: #92400e;
    font-size: 14px;
    line-height: 1.2;
}

.matewa-plan-test-reset-card > summary small {
    display: block;
    color: #78350f;
    font-size: 12px;
    line-height: 1.35;
}

.matewa-plan-test-reset-card > summary em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.matewa-plan-test-reset-card__body {
    padding: 0 16px 16px;
}

.matewa-test-reset-muted {
    margin: 0 0 12px;
    color: #78350f;
    font-size: 12px;
    line-height: 1.5;
}

.matewa-test-reset-notice {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.45;
}

.matewa-test-reset-notice.is-success {
    border: 1px solid rgba(34, 197, 94, 0.24);
    background: rgba(220, 252, 231, 0.84);
    color: #14532d;
}

.matewa-test-reset-notice.is-warning {
    border: 1px solid rgba(245, 158, 11, 0.28);
    background: rgba(254, 243, 199, 0.84);
    color: #78350f;
}

.matewa-test-reset-notice.is-error {
    border: 1px solid rgba(239, 68, 68, 0.26);
    background: rgba(254, 226, 226, 0.84);
    color: #7f1d1d;
}

.matewa-test-reset-last-run {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    color: #475569;
    font-size: 12px;
}

.matewa-test-reset-last-run strong {
    color: #0f172a;
}

.matewa-test-reset-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.matewa-test-reset-form label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 750;
}

.matewa-test-reset-form label small {
    color: #78350f;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.matewa-test-reset-toggle {
    grid-column: 1 / -1;
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    align-items: center;
    gap: 9px !important;
    padding: 10px 12px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.matewa-test-reset-toggle input {
    margin: 0;
}

.matewa-test-reset-form input[type="text"],
.matewa-test-reset-form input[type="password"] {
    width: 100%;
    max-width: 100%;
}

.matewa-test-reset-button {
    grid-column: 1 / -1;
    justify-self: start;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-test-reset-card {
    border-color: rgba(251, 191, 36, 0.28);
    background: rgba(120, 53, 15, 0.22);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-test-reset-card > summary strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-test-reset-form label,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-test-reset-last-run strong {
    color: #fef3c7;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-test-reset-card > summary small,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-test-reset-muted,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-test-reset-form label small {
    color: #fde68a;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-test-reset-toggle,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-test-reset-last-run {
    border-color: rgba(251, 191, 36, 0.22);
    background: rgba(15, 23, 42, 0.42);
    color: #e2e8f0;
}

@media (max-width: 780px) {
    .matewa-test-reset-form {
        grid-template-columns: 1fr;
    }
}
