.matewa-settings-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 18px 20px;
    margin: 0 0 18px;
    max-width: var(--matewa-dashboard-surface-width, 980px);
}

.matewa-settings-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

/*
 * Final polish overrides for the dashboard and visitor buttons.
 * These rules ensure the top dashboard card expands correctly, elements align consistently,
 * and the setup panel does not clip on narrower screens. Using !important where necessary
 * to override later declarations in the stylesheet.
 */
.matewa-dashboard-shell {
    width: 100% !important;
}

.matewa-dashboard-title-check {
    display: grid !important;
    place-items: center !important;
}

.matewa-dashboard-primary-button,
.matewa-dashboard-secondary-button {
    min-width: 180px !important;
    height: 48px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.matewa-dashboard-radial {
    max-width: 260px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.matewa-dashboard-setup-panel {
    min-width: 280px !important;
}

/*
 * Additional hero and radial layout adjustments (Phase 5‑C).
 * These overrides tidy up alignment, enlarge the orbit circles, extend card height,
 * reposition the hero actions and benefits, and adjust setup spacing and help box placement.
 */

/* Remove the faint dividing line to the right of the radial by clearing the lead panel border. */
.matewa-dashboard-lead-panel {
    border-left: none !important;
    padding-left: 0 !important;
}

/* Make the orbit circles larger and roomier. */
.matewa-dashboard-orbit-item {
    width: 120px !important;
    height: 120px !important;
    padding: 14px !important;
}

/* Reflow hero panel content into a vertical stack and push benefits down. */
.matewa-dashboard-hero-panel {
    display: flex !important;
    flex-direction: column !important;
}

.matewa-dashboard-benefits {
    margin-top: auto !important;
}

/* Add extra spacing above the hero buttons. */
.matewa-dashboard-hero-actions {
    margin-top: 24px !important;
}

/* Extend the value card height to allow breathing space for content. */
.matewa-dashboard-value-card {
    min-height: 420px !important;
}

/* Increase spacing between checklist rows. */
.matewa-dashboard-check-row {
    padding: 14px 0 !important;
}

/* Align the help box to the left at the bottom of the setup panel. */
.matewa-dashboard-help-box {
    justify-content: flex-start !important;
}

/* Remove the standalone tick icon next to the headline. */
.matewa-dashboard-title-check {
    display: none !important;
}

.matewa-settings-card p.description {
    margin-top: 0;
    margin-bottom: 12px;
    color: #50575e;
}

.matewa-locked-box {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 0 0 14px;
}

.matewa-locked-box h3 {
    margin: 0 0 6px;
    font-size: 14px;
}

.matewa-locked-box p {
    margin: 0 0 10px;
    color: #50575e;
}

.matewa-subtle {
    color: #646970;
    font-size: 13px;
}

.matewa-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #edeff0;
    color: #2c3338;
    font-size: 12px;
    line-height: 1.8;
    vertical-align: middle;
}

.matewa-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
    max-width: 288px;
}

.matewa-chip-box {
    min-height: 52px;
    padding: 6px 8px;
    border-radius: 14px;
    border: 1.5px solid #6bcf63;
    background: #fff;
    color: #55b84d;
    font-size: 11.2px;
    font-weight: 700;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: pre-line;
    word-break: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
    overflow: hidden;
}

.matewa-chip-box.is-live {
    border-color: #6bcf63;
    color: #55b84d;
    background: #fff;
}

.matewa-chip-box.is-pro {
    border-style: dashed;
    color: #646970;
}

.matewa-preview-input[disabled],
.matewa-locked-box input[disabled],
.matewa-locked-box select[disabled] {
    background: #f0f0f1;
    color: #50575e;
}

.matewa-note {
    margin-top: 8px;
    color: #50575e;
    font-size: 13px;
}

.matewa-trial-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.matewa-trial-muted {
    color: #646970;
    font-size: 13px;
    margin-top: 8px;
}

.matewa-license-meta {
    margin-top: 8px;
    color: #50575e;
    font-size: 13px;
}


.matewa-license-save-refresh {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    text-align: right;
}

.matewa-license-save-refresh__help {
    margin: 0;
    max-width: 520px;
}

.matewa-license-save-refresh__button {
    white-space: nowrap;
}

@media (max-width: 782px) {
    .matewa-license-save-refresh {
        justify-content: flex-start;
        text-align: left;
    }
}

.matewa-language-preview-list {
    margin-top: 8px;
    color: #50575e;
    font-size: 13px;
    line-height: 1.5;
}

.matewa-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.matewa-status-badge.is-neutral {
    background: #edeff0;
    color: #2c3338;
}

.matewa-status-badge.is-trial {
    background: #e7f5ff;
    color: #0b7285;
}

.matewa-status-badge.is-warning {
    background: #fff4e5;
    color: #8a4b00;
}

.matewa-status-badge.is-success {
    background: #edf7ed;
    color: #1e6b34;
}

.matewa-status-badge.is-master {
    background: #f3e8ff;
    color: #6b21a8;
}

.matewa-license-status-box {
    border: 1px solid #dcdcde;
    border-left-width: 4px;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff;
    margin-top: 12px;
}

.matewa-license-status-box.is-neutral {
    border-left-color: #c3c4c7;
}

.matewa-license-status-box.is-info {
    border-left-color: #72aee6;
    background: #f6fbff;
}

.matewa-license-status-box.is-warning {
    border-left-color: #dba617;
    background: #fffaf0;
}

.matewa-license-status-box.is-success {
    border-left-color: #00a32a;
    background: #f6fff7;
}

.matewa-license-status-box.is-error {
    border-left-color: #d63638;
    background: #fff5f5;
}

.matewa-license-status-box h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.matewa-license-status-box p {
    margin: 0 0 8px;
    color: #2c3338;
}

.matewa-license-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.matewa-license-stat {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 12px 14px;
}

.matewa-license-stat strong {
    display: block;
    margin-bottom: 4px;
}

.matewa-license-code {
    font-family: monospace;
    font-size: 12px;
}

.matewa-plan-hero {
    border: 1px solid #dcdcde;
    border-left-width: 4px;
    border-radius: 8px;
    padding: 16px 18px;
    background: #fff;
    margin-top: 14px;
}

.matewa-plan-hero.is-free {
    border-left-color: #c3c4c7;
    background: #fff;
}

.matewa-plan-hero.is-trial {
    border-left-color: #72aee6;
    background: #f6fbff;
}

.matewa-plan-hero.is-expired {
    border-left-color: #dba617;
    background: #fffaf0;
}

.matewa-plan-hero.is-pro {
    border-left-color: #00a32a;
    background: #f6fff7;
}

.matewa-plan-hero.is-master {
    border-left-color: #6b21a8;
    background: #faf5ff;
}

.matewa-plan-hero h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.matewa-plan-hero p {
    margin: 0 0 8px;
    color: #2c3338;
}

.matewa-plan-hero p:last-child {
    margin-bottom: 0;
}

.matewa-chip-editor-frame {
    width: 318px;
    max-width: 318px;
}

.matewa-chip-editor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 7px;
    row-gap: 7px;
    margin-top: 10px;
    width: 318px;
    max-width: 318px;
}

.matewa-chip-editor-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.matewa-chip-editor-chip {
    position: relative;
    height: 50px;
    min-height: 50px;
    padding: 6px 7px;
    border-radius: 14px;
    border: 1.5px solid #6bcf63;
    background: #fff;
    color: #55b84d;
    font-size: 11.2px;
    font-weight: 700;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

/* Keep changed labels visually close to the live widget instead of filling the button green. */
.matewa-chip-editor-chip.is-changed {
    background: #fff;
    color: #55b84d;
    border-color: #6bcf63;
    box-shadow: inset 0 0 0 1px rgba(85, 184, 77, 0.35);
}

.matewa-chip-editor-chip.is-preview {
    background: #fff;
    color: #55b84d;
    border-color: #6bcf63;
}

.matewa-chip-editor-chip span,
.matewa-chip-editor-chip.is-preview span,
.matewa-chip-editor-text {
    white-space: pre-line;
    word-break: normal;
    overflow-wrap: anywhere;
}

.matewa-chip-editor-chip textarea,
.matewa-chip-editor-text {
    width: 100%;
    max-width: 100%;
    min-height: 14px;
    max-height: 30px;
    height: auto;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    resize: none;
    overflow: hidden;
    background: transparent;
    color: inherit;
    text-align: center;
    font-size: 11.2px;
    font-weight: 700;
    line-height: 1.25;
    font-family: inherit;
    box-shadow: none;
    box-sizing: border-box;
    white-space: pre-line;
    word-break: normal;
    overflow-wrap: anywhere;
    display: block;
}

.matewa-chip-editor-chip textarea {
    min-height: 14px;
    height: 14px;
}

.matewa-chip-editor-chip textarea::placeholder {
    color: inherit;
    opacity: 0.7;
}

.matewa-chip-editor-chip textarea:focus {
    outline: none;
    box-shadow: none;
}

.matewa-chip-editor-measure {
    position: absolute;
    left: -99999px;
    top: -99999px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    font-size: 11.2px;
    font-weight: 700;
    line-height: 1.25;
    font-family: inherit;
    text-align: center;
    white-space: pre-line;
    word-break: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
    visibility: hidden;
    pointer-events: none;
}

.matewa-chip-editor-helper {
    width: 288px;
    max-width: 288px;
    margin-top: 8px;
    color: #50575e;
    font-size: 12px;
    line-height: 1.35;
}

.matewa-chip-editor-note {
    display: none;
}

.matewa-chip-editor-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
}

.matewa-chip-editor-subtle {
    color: #646970;
    font-size: 13px;
    margin-top: 8px;
}

.matewa-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 320px));
    gap: 12px;
    align-items: start;
    max-width: 660px;
}

.matewa-selector-grid .matewa-selector-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.matewa-selector-grid .matewa-selector-field select {
    width: 100%;
    max-width: 100%;
}

.matewa-chip-preview-wrap {
    margin-top: 12px;
    margin-bottom: 16px;
}

.matewa-chip-preview-heading {
    margin: 0 0 8px;
    font-weight: 600;
    color: #2c3338;
}

.matewa-chip-preview-subtle {
    color: #646970;
    font-size: 13px;
    margin-top: 8px;
    max-width: 660px;
}

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

@media (max-width: 782px) {
    .matewa-selector-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .matewa-license-status-grid {
        grid-template-columns: 1fr;
    }

    .matewa-chip-grid,
    .matewa-chip-editor-frame,
    .matewa-chip-editor-grid,
    .matewa-chip-editor-helper {
        width: 100%;
        max-width: 288px;
    }
}

.matewa-display-mode-options {
    margin: 0 0 8px;
}

.matewa-checkbox-row,
.matewa-page-checkbox-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 7px 0;
}

.matewa-checkbox-row input,
.matewa-page-checkbox-row input {
    margin-top: 2px;
}

.matewa-page-targeting-box {
    margin-top: 14px;
    max-width: 680px;
}

.matewa-page-checkbox-list {
    margin-top: 8px;
    padding: 8px 10px;
    max-height: 260px;
    overflow: auto;
    border: 1px solid #c3c4c7;
    background: #fff;
}

.matewa-page-checkbox-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.matewa-page-checkbox-title {
    font-weight: 600;
    color: #1d2327;
}

.matewa-page-checkbox-url {
    color: #646970;
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
}

/* Phase 5-A: lightweight Client View dashboard shell. Scoped to this plugin admin page only. */

.matewa-dashboard-page {
    --matewa-dashboard-surface-width: 1220px;
}

.matewa-dashboard-shell {
    --matewa-dash-bg: #fbfdf9;
    --matewa-dash-card: rgba(255, 255, 255, 0.88);
    --matewa-dash-card-strong: #ffffff;
    --matewa-dash-border: rgba(15, 23, 42, 0.08);
    --matewa-dash-border-strong: rgba(34, 197, 94, 0.28);
    --matewa-dash-text: #111827;
    --matewa-dash-muted: #5f6b7a;
    --matewa-dash-soft: #ecfdf5;
    --matewa-dash-green: #35b729;
    --matewa-dash-green-dark: #166534;
    --matewa-dash-warning: #b45309;
    --matewa-dash-shadow: 0 26px 70px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    max-width: var(--matewa-dashboard-surface-width, 1220px);
    margin: 8px 0 30px;
    padding: 28px 30px 26px;
    border: 1px solid var(--matewa-dash-border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 34%, rgba(106, 207, 99, 0.16), transparent 32%),
        radial-gradient(circle at 18% 0%, rgba(236, 253, 245, 0.92), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), var(--matewa-dash-bg));
    box-shadow: var(--matewa-dash-shadow);
    color: var(--matewa-dash-text);
}

.matewa-dashboard-shell,
.matewa-dashboard-shell * {
    box-sizing: border-box;
}

.matewa-dashboard-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.08), transparent) 50% 67% / 80% 1px no-repeat;
}

.matewa-dashboard-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.matewa-dashboard-header h2 {
    margin: 0;
    color: var(--matewa-dash-text);
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.matewa-dashboard-header p {
    max-width: 560px;
    margin: 8px 0 0;
    color: var(--matewa-dash-muted);
    font-size: 14px;
    line-height: 1.45;
}

.matewa-dashboard-eyebrow {
    margin: 0 0 7px !important;
    color: var(--matewa-dash-green) !important;
    font-size: 12px !important;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 1.2 !important;
    text-transform: uppercase;
}

.matewa-dashboard-header-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}

.matewa-dashboard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.matewa-dashboard-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid var(--matewa-dash-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #374151;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.matewa-dashboard-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #9ca3af;
}

.matewa-dashboard-badge.is-live::before,
.matewa-dashboard-badge.is-success::before,
.matewa-dashboard-badge.is-trial::before,
.matewa-dashboard-badge.is-master::before {
    background: #22c55e;
}

.matewa-dashboard-badge.is-warning::before,
.matewa-dashboard-badge.is-off::before {
    background: #f59e0b;
}

.matewa-dashboard-badge.is-live,
.matewa-dashboard-badge.is-success,
.matewa-dashboard-badge.is-trial,
.matewa-dashboard-badge.is-master {
    color: #14532d;
}

.matewa-dashboard-badge.is-warning,
.matewa-dashboard-badge.is-off {
    color: #7c2d12;
}

.matewa-dashboard-theme-switch {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--matewa-dash-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.70);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

.matewa-dashboard-theme-option {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 30px;
    padding: 5px 13px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--matewa-dash-muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
}

.matewa-dashboard-theme-option.is-active {
    background: rgba(236, 253, 245, 0.95);
    color: var(--matewa-dash-green-dark);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.22), 0 8px 18px rgba(15, 23, 42, 0.06);
}

.matewa-dashboard-radial {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    min-height: 590px;
    margin: 8px auto 24px;
}

.matewa-dashboard-radial::before,
.matewa-dashboard-radial::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.matewa-dashboard-radial::before {
    width: min(520px, 78vw);
    height: min(520px, 78vw);
    border: 1px dashed rgba(34, 197, 94, 0.24);
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(236, 253, 245, 0.70) 0 25%, rgba(236, 253, 245, 0.26) 26% 50%, transparent 51% 100%);
}

.matewa-dashboard-radial::after {
    width: min(390px, 60vw);
    height: min(390px, 60vw);
    border: 1px solid rgba(34, 197, 94, 0.20);
    border-radius: 999px;
}

.matewa-dashboard-radial-center {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 230px;
    height: 230px;
    padding: 28px;
    border: 1px solid rgba(34, 197, 94, 0.24);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95));
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10), 0 0 0 10px rgba(236, 253, 245, 0.70);
    text-align: center;
    transform: translate(-50%, -50%);
}

.matewa-dashboard-radial-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    border-radius: 999px;
    color: var(--matewa-dash-green);
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
}

.matewa-dashboard-radial-kicker {
    margin-bottom: 7px;
    color: var(--matewa-dash-green) !important;
    font-size: 11px !important;
    font-weight: 900;
    letter-spacing: 0.11em;
    line-height: 1.2 !important;
    text-transform: uppercase;
}

.matewa-dashboard-radial-center strong {
    display: block;
    max-width: 170px;
    margin-bottom: 8px;
    color: var(--matewa-dash-text);
    font-size: 24px;
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.matewa-dashboard-radial-center span:last-child {
    color: var(--matewa-dash-muted);
    font-size: 12.5px;
    line-height: 1.42;
}

.matewa-dashboard-orbit-item {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 122px;
    height: 122px;
    padding: 14px;
    border: 1px solid var(--matewa-dash-border);
    border-radius: 999px;
    background: var(--matewa-dash-card-strong);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    text-align: center;
}


.matewa-dashboard-orbit-item.is-clickable {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.matewa-dashboard-orbit-item.is-clickable:hover,
.matewa-dashboard-orbit-item.is-clickable:focus-visible {
    border-color: rgba(34, 197, 94, 0.42);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.11), 0 0 0 3px rgba(34, 197, 94, 0.08);
    outline: none;
}

.matewa-dashboard-orbit-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    color: var(--matewa-dash-green);
    font-size: 20px !important;
    line-height: 1 !important;
}

.matewa-dashboard-orbit-item span:not(.matewa-dashboard-orbit-icon) {
    color: var(--matewa-dash-text);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.18;
}

.matewa-dashboard-orbit-item strong {
    color: var(--matewa-dash-muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}

.matewa-dashboard-orbit-item.is-ready {
    border-color: rgba(34, 197, 94, 0.22);
}

.matewa-dashboard-orbit-item.is-waiting {
    border-color: rgba(245, 158, 11, 0.28);
    background: #fffbeb;
}

.matewa-dashboard-orbit-item.is-waiting .matewa-dashboard-orbit-icon {
    color: var(--matewa-dash-warning);
}

.matewa-dashboard-orbit-item.is-position-1 {
    transform: translate(-50%, -50%) rotate(270deg) translate(230px) rotate(-270deg);
}

.matewa-dashboard-orbit-item.is-position-2 {
    transform: translate(-50%, -50%) rotate(330deg) translate(230px) rotate(-330deg);
}

.matewa-dashboard-orbit-item.is-position-3 {
    transform: translate(-50%, -50%) rotate(30deg) translate(230px) rotate(-30deg);
}

.matewa-dashboard-orbit-item.is-position-4 {
    transform: translate(-50%, -50%) rotate(90deg) translate(230px) rotate(-90deg);
}

.matewa-dashboard-orbit-item.is-position-5 {
    transform: translate(-50%, -50%) rotate(150deg) translate(230px) rotate(-150deg);
}

.matewa-dashboard-orbit-item.is-position-6 {
    transform: translate(-50%, -50%) rotate(210deg) translate(230px) rotate(-210deg);
}

.matewa-dashboard-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 18px auto 28px;
}

.matewa-dashboard-action {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 94px;
    min-height: 76px;
    color: var(--matewa-dash-text);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.matewa-dashboard-action-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--matewa-dash-green);
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.matewa-dashboard-action:hover,
.matewa-dashboard-action:focus {
    color: var(--matewa-dash-green-dark);
}

.matewa-dashboard-action:hover .matewa-dashboard-action-icon,
.matewa-dashboard-action:focus .matewa-dashboard-action-icon {
    border-color: rgba(34, 197, 94, 0.42);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
}

.matewa-dashboard-action.is-disabled {
    cursor: default;
    color: #6b7280;
}

.matewa-dashboard-action.is-disabled .matewa-dashboard-action-icon {
    color: #7fbf72;
    box-shadow: none;
    opacity: 0.74;
}

.matewa-dashboard-action.is-disabled:hover .matewa-dashboard-action-icon,
.matewa-dashboard-action.is-disabled:focus .matewa-dashboard-action-icon {
    transform: none;
}

.matewa-dashboard-future-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.matewa-dashboard-future-card {
    min-height: 124px;
    padding: 18px;
    border: 1px solid var(--matewa-dash-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.matewa-dashboard-future-card span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
}

.matewa-dashboard-future-card h3 {
    margin: 0 0 8px;
    color: var(--matewa-dash-text);
    font-size: 15px;
    letter-spacing: -0.01em;
    line-height: 1.28;
}

.matewa-dashboard-future-card p {
    margin: 0;
    color: var(--matewa-dash-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.matewa-dashboard-shell.is-checkout-nudge-active .matewa-dashboard-future-card.is-weekly-lead-summary {
    display: none;
}

.matewa-dashboard-licence-refresh-card {
    border-color: var(--matewa-dash-border-strong);
    background:
        radial-gradient(circle at 95% 10%, rgba(34, 197, 94, 0.12), transparent 30%),
        rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 44px rgba(34, 197, 94, 0.10), 0 14px 35px rgba(15, 23, 42, 0.05);
}

.matewa-dashboard-licence-refresh-card[hidden] {
    display: none !important;
}

.matewa-dashboard-licence-refresh-card > span {
    background: #ecfdf5;
    color: var(--matewa-dash-green-dark);
}

.matewa-dashboard-licence-refresh-card h3 {
    max-width: 310px;
    font-size: 15px;
    line-height: 1.28;
}

.matewa-dashboard-licence-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 12px;
}

.matewa-dashboard-licence-steps small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--matewa-dash-muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
}

.matewa-dashboard-licence-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(34, 197, 94, 0.34);
    border-radius: 999px;
    background: rgba(236, 253, 245, 0.72);
    color: var(--matewa-dash-green-dark);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
}

.matewa-dashboard-licence-link:hover,
.matewa-dashboard-licence-link:focus-visible {
    border-color: rgba(34, 197, 94, 0.55);
    color: var(--matewa-dash-green-dark);
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.10);
}

.matewa-licence-check-card.is-checkout-nudge-active {
    border-color: rgba(34, 197, 94, 0.38) !important;
    background: #fbfffb !important;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08), 0 14px 34px rgba(15, 23, 42, 0.05);
}

.matewa-licence-check-card.is-checkout-nudge-active .button-secondary:not([disabled]) {
    border-color: rgba(34, 197, 94, 0.52);
    background: #f0fdf4;
    color: #166534;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.10);
}

.matewa-licence-activation-nudge {
    margin: 12px 0 14px;
    padding: 14px 15px;
    border: 1px solid rgba(34, 197, 94, 0.24);
    border-radius: 18px;
    background:
        radial-gradient(circle at 98% 0%, rgba(34, 197, 94, 0.10), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7fff9 100%);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.matewa-licence-activation-nudge[hidden] {
    display: none !important;
}

.matewa-licence-activation-nudge__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.matewa-licence-activation-nudge__topline span {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.matewa-licence-activation-nudge__dismiss {
    color: #5f6b7a;
    font-size: 12px;
    text-decoration: none;
}

.matewa-licence-activation-nudge__dismiss:hover,
.matewa-licence-activation-nudge__dismiss:focus-visible {
    color: #166534;
}

.matewa-licence-activation-nudge h4 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 15px;
    line-height: 1.32;
}

.matewa-licence-activation-nudge__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.matewa-licence-activation-nudge__steps span {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #5f6b7a;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.1;
}


@media (prefers-reduced-motion: reduce) {
    .matewa-dashboard-licence-link,
    .matewa-licence-check-card,
    .matewa-licence-check-card .button-secondary {
        transition: none !important;
    }
}

.matewa-dashboard-technical-divider {
    max-width: var(--matewa-dashboard-surface-width, 1220px);
    height: 1px;
    margin: 0 0 22px;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.12), transparent);
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] {
    --matewa-dash-bg: #07111c;
    --matewa-dash-card: rgba(9, 20, 32, 0.78);
    --matewa-dash-card-strong: rgba(10, 22, 35, 0.96);
    --matewa-dash-border: rgba(148, 163, 184, 0.18);
    --matewa-dash-border-strong: rgba(106, 207, 99, 0.38);
    --matewa-dash-text: #f8fafc;
    --matewa-dash-muted: #b7c2cf;
    --matewa-dash-soft: rgba(34, 197, 94, 0.10);
    --matewa-dash-green: #6bcf63;
    --matewa-dash-green-dark: #bbf7d0;
    --matewa-dash-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
    background:
        radial-gradient(circle at 50% 34%, rgba(106, 207, 99, 0.18), transparent 28%),
        radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.08), transparent 34%),
        linear-gradient(180deg, #0b1622 0%, var(--matewa-dash-bg) 100%);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: var(--matewa-dash-shadow);
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-badge,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-theme-switch,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-radial-center,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-orbit-item,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-action-icon,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-future-card {
    background: var(--matewa-dash-card);
    border-color: var(--matewa-dash-border);
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-radial::before {
    border-color: rgba(106, 207, 99, 0.24);
    background: radial-gradient(circle, rgba(106, 207, 99, 0.10) 0 25%, rgba(106, 207, 99, 0.05) 26% 50%, transparent 51% 100%);
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-radial::after {
    border-color: rgba(106, 207, 99, 0.18);
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-radial-center {
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.32), 0 0 34px rgba(106, 207, 99, 0.18), 0 0 0 10px rgba(106, 207, 99, 0.05);
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-theme-option.is-active {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    box-shadow: 0 0 0 1px rgba(106, 207, 99, 0.28);
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-future-card span {
    background: rgba(37, 99, 235, 0.16);
    color: #93c5fd;
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-licence-refresh-card {
    border-color: rgba(106, 207, 99, 0.46);
    background:
        radial-gradient(circle at 96% 8%, rgba(106, 207, 99, 0.14), transparent 32%),
        rgba(9, 20, 32, 0.82);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.30), 0 0 30px rgba(106, 207, 99, 0.10);
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-licence-refresh-card > span {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-licence-steps small {
    border-color: rgba(106, 207, 99, 0.22);
    background: rgba(15, 23, 42, 0.44);
    color: #cbd5e1;
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-licence-link {
    border-color: rgba(106, 207, 99, 0.48);
    background: rgba(34, 197, 94, 0.10);
    color: #bbf7d0;
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-licence-link:hover,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-licence-link:focus-visible {
    border-color: rgba(106, 207, 99, 0.70);
    color: #dcfce7;
    box-shadow: 0 0 0 3px rgba(106, 207, 99, 0.12);
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-badge.is-warning,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-badge.is-off,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-orbit-item.is-waiting strong {
    color: #fed7aa;
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-orbit-item.is-waiting {
    background: rgba(69, 26, 3, 0.28);
}

@media (max-width: 1100px) {
    .matewa-dashboard-shell {
        max-width: none;
        padding: 24px;
    }

    .matewa-dashboard-radial {
        width: min(700px, 100%);
        min-height: 550px;
    }

    .matewa-dashboard-orbit-item.is-position-1 {
        transform: translate(-50%, -50%) rotate(270deg) translate(210px) rotate(-270deg);
    }

    .matewa-dashboard-orbit-item.is-position-2 {
        transform: translate(-50%, -50%) rotate(330deg) translate(210px) rotate(-330deg);
    }

    .matewa-dashboard-orbit-item.is-position-3 {
        transform: translate(-50%, -50%) rotate(30deg) translate(210px) rotate(-30deg);
    }

    .matewa-dashboard-orbit-item.is-position-4 {
        transform: translate(-50%, -50%) rotate(90deg) translate(210px) rotate(-90deg);
    }

    .matewa-dashboard-orbit-item.is-position-5 {
        transform: translate(-50%, -50%) rotate(150deg) translate(210px) rotate(-150deg);
    }

    .matewa-dashboard-orbit-item.is-position-6 {
        transform: translate(-50%, -50%) rotate(210deg) translate(210px) rotate(-210deg);
    }
}

@media (max-width: 782px) {
    .matewa-dashboard-shell {
        padding: 18px;
        border-radius: 20px;
    }

    .matewa-dashboard-header,
    .matewa-dashboard-header-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .matewa-dashboard-badges {
        justify-content: flex-start;
    }

    .matewa-dashboard-theme-switch {
        align-self: flex-start;
    }

    .matewa-dashboard-radial {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 0;
        margin-top: 18px;
        padding: 0;
    }

    .matewa-dashboard-radial::before,
    .matewa-dashboard-radial::after {
        display: none;
    }

    .matewa-dashboard-radial-center,
    .matewa-dashboard-orbit-item,
    .matewa-dashboard-orbit-item.is-position-1,
    .matewa-dashboard-orbit-item.is-position-2,
    .matewa-dashboard-orbit-item.is-position-3,
    .matewa-dashboard-orbit-item.is-position-4,
    .matewa-dashboard-orbit-item.is-position-5,
    .matewa-dashboard-orbit-item.is-position-6 {
        position: static;
        width: 100%;
        height: auto;
        min-height: 0;
        border-radius: 18px;
        transform: none;
    }

    .matewa-dashboard-radial-center {
        padding: 22px;
    }

    .matewa-dashboard-orbit-item {
        display: grid;
        grid-template-columns: auto 1fr;
        justify-items: start;
        text-align: left;
    }

    .matewa-dashboard-orbit-item strong {
        grid-column: 2;
    }

    .matewa-dashboard-actions {
        gap: 14px;
    }

    .matewa-dashboard-action {
        width: 66px;
    }

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

@media (max-width: 520px) {
    .matewa-dashboard-actions,
    .matewa-dashboard-future-grid {
        grid-template-columns: 1fr;
    }

    .matewa-dashboard-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 18px;
    }

    .matewa-dashboard-action {
        width: 100%;
        min-height: 62px;
    }

    .matewa-dashboard-future-grid {
        grid-template-columns: 1fr;
    }
}

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

   Plan & Licence visual rules were moved to:
   admin/assets/plan-access.css

   The dedicated file is loaded before admin.css so the later locked
   dashboard/admin recovery rules in this file keep their existing
   cascade priority.
========================================================= */

/* =========================================================
   247ChatMate — Core Settings Declutter
   Phase 5-A-12
   Checkpoint: ADMINSETTINGDECLUTTER5A12LOCK

   Purpose:
   - Makes the main Pro/Trial/Free settings area easier to scan.
   - Groups existing controls into calm setup sections.

   Does not:
   - Change option names, save handlers, licence logic, widget logic,
     chip logic, lead routing, phone selector or WhatsApp handoff.
========================================================= */

.matewa-core-settings-shell {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 24px;
    padding: 22px;
    background:
        radial-gradient(circle at 96% 0%, rgba(34, 197, 94, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.045);
}

.matewa-core-settings-heading {
    margin: 0 0 16px;
}

.matewa-core-settings-heading h2 {
    margin: 4px 0 8px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.matewa-section-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.10);
    color: #166534;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.matewa-core-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 16px;
}

.matewa-core-settings-panel {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
}

.matewa-core-settings-panel--wide {
    grid-column: 1 / -1;
}

.matewa-core-panel-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
}

.matewa-panel-step {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: #166534;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}

.matewa-core-panel-heading h3 {
    margin: 0 0 3px;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.2;
}

.matewa-core-panel-heading p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.matewa-field-stack,
.matewa-choice-stack {
    display: grid;
    gap: 12px;
}

.matewa-field-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.matewa-field-label {
    margin-top: 7px;
    color: #1e293b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.matewa-field-control {
    min-width: 0;
}

.matewa-core-settings-panel input.regular-text {
    width: 100%;
    max-width: 390px;
    min-height: 34px;
    border-color: rgba(15, 23, 42, 0.18);
    border-radius: 8px;
}

.matewa-core-settings-panel input.regular-text:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
}

.matewa-core-settings-panel .description {
    max-width: 620px;
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.matewa-choice-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.88);
    cursor: pointer;
}

.matewa-choice-card--inline {
    max-width: 540px;
}

.matewa-choice-card input {
    margin-top: 3px;
}

.matewa-choice-card strong {
    display: block;
    margin: 0 0 3px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.25;
}

.matewa-choice-card small {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.matewa-core-settings-shell .submit {
    margin: 4px 0 0;
    padding: 0;
}

.matewa-core-settings-shell .button-primary {
    border-radius: 10px;
    min-height: 34px;
}

.matewa-core-settings-shell .matewa-page-targeting-box {
    max-width: none;
    margin-top: 12px;
}

.matewa-core-settings-shell .matewa-page-checkbox-list {
    border-color: rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
}

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

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-core-settings-heading h2,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-core-panel-heading h3,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-choice-card strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-field-label {
    color: #f8fafc;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-core-settings-panel,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-choice-card,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-core-settings-shell .matewa-page-checkbox-list {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 96% 0%, rgba(106, 207, 99, 0.06), transparent 28%),
        rgba(9, 20, 32, 0.74);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-core-settings-heading .description,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-core-panel-heading p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-choice-card small,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-core-settings-panel .description,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-page-checkbox-url {
    color: #b7c2cf;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-section-kicker,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-panel-step {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

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

@media (max-width: 640px) {
    .matewa-core-settings-shell {
        padding: 16px;
        border-radius: 22px;
    }

    .matewa-field-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .matewa-field-label {
        margin-top: 0;
    }
}

/* =========================================================
   247ChatMate — Full Dashboard Theme Scope
   Phase 5-A-12A
   Checkpoint: DASHBOARDFULLTHEMESCOPE5A12ALOCK

   Purpose:
   - Carries the dashboard light/dark choice through the wider admin page.
   - Keeps option names, save handling, licence logic, chip logic,
     vertical presets and frontend widget behaviour unchanged.
========================================================= */

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

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] > h1 {
    color: #f8fafc;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-dashboard-technical-divider {
    background: linear-gradient(90deg, transparent, rgba(106, 207, 99, 0.22), transparent);
}

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

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-settings-card h2,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-settings-card h3,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-selector-grid .matewa-selector-field label,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-preview-heading,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-subtle strong {
    color: #f8fafc;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-settings-card p.description,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-helper,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-subtle,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-preview-subtle,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-note,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-subtle,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-trial-muted,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-license-meta {
    color: #b7c2cf;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] select,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="text"],
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="email"],
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="url"],
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="tel"],
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="number"],
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input.regular-text,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] textarea {
    border-color: rgba(148, 163, 184, 0.24);
    background-color: rgba(9, 20, 32, 0.86);
    color: #f8fafc;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] select:focus,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="text"]:focus,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="email"]:focus,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="url"]:focus,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="tel"]:focus,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="number"]:focus,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input.regular-text:focus,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] textarea:focus {
    border-color: rgba(106, 207, 99, 0.72);
    box-shadow: 0 0 0 3px rgba(106, 207, 99, 0.16);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .button:not(.button-primary) {
    border-color: rgba(148, 163, 184, 0.26);
    background: rgba(15, 23, 42, 0.88);
    color: #e2e8f0;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .button:not(.button-primary):hover,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .button:not(.button-primary):focus-visible {
    border-color: rgba(106, 207, 99, 0.54);
    color: #dcfce7;
    box-shadow: 0 0 0 3px rgba(106, 207, 99, 0.12);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-chip.is-preview,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-box.is-live {
    border-color: rgba(106, 207, 99, 0.62);
    background: rgba(9, 20, 32, 0.92);
    color: #bbf7d0;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-chip.is-changed {
    border-color: rgba(106, 207, 99, 0.76);
    box-shadow: inset 0 0 0 1px rgba(106, 207, 99, 0.40), 0 0 0 3px rgba(106, 207, 99, 0.08);
}

.matewa-chip-editor-chip:focus-within {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.20);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-chip:focus-within {
    border-color: rgba(106, 207, 99, 0.82);
    box-shadow: 0 0 0 3px rgba(106, 207, 99, 0.18);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-locked-box,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-badge {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(9, 20, 32, 0.74);
    color: #e2e8f0;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-preview-input[disabled],
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-locked-box input[disabled],
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-locked-box select[disabled] {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.66);
    color: #94a3b8;
}


.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-chip textarea,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-chip textarea:focus {
    border: none;
    background: transparent;
    color: inherit;
    box-shadow: none;
}

/* =========================================================
   247ChatMate — Chip Studio Visual Restructure
   Phase 5-A-12B
   Checkpoint: CHIPSTUDIOVISUALRESTRUCTURE5A12BLOCK

   Purpose:
   - Restructures the admin chip area into a clearer Visitor Button Studio.
   - Preserves option names, save handling, vertical logic, frontend widget
     rendering and WhatsApp handoff behaviour.
========================================================= */

.matewa-chip-studio-card {
    border-radius: 18px;
    padding: 22px;
    overflow: hidden;
}

.matewa-chip-studio-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.matewa-chip-studio-eyebrow {
    margin-bottom: 5px;
    color: #16a34a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.matewa-chip-studio-card h2 {
    margin-bottom: 6px;
    font-size: 21px;
    line-height: 1.2;
}

.matewa-chip-studio-intro {
    max-width: 680px;
}

.matewa-chip-studio-pill {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 10px 13px;
    border: 1px solid rgba(22, 163, 74, 0.20);
    border-radius: 16px;
    background: #f0fdf4;
    color: #14532d;
    text-align: left;
}

.matewa-chip-studio-pill span {
    display: block;
    margin-bottom: 2px;
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.matewa-chip-studio-pill strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
}

.matewa-chip-studio-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
}

.matewa-chip-studio-steps span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid #dbeee0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fdf8 100%);
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
}

.matewa-chip-studio-steps strong,
.matewa-chip-studio-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.matewa-chip-studio-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(270px, 1fr) minmax(250px, 0.95fr);
    gap: 14px;
    align-items: stretch;
}

.matewa-chip-studio-panel {
    min-width: 0;
    padding: 16px;
    border: 1px solid #dfeee5;
    border-radius: 18px;
    background:
        radial-gradient(circle at 96% 0%, rgba(22, 163, 74, 0.07), transparent 35%),
        #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.matewa-chip-studio-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 13px;
}

.matewa-chip-studio-panel-header h3 {
    margin: 0 0 3px;
    font-size: 15px;
    line-height: 1.25;
}

.matewa-chip-studio-panel-header p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.matewa-chip-studio-selector-grid,
.matewa-chip-studio-card .matewa-selector-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    max-width: none;
}

.matewa-chip-studio-card .matewa-selector-grid .matewa-selector-field label {
    margin-bottom: 5px;
    color: #334155;
    font-size: 12px;
}

.matewa-chip-studio-card .matewa-selector-grid .matewa-selector-field select {
    min-height: 36px;
    border-radius: 10px;
}

.matewa-chip-studio-wide-button {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.matewa-chip-studio-default-preview {
    margin-top: 14px;
    margin-bottom: 0;
    padding: 12px;
    border: 1px solid #e2f4e6;
    border-radius: 16px;
    background: rgba(240, 253, 244, 0.72);
}

.matewa-chip-studio-card .matewa-chip-preview-heading {
    color: #14532d;
    font-size: 12px;
    line-height: 1.35;
}

.matewa-chip-studio-card .matewa-chip-preview-subtle {
    max-width: none;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.matewa-chip-studio-card .matewa-chip-editor-frame,
.matewa-chip-studio-card .matewa-chip-editor-helper {
    width: 100%;
    max-width: none;
}

.matewa-chip-studio-card .matewa-chip-editor-grid {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.matewa-chip-studio-edit-grid {
    margin-top: 10px;
}

.matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-chip-studio-preview-panel .matewa-chip-editor-chip,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip {
    min-height: 50px;
    height: 50px;
    border-color: rgba(5, 122, 41, 0.28);
    color: #057a29;
    background: #ffffff;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.055);
}

.matewa-chip-studio-editor-panel .matewa-chip-editor-chip textarea,
.matewa-chip-studio-preview-panel .matewa-chip-editor-chip span,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip span {
    font-size: 11.2px;
    font-weight: 700;
    line-height: 1.25;
}

.matewa-chip-studio-card .matewa-chip-editor-helper {
    margin-top: 11px;
    padding: 10px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
}

.matewa-chip-studio-save-actions {
    margin-top: 13px;
}

.matewa-chip-studio-phone {
    padding: 12px;
    border: 1px solid #dbeee0;
    border-radius: 22px;
    background:
        linear-gradient(180deg, #f8fafc 0%, #ffffff 46%, #f0fdf4 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 12px 28px rgba(15, 23, 42, 0.06);
}

.matewa-chip-studio-phone-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.matewa-chip-studio-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.matewa-chip-studio-phone-head strong,
.matewa-chip-studio-phone-head span {
    display: block;
}

.matewa-chip-studio-phone-head strong {
    color: #0f172a;
    font-size: 13px;
    line-height: 1.25;
}

.matewa-chip-studio-phone-head span {
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
}

.matewa-chip-studio-chat-card {
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    background: #ffffff;
}

.matewa-chip-studio-chat-card p {
    margin: 0 0 11px;
    color: #334155;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.matewa-chip-studio-live-grid {
    margin-top: 0;
}

.matewa-chip-studio-live-chip span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    width: 100%;
    max-height: 31px;
    overflow: hidden;
    white-space: normal;
}

.matewa-chip-studio-match-card {
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: 15px;
    background: #f0fdf4;
    color: #14532d;
}

.matewa-chip-studio-match-card strong,
.matewa-chip-studio-match-card span {
    display: block;
}

.matewa-chip-studio-match-card strong {
    margin-bottom: 3px;
    font-size: 12px;
}

.matewa-chip-studio-match-card span {
    font-size: 12px;
    line-height: 1.45;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-pill,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-steps span,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-panel,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-default-preview,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-chat-card,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-match-card {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 96% 0%, rgba(106, 207, 99, 0.10), transparent 32%),
        rgba(9, 20, 32, 0.78);
    color: #e2e8f0;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-pill span,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-eyebrow,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-card .matewa-chip-preview-heading,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-match-card strong {
    color: #bbf7d0;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-panel-header p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-card .matewa-chip-preview-subtle,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-phone-head span,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-chat-card p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-match-card span,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-card .matewa-selector-grid .matewa-selector-field label {
    color: #b7c2cf;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-phone {
    border-color: rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(9, 20, 32, 0.96));
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.05), 0 20px 40px rgba(0, 0, 0, 0.22);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-phone-head strong {
    color: #f8fafc;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-card .matewa-chip-editor-helper {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.70);
    color: #b7c2cf;
}

@media (max-width: 1100px) {
    .matewa-chip-studio-layout {
        grid-template-columns: 1fr;
    }

    .matewa-chip-studio-card .matewa-chip-editor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .matewa-chip-studio-card {
        padding: 18px;
    }

    .matewa-chip-studio-header {
        flex-direction: column;
    }

    .matewa-chip-studio-pill {
        width: 100%;
        box-sizing: border-box;
    }

    .matewa-chip-studio-steps {
        grid-template-columns: 1fr;
    }

    .matewa-chip-studio-card .matewa-chip-editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   247ChatMate — Chip Studio combined edit/preview correction
   Phase 5-A-12B-3
   Checkpoint target: CHIPSTUDIOVISUALRESTRUCTURE5A12BLOCK

   Purpose:
   - Gives the business-type column enough room for widget-sized chips.
   - Combines edit + preview into one larger panel so the admin chips can
     follow the same sizing contract as the frontend widget chips.
   - Adds a gentle confirm/save pulse when unsaved chip or business-type
     changes are detected.
   - Visual/layout only. No save, vertical, frontend, WhatsApp or licence logic.
========================================================= */

.matewa-chip-studio-steps.is-two-step {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
}

.matewa-chip-studio-layout {
    grid-template-columns: minmax(360px, 0.9fr) minmax(640px, 1.7fr);
    gap: 16px;
}

.matewa-chip-studio-business-panel {
    min-width: 0;
}

.matewa-chip-studio-combined-panel {
    min-width: 0;
}

.matewa-chip-studio-edit-preview-grid {
    display: grid;
    grid-template-columns: minmax(318px, 0.95fr) minmax(340px, 1fr);
    gap: 18px;
    align-items: start;
}

.matewa-chip-studio-edit-column,
.matewa-chip-studio-preview-column {
    min-width: 0;
}

.matewa-chip-studio-preview-label {
    margin-bottom: 8px;
    color: #15803d;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;
}

.matewa-chip-studio-default-preview .matewa-chip-editor-frame,
.matewa-chip-studio-edit-column .matewa-chip-editor-frame {
    width: 318px;
    max-width: 100%;
}

.matewa-chip-studio-default-preview .matewa-chip-editor-grid,
.matewa-chip-studio-edit-grid,
.matewa-chip-studio-live-grid {
    width: 318px;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 7px;
    row-gap: 7px;
}

.matewa-chip-studio-default-preview .matewa-chip-editor-chip,
.matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-chip-studio-preview-panel .matewa-chip-editor-chip {
    height: 50px;
    min-height: 50px;
    padding: 6px 7px;
    border-radius: 14px;
}

.matewa-chip-studio-editor-panel .matewa-chip-editor-chip textarea,
.matewa-chip-studio-preview-panel .matewa-chip-editor-chip span,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip span,
.matewa-chip-studio-live-chip span {
    font-size: 11.2px;
    font-weight: 700;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.matewa-chip-studio-editor-panel .matewa-chip-editor-measure {
    width: 100%;
    max-width: 100%;
    font-size: 11.2px;
    font-weight: 700;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.matewa-chip-studio-live-chip span {
    max-height: 30px;
}

.matewa-chip-studio-phone {
    width: 318px;
    max-width: 100%;
    box-sizing: border-box;
}

.matewa-chip-studio-chat-card {
    padding: 12px 12px 14px;
}

.matewa-chip-studio-card .matewa-chip-editor-helper {
    width: 318px;
    max-width: 100%;
    box-sizing: border-box;
}

.matewa-chip-studio-save-actions .button[data-matewa-confirm-action].is-attention,
.matewa-chip-studio-default-preview .button[data-matewa-confirm-action].is-attention,
.matewa-chip-studio-card .button[data-matewa-confirm-action].is-attention {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18), 0 10px 22px rgba(22, 163, 74, 0.18) !important;
    animation: matewa-chip-confirm-pulse 1.35s ease-in-out infinite;
}

@keyframes matewa-chip-confirm-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12), 0 8px 18px rgba(22, 163, 74, 0.12);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(22, 163, 74, 0.24), 0 12px 26px rgba(22, 163, 74, 0.18);
    }
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-preview-label {
    color: #bbf7d0;
}

@media (max-width: 1180px) {
    .matewa-chip-studio-layout {
        grid-template-columns: 1fr;
    }

    .matewa-chip-studio-edit-preview-grid {
        grid-template-columns: minmax(318px, 0.95fr) minmax(318px, 1fr);
    }
}

@media (max-width: 860px) {
    .matewa-chip-studio-edit-preview-grid {
        grid-template-columns: 1fr;
    }

    .matewa-chip-studio-steps.is-two-step {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

@media (max-width: 520px) {
    .matewa-chip-studio-default-preview .matewa-chip-editor-grid,
    .matewa-chip-studio-edit-grid,
    .matewa-chip-studio-live-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .matewa-chip-studio-default-preview .matewa-chip-editor-frame,
    .matewa-chip-studio-edit-column .matewa-chip-editor-frame,
    .matewa-chip-studio-card .matewa-chip-editor-helper,
    .matewa-chip-studio-phone {
        width: 100%;
    }
}

/* =========================================================
   247ChatMate — Chip Studio layout rescue
   Phase 5-A-12B-4
   Checkpoint target: CHIPSTUDIOVISUALRESTRUCTURE5A12BLOCK

   Purpose:
   - Stops the Chip Studio being squeezed by too many fixed-width
     columns inside the WordPress admin content area.
   - Gives Business type and suggested buttons room to breathe.
   - Keeps the frontend-style 318px / 3-by-2 chip sizing contract.
   - Keeps the live preview, confirm/revert flow and attention pulse.
   - Visual/layout only. No save, vertical, frontend, WhatsApp or licence logic.
========================================================= */

.matewa-chip-studio-card {
    box-sizing: border-box;
}

.matewa-chip-studio-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.matewa-chip-studio-business-panel {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(318px, 1fr);
    column-gap: 24px;
    row-gap: 14px;
    align-items: start;
}

.matewa-chip-studio-business-panel .matewa-chip-studio-panel-header {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
.matewa-chip-studio-business-panel .matewa-selector-grid {
    grid-column: 1;
    width: 100%;
    max-width: 360px;
}

.matewa-chip-studio-business-panel .matewa-chip-studio-default-preview {
    grid-column: 2;
    margin-top: 0;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

.matewa-chip-studio-default-preview .matewa-chip-editor-frame,
.matewa-chip-studio-default-preview .matewa-chip-editor-grid,
.matewa-chip-studio-edit-column .matewa-chip-editor-frame,
.matewa-chip-studio-edit-grid,
.matewa-chip-studio-live-grid,
.matewa-chip-studio-phone,
.matewa-chip-studio-card .matewa-chip-editor-helper {
    width: 318px;
    max-width: 100%;
    box-sizing: border-box;
}

.matewa-chip-studio-edit-preview-grid {
    grid-template-columns: minmax(318px, 360px) minmax(318px, 360px);
    justify-content: start;
    gap: 28px;
}

.matewa-chip-studio-editor-panel .matewa-chip-studio-panel-header {
    margin-bottom: 14px;
}

.matewa-chip-studio-edit-column,
.matewa-chip-studio-preview-column {
    width: 100%;
    max-width: 360px;
}

.matewa-chip-studio-default-preview .matewa-chip-editor-grid,
.matewa-chip-studio-edit-grid,
.matewa-chip-studio-live-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 8px;
}

.matewa-chip-studio-default-preview .matewa-chip-editor-item,
.matewa-chip-studio-edit-grid .matewa-chip-editor-item,
.matewa-chip-studio-live-grid .matewa-chip-editor-item {
    min-width: 0;
}

.matewa-chip-studio-default-preview .matewa-chip-editor-chip,
.matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-chip-studio-preview-panel .matewa-chip-editor-chip {
    width: 100%;
    box-sizing: border-box;
}

.matewa-chip-studio-card .matewa-chip-editor-actions {
    width: 318px;
    max-width: 100%;
}

.matewa-chip-studio-card .matewa-chip-editor-actions .button {
    white-space: normal;
}

@media (max-width: 980px) {
    .matewa-chip-studio-business-panel {
        grid-template-columns: 1fr;
    }

    .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-chip-studio-business-panel .matewa-selector-grid,
    .matewa-chip-studio-business-panel .matewa-chip-studio-default-preview {
        grid-column: 1;
    }

    .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-chip-studio-business-panel .matewa-selector-grid {
        max-width: 420px;
    }
}

@media (max-width: 860px) {
    .matewa-chip-studio-edit-preview-grid {
        grid-template-columns: 1fr;
    }

    .matewa-chip-studio-edit-column,
    .matewa-chip-studio-preview-column {
        max-width: 420px;
    }
}

@media (max-width: 520px) {
    .matewa-chip-studio-default-preview .matewa-chip-editor-frame,
    .matewa-chip-studio-default-preview .matewa-chip-editor-grid,
    .matewa-chip-studio-edit-column .matewa-chip-editor-frame,
    .matewa-chip-studio-edit-grid,
    .matewa-chip-studio-live-grid,
    .matewa-chip-studio-phone,
    .matewa-chip-studio-card .matewa-chip-editor-helper,
    .matewa-chip-studio-card .matewa-chip-editor-actions {
        width: 100%;
    }

    .matewa-chip-studio-default-preview .matewa-chip-editor-grid,
    .matewa-chip-studio-edit-grid,
    .matewa-chip-studio-live-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   247ChatMate — Phase 5-A-12C Lead-value dashboard circle state
   Checkpoint: LEADVALUEDASHBOARDCIRCLESTATE5A12CLOCK
   Scoped admin visual pass only.
========================================================= */

.matewa-dashboard-page {
    --matewa-dashboard-surface-width: 1480px;
    --matewa-dash-accent: #268f2b;
    --matewa-dash-accent-strong: #218329;
    --matewa-dash-accent-soft: #edf8ec;
    --matewa-dash-text-main: #0c1220;
    --matewa-dash-text-muted: #334155;
    --matewa-dash-line: rgba(15, 23, 42, 0.08);
    --matewa-dash-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.065);
    --matewa-dash-shadow-card: 0 16px 44px rgba(15, 23, 42, 0.075);
    background: #f7f9f7;
}

.matewa-dashboard-page > h1.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.matewa-dashboard-shell {
    --matewa-dash-bg: #f8fbf7;
    --matewa-dash-card: rgba(255, 255, 255, 0.94);
    --matewa-dash-card-strong: #ffffff;
    --matewa-dash-border: rgba(15, 23, 42, 0.075);
    --matewa-dash-border-strong: rgba(38, 143, 43, 0.30);
    --matewa-dash-text: #0c1220;
    --matewa-dash-muted: #435266;
    --matewa-dash-soft: #edf8ec;
    --matewa-dash-green: #268f2b;
    --matewa-dash-green-dark: #166534;
    --matewa-dash-warning: #b45309;
    --matewa-dash-danger: #dc2626;
    --matewa-dash-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    width: min(var(--matewa-dashboard-surface-width, 1480px), calc(100vw - 48px));
    max-width: var(--matewa-dashboard-surface-width, 1480px);
    margin: 10px 0 22px;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, 0.055);
    border-radius: 30px;
    background:
        radial-gradient(circle at 58% 0%, rgba(38, 143, 43, 0.06), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, var(--matewa-dash-bg) 100%);
    box-shadow: var(--matewa-dash-shadow);
    color: var(--matewa-dash-text);
}

.matewa-dashboard-shell::before {
    display: none;
}

.matewa-dashboard-sidebar,
.matewa-dashboard-main,
.matewa-dashboard-value-card,
.matewa-dashboard-hero-panel,
.matewa-dashboard-lead-panel,
.matewa-dashboard-setup-panel,
.matewa-dashboard-lower-accordions,
.matewa-dashboard-plan-mini,
.matewa-dashboard-help-box {
    box-sizing: border-box;
}

.matewa-dashboard-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 522px;
    padding: 18px 14px;
    border: 1px solid rgba(15, 23, 42, 0.055);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.045);
}

.matewa-dashboard-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 2px 0 22px;
    padding: 0 4px;
    color: var(--matewa-dash-text);
}

.matewa-dashboard-brand-icon {
    width: 31px;
    height: 31px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--matewa-dash-green);
    color: #ffffff;
    font-size: 18px;
    line-height: 31px;
}

.matewa-dashboard-brand strong {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.matewa-dashboard-side-nav {
    display: grid;
    gap: 7px;
}

.matewa-dashboard-side-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.matewa-dashboard-side-link .dashicons {
    width: 18px;
    height: 18px;
    color: #23303f;
    font-size: 18px;
    line-height: 18px;
}

.matewa-dashboard-side-link:hover,
.matewa-dashboard-side-link:focus-visible,
.matewa-dashboard-side-link.is-active {
    border-color: rgba(38, 143, 43, 0.10);
    background: #eaf6e8;
    color: #12611e;
    outline: none;
}

.matewa-dashboard-side-link:hover .dashicons,
.matewa-dashboard-side-link:focus-visible .dashicons,
.matewa-dashboard-side-link.is-active .dashicons {
    color: #12611e;
}

.matewa-dashboard-plan-mini {
    margin-top: auto;
    padding: 14px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
}

.matewa-dashboard-plan-mini span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--matewa-dash-green);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
}

.matewa-dashboard-plan-mini span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--matewa-dash-green);
}

.matewa-dashboard-plan-mini strong {
    display: block;
    color: var(--matewa-dash-text);
    font-size: 14px;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.matewa-dashboard-sidebar .matewa-dashboard-theme-switch {
    width: 100%;
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
}

.matewa-dashboard-sidebar .matewa-dashboard-theme-option {
    justify-content: center;
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.matewa-dashboard-main {
    display: grid;
    min-width: 0;
    gap: 14px;
}

.matewa-dashboard-value-card {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(430px, 1.08fr) minmax(300px, 0.88fr);
    gap: 24px;
    min-height: 360px;
    padding: 28px 30px;
    border: 1px solid var(--matewa-dash-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--matewa-dash-shadow-card);
}

.matewa-dashboard-hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 4px 0 4px 4px;
}

.matewa-dashboard-greeting {
    margin: 0 0 8px !important;
    color: var(--matewa-dash-text) !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    letter-spacing: -0.02em;
    line-height: 1.2 !important;
}

.matewa-dashboard-hero-panel h2 {
    max-width: 430px;
    margin: 0 0 14px;
    color: var(--matewa-dash-text);
    font-size: clamp(28px, 2.25vw, 40px);
    font-weight: 950;
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.matewa-dashboard-title-check {
    display: inline-flex;
    width: 27px;
    height: 27px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--matewa-dash-green);
    color: #fff;
    font-size: 18px;
    line-height: 27px;
    vertical-align: middle;
}

.matewa-dashboard-hero-panel > p:not(.matewa-dashboard-greeting) {
    max-width: 440px;
    margin: 0;
    color: var(--matewa-dash-muted);
    font-size: 16px;
    line-height: 1.55;
}

.matewa-dashboard-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    gap: 14px;
    margin: 28px 0 24px;
}

.matewa-dashboard-benefit {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 10px;
    min-width: 0;
    text-align: center;
}

.matewa-dashboard-benefit .dashicons {
    width: 43px;
    height: 43px;
    border: 1px solid rgba(38, 143, 43, 0.11);
    border-radius: 999px;
    background: #eef9ed;
    color: var(--matewa-dash-green);
    font-size: 23px;
    line-height: 43px;
    box-shadow: 0 10px 24px rgba(38, 143, 43, 0.08);
}

.matewa-dashboard-benefit strong {
    max-width: 92px;
    color: var(--matewa-dash-text);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
}

.matewa-dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.matewa-dashboard-primary-button,
.matewa-dashboard-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 24px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

.matewa-dashboard-primary-button {
    border: 1px solid #1f7e25;
    background: linear-gradient(180deg, #24962b 0%, #1e8125 100%);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(34, 137, 41, 0.22);
}

.matewa-dashboard-primary-button:hover,
.matewa-dashboard-primary-button:focus-visible {
    color: #ffffff;
    border-color: #166534;
    background: #166f1f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 143, 43, 0.16), 0 12px 26px rgba(34, 137, 41, 0.18);
}

.matewa-dashboard-secondary-button {
    border: 1px solid rgba(15, 23, 42, 0.13);
    background: rgba(255, 255, 255, 0.78);
    color: #101827;
}

.matewa-dashboard-secondary-button:hover,
.matewa-dashboard-secondary-button:focus-visible {
    border-color: rgba(38, 143, 43, 0.24);
    color: #166534;
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 143, 43, 0.10);
}

.matewa-dashboard-lead-panel {
    position: relative;
    min-width: 0;
    padding: 2px 0;
    border-left: 1px solid rgba(15, 23, 42, 0.06);
}

.matewa-dashboard-lead-panel h3 {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 56px;
    margin: 0;
    color: var(--matewa-dash-text);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.matewa-dashboard-lead-panel h3 .dashicons {
    color: #64748b;
    font-size: 15px;
    line-height: 15px;
    vertical-align: -2px;
}

.matewa-dashboard-lead-panel .matewa-dashboard-radial {
    position: relative;
    width: min(500px, 100%);
    min-height: 322px;
    margin: 24px auto 0;
}

.matewa-dashboard-lead-panel .matewa-dashboard-radial::before {
    width: 308px;
    height: 308px;
    border: 1px dashed rgba(38, 143, 43, 0.28);
    background: transparent;
}

.matewa-dashboard-lead-panel .matewa-dashboard-radial::after {
    width: 198px;
    height: 198px;
    border: 1px solid rgba(38, 143, 43, 0.22);
}

.matewa-dashboard-lead-panel .matewa-dashboard-radial-center {
    width: 178px;
    height: 178px;
    padding: 18px;
    border: 2px solid rgba(38, 143, 43, 0.82);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.10), 0 0 0 8px rgba(237, 248, 236, 0.76);
}

.matewa-dashboard-lead-panel .matewa-dashboard-radial-icon {
    width: 30px;
    height: 30px;
    margin: 0 0 6px;
    border-radius: 999px;
    background: var(--matewa-dash-green);
    color: #ffffff;
    font-size: 18px;
    line-height: 30px;
}

.matewa-dashboard-lead-panel .matewa-dashboard-radial-center strong {
    max-width: none;
    margin: 0;
    color: var(--matewa-dash-green);
    font-size: 43px;
    font-weight: 950;
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.matewa-dashboard-radial-label {
    margin-top: 7px;
    color: var(--matewa-dash-text) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.matewa-dashboard-radial-trend,
.matewa-dashboard-metric-trend {
    color: var(--matewa-dash-green) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
}

.matewa-dashboard-radial-trend.is-down,
.matewa-dashboard-orbit-item.is-down .matewa-dashboard-metric-trend {
    color: var(--matewa-dash-danger) !important;
}

.matewa-dashboard-lead-panel .matewa-dashboard-orbit-item {
    width: 104px;
    height: 104px;
    padding: 12px 10px;
    gap: 4px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.075);
}

.matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-1 {
    transform: translate(-50%, -50%) rotate(270deg) translate(151px) rotate(-270deg);
}

.matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-2 {
    transform: translate(-50%, -50%) rotate(330deg) translate(151px) rotate(-330deg);
}

.matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-3 {
    transform: translate(-50%, -50%) rotate(30deg) translate(151px) rotate(-30deg);
}

.matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-4 {
    transform: translate(-50%, -50%) rotate(90deg) translate(151px) rotate(-90deg);
}

.matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-5 {
    transform: translate(-50%, -50%) rotate(150deg) translate(151px) rotate(-150deg);
}

.matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-6 {
    transform: translate(-50%, -50%) rotate(210deg) translate(151px) rotate(-210deg);
}

.matewa-dashboard-metric-value {
    display: block;
    margin: 0;
    color: var(--matewa-dash-green) !important;
    font-size: 23px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

.matewa-dashboard-metric-label {
    display: block;
    max-width: 78px;
    color: var(--matewa-dash-text) !important;
    font-size: 9.5px !important;
    font-weight: 850 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.12 !important;
}

.matewa-dashboard-setup-panel {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.095);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.78);
}

.matewa-dashboard-setup-panel h3 {
    margin: 0 0 14px;
    color: var(--matewa-dash-text);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.matewa-dashboard-setup-summary {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.matewa-dashboard-setup-summary > .dashicons {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--matewa-dash-green);
    color: #ffffff;
    font-size: 15px;
    line-height: 20px;
}

.matewa-dashboard-setup-summary.is-needed > .dashicons {
    background: #f59e0b;
}

.matewa-dashboard-setup-summary strong {
    display: block;
    margin-bottom: 3px;
    color: var(--matewa-dash-green);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.matewa-dashboard-setup-summary p {
    margin: 0;
    color: var(--matewa-dash-muted);
    font-size: 12px;
    line-height: 1.35;
}

.matewa-dashboard-progress {
    height: 7px;
    display: block;
    margin: 3px 0 16px;
    overflow: hidden;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.08) 0 30px, transparent 30px 34px);
}

.matewa-dashboard-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f9a2f, #28a73a);
}

.matewa-dashboard-checklist {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.matewa-dashboard-check-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    color: #1f2937;
    text-decoration: none;
}

.matewa-dashboard-check-row > .dashicons:first-child {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--matewa-dash-green);
    color: #ffffff;
    font-size: 13px;
    line-height: 18px;
}

.matewa-dashboard-check-row.is-needed > .dashicons:first-child {
    background: #f59e0b;
}

.matewa-dashboard-check-row strong {
    color: var(--matewa-dash-text);
    font-size: 12.5px;
    font-weight: 760;
    line-height: 1.25;
}

.matewa-dashboard-check-row > .dashicons:last-child {
    color: #374151;
    font-size: 15px;
    line-height: 15px;
}

.matewa-dashboard-check-row:hover,
.matewa-dashboard-check-row:focus-visible {
    color: var(--matewa-dash-green-dark);
    outline: none;
}

.matewa-dashboard-help-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 14px 16px;
    border: 1px solid rgba(38, 143, 43, 0.12);
    border-radius: 12px;
    background: #eef8ed;
}

.matewa-dashboard-help-box strong {
    display: block;
    margin-bottom: 5px;
    color: var(--matewa-dash-text);
    font-size: 14px;
    font-weight: 900;
}

.matewa-dashboard-help-box p {
    margin: 0;
    color: var(--matewa-dash-muted);
    font-size: 11.5px;
    line-height: 1.25;
}

.matewa-dashboard-help-box a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 118px;
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 7px;
    background: #218329;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.matewa-dashboard-help-box a:hover,
.matewa-dashboard-help-box a:focus-visible {
    background: #166534;
    color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 143, 43, 0.14);
}

.matewa-dashboard-lower-accordions .matewa-plan-access-shell {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.matewa-dashboard-lower-accordions .matewa-plan-access-shell > h2 {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.matewa-dashboard-lower-accordions .matewa-plan-overview {
    margin-top: 14px;
    margin-bottom: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
}

.matewa-dashboard-lower-accordions .matewa-plan-status-circles {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.matewa-dashboard-lower-accordions .matewa-plan-status-circle {
    min-height: 82px;
    padding: 9px 8px;
    border-radius: 18px;
    box-shadow: none;
}

.matewa-dashboard-lower-accordions .matewa-plan-access-sections {
    gap: 6px;
    margin-top: 0;
}

.matewa-dashboard-lower-accordions .matewa-plan-access-section {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: none;
}

.matewa-dashboard-lower-accordions .matewa-plan-access-section > summary {
    min-height: 48px;
    padding: 11px 15px;
}

.matewa-dashboard-lower-accordions .matewa-plan-access-section > summary span {
    font-size: 14px;
}

.matewa-dashboard-lower-accordions .matewa-plan-access-section > summary small {
    font-size: 11.5px;
}

.matewa-dashboard-technical-divider {
    width: min(var(--matewa-dashboard-surface-width, 1480px), calc(100vw - 48px));
    max-width: var(--matewa-dashboard-surface-width, 1480px);
    opacity: 0.45;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] {
    background: #07111c;
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] {
    --matewa-dash-bg: #081521;
    --matewa-dash-card: rgba(11, 24, 38, 0.90);
    --matewa-dash-card-strong: rgba(12, 26, 41, 0.98);
    --matewa-dash-border: rgba(148, 163, 184, 0.16);
    --matewa-dash-border-strong: rgba(72, 190, 79, 0.42);
    --matewa-dash-text: #f8fafc;
    --matewa-dash-muted: #b8c5d4;
    --matewa-dash-soft: rgba(38, 143, 43, 0.12);
    --matewa-dash-green: #35b729;
    --matewa-dash-green-dark: #d7fbe0;
    --matewa-dash-danger: #f87171;
    background:
        radial-gradient(circle at 57% 0%, rgba(53, 183, 41, 0.16), transparent 32%),
        linear-gradient(180deg, #0b1723 0%, #06111d 100%);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-sidebar,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-value-card,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-setup-panel,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-plan-mini,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-help-box,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-theme-switch,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-dashboard-lower-accordions .matewa-plan-overview,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-dashboard-lower-accordions .matewa-plan-access-section,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-dashboard-lower-accordions .matewa-plan-status-circle {
    border-color: rgba(148, 163, 184, 0.16) !important;
    background: rgba(10, 22, 35, 0.72) !important;
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-side-link,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-side-link .dashicons,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-check-row > .dashicons:last-child,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-secondary-button,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-benefit strong,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-check-row strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-dashboard-lower-accordions .matewa-plan-access-section > summary,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-dashboard-lower-accordions .matewa-plan-status-circle {
    color: #f8fafc !important;
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-hero-panel > p:not(.matewa-dashboard-greeting),
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-setup-summary p,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-help-box p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-dashboard-lower-accordions .matewa-plan-overview__copy p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-dashboard-lower-accordions .matewa-plan-access-section > summary small {
    color: #b8c5d4 !important;
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-side-link:hover,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-side-link:focus-visible,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-side-link.is-active,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-theme-option.is-active {
    border-color: rgba(53, 183, 41, 0.18);
    background: rgba(53, 183, 41, 0.16);
    color: #d7fbe0 !important;
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-side-link:hover .dashicons,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-side-link:focus-visible .dashicons,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-side-link.is-active .dashicons {
    color: #d7fbe0 !important;
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-benefit .dashicons,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-secondary-button,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item,
.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-lead-panel .matewa-dashboard-radial-center {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(9, 20, 32, 0.88);
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-lead-panel {
    border-left-color: rgba(148, 163, 184, 0.13);
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-lead-panel .matewa-dashboard-radial::before {
    border-color: rgba(53, 183, 41, 0.30);
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-dashboard-lead-panel .matewa-dashboard-radial::after {
    border-color: rgba(53, 183, 41, 0.22);
}

@media (max-width: 1280px) {
    .matewa-dashboard-shell {
        width: min(var(--matewa-dashboard-surface-width, 1480px), calc(100vw - 34px));
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 14px;
    }

    .matewa-dashboard-value-card {
        grid-template-columns: minmax(270px, 0.96fr) minmax(360px, 1fr) minmax(270px, 0.84fr);
        gap: 18px;
        padding: 24px;
    }

    .matewa-dashboard-benefits {
        gap: 10px;
    }

    .matewa-dashboard-lead-panel .matewa-dashboard-radial {
        width: min(430px, 100%);
    }

    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item {
        width: 96px;
        height: 96px;
    }

    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-1,
    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-2,
    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-3,
    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-4,
    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-5,
    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-6 {
        --matewa-orbit-distance: 142px;
    }

    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-1 {
        transform: translate(-50%, -50%) rotate(270deg) translate(var(--matewa-orbit-distance)) rotate(-270deg);
    }

    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-2 {
        transform: translate(-50%, -50%) rotate(330deg) translate(var(--matewa-orbit-distance)) rotate(-330deg);
    }

    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-3 {
        transform: translate(-50%, -50%) rotate(30deg) translate(var(--matewa-orbit-distance)) rotate(-30deg);
    }

    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-4 {
        transform: translate(-50%, -50%) rotate(90deg) translate(var(--matewa-orbit-distance)) rotate(-90deg);
    }

    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-5 {
        transform: translate(-50%, -50%) rotate(150deg) translate(var(--matewa-orbit-distance)) rotate(-150deg);
    }

    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-6 {
        transform: translate(-50%, -50%) rotate(210deg) translate(var(--matewa-orbit-distance)) rotate(-210deg);
    }
}

@media (max-width: 1120px) {
    .matewa-dashboard-shell {
        grid-template-columns: 1fr;
    }

    .matewa-dashboard-sidebar {
        min-height: 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 14px;
    }

    .matewa-dashboard-brand,
    .matewa-dashboard-plan-mini,
    .matewa-dashboard-sidebar .matewa-dashboard-theme-switch {
        margin: 0;
    }

    .matewa-dashboard-side-nav {
        flex: 1 1 420px;
        display: flex;
        flex-wrap: wrap;
    }

    .matewa-dashboard-plan-mini {
        margin-left: auto;
    }

    .matewa-dashboard-sidebar .matewa-dashboard-theme-switch {
        width: 180px;
    }

    .matewa-dashboard-value-card {
        grid-template-columns: 1fr;
    }

    .matewa-dashboard-lead-panel {
        border-left: 0;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
        padding-top: 22px;
    }

    .matewa-dashboard-lead-panel h3 {
        position: static;
        margin-bottom: 10px;
    }

    .matewa-dashboard-lead-panel .matewa-dashboard-radial {
        width: min(540px, 100%);
        margin-top: 0;
    }

    .matewa-dashboard-setup-panel {
        min-height: 0;
    }
}

@media (max-width: 782px) {
    .matewa-dashboard-shell {
        width: calc(100vw - 24px);
        padding: 12px;
        border-radius: 22px;
    }

    .matewa-dashboard-sidebar {
        padding: 14px;
        border-radius: 18px;
    }

    .matewa-dashboard-side-nav {
        display: grid;
        grid-template-columns: 1fr;
        flex-basis: 100%;
    }

    .matewa-dashboard-plan-mini,
    .matewa-dashboard-sidebar .matewa-dashboard-theme-switch {
        width: 100%;
    }

    .matewa-dashboard-value-card {
        padding: 18px;
        border-radius: 20px;
    }

    .matewa-dashboard-hero-panel h2 {
        font-size: clamp(28px, 9vw, 36px);
    }

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

    .matewa-dashboard-lead-panel .matewa-dashboard-radial {
        display: grid;
        gap: 9px;
        min-height: 0;
    }

    .matewa-dashboard-lead-panel .matewa-dashboard-radial::before,
    .matewa-dashboard-lead-panel .matewa-dashboard-radial::after {
        display: none;
    }

    .matewa-dashboard-lead-panel .matewa-dashboard-radial-center,
    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item,
    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-1,
    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-2,
    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-3,
    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-4,
    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-5,
    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-6 {
        position: static;
        width: 100%;
        height: auto;
        min-height: 76px;
        border-radius: 16px;
        transform: none;
    }

    .matewa-dashboard-lead-panel .matewa-dashboard-radial-center {
        min-height: 150px;
    }

    .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item {
        display: grid;
        grid-template-columns: 66px 1fr auto;
        text-align: left;
    }

    .matewa-dashboard-metric-label {
        max-width: none;
        font-size: 12px !important;
    }

    .matewa-dashboard-help-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .matewa-dashboard-help-box a {
        width: 100%;
    }

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

@media (max-width: 520px) {
    .matewa-dashboard-hero-actions,
    .matewa-dashboard-primary-button,
    .matewa-dashboard-secondary-button {
        width: 100%;
    }

    .matewa-dashboard-benefits,
    .matewa-dashboard-lower-accordions .matewa-plan-status-circles {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   247ChatMate — Phase 5-A-12C-1 Demo widget preview spacing fix
   Checkpoint: LEADVALUEDASHBOARDCIRCLESTATE5A12CLOCK
   Purpose: make the admin live website preview chips match the
   3-by-2 suggested/edit chip sizing above without touching frontend logic.
========================================================= */

.matewa-dashboard-page .matewa-chip-studio-edit-preview-grid {
    grid-template-columns: minmax(318px, 360px) minmax(374px, 374px);
    gap: 24px;
    align-items: start;
}

.matewa-dashboard-page .matewa-chip-studio-preview-column {
    width: 374px;
    max-width: 100%;
}

.matewa-dashboard-page .matewa-chip-studio-phone {
    width: 374px;
    max-width: 100%;
    padding: 14px;
}

.matewa-dashboard-page .matewa-chip-studio-chat-card {
    padding: 13px 13px 15px;
}

.matewa-dashboard-page .matewa-chip-studio-live-grid {
    width: 318px;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 8px;
}

.matewa-dashboard-page .matewa-chip-studio-live-grid .matewa-chip-editor-item {
    min-width: 0;
}

.matewa-dashboard-page .matewa-chip-studio-live-chip {
    height: 50px;
    min-height: 50px;
    padding: 6px 7px;
    border-radius: 14px;
}

.matewa-dashboard-page .matewa-chip-studio-live-chip span {
    font-size: 11.2px;
    font-weight: 700;
    line-height: 1.25;
    max-height: 30px;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.matewa-dashboard-page .matewa-chip-studio-match-card {
    width: 374px;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 980px) {
    .matewa-dashboard-page .matewa-chip-studio-edit-preview-grid {
        grid-template-columns: 1fr;
    }

    .matewa-dashboard-page .matewa-chip-studio-preview-column,
    .matewa-dashboard-page .matewa-chip-studio-phone,
    .matewa-dashboard-page .matewa-chip-studio-match-card {
        width: 374px;
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .matewa-dashboard-page .matewa-chip-studio-preview-column,
    .matewa-dashboard-page .matewa-chip-studio-phone,
    .matewa-dashboard-page .matewa-chip-studio-match-card,
    .matewa-dashboard-page .matewa-chip-studio-live-grid {
        width: 100%;
    }

    .matewa-dashboard-page .matewa-chip-studio-live-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   247ChatMate — Phase 5-A-12C-3 Settings card breathing room
   Checkpoint: LEADVALUEDASHBOARDCIRCLESTATE5A12CLOCK
   Purpose: make the lower admin cards taller and more spacious
   while preserving existing settings, save handling and widget logic.
========================================================= */

.matewa-dashboard-page .matewa-settings-card {
    padding: 28px 30px;
    margin-bottom: 24px;
    border-radius: 22px;
    box-sizing: border-box;
}

.matewa-dashboard-page .matewa-core-settings-heading {
    margin-bottom: 22px;
}

.matewa-dashboard-page .matewa-core-settings-grid {
    gap: 20px;
    align-items: stretch;
}

.matewa-dashboard-page .matewa-core-settings-panel {
    display: flex;
    flex-direction: column;
    min-height: 204px;
    padding: 24px;
    border-radius: 22px;
}

.matewa-dashboard-page .matewa-core-settings-panel--wide {
    min-height: 260px;
}

.matewa-dashboard-page .matewa-core-panel-heading {
    margin-bottom: 20px;
}

.matewa-dashboard-page .matewa-field-stack,
.matewa-dashboard-page .matewa-choice-stack {
    gap: 16px;
}

.matewa-dashboard-page .matewa-field-row {
    gap: 16px;
}

.matewa-dashboard-page .matewa-choice-card {
    min-height: 58px;
    padding: 15px 16px;
    border-radius: 18px;
}

.matewa-dashboard-page .matewa-core-settings-shell .submit {
    margin-top: 18px;
}

.matewa-dashboard-page .matewa-chip-studio-card {
    padding: 28px 30px 32px;
}

.matewa-dashboard-page .matewa-chip-studio-header {
    margin-bottom: 22px;
}

.matewa-dashboard-page .matewa-chip-studio-steps {
    margin-bottom: 22px;
}

.matewa-dashboard-page .matewa-chip-studio-layout {
    gap: 20px;
}

.matewa-dashboard-page .matewa-chip-studio-panel {
    min-height: 252px;
    padding: 24px;
    border-radius: 22px;
}

.matewa-dashboard-page .matewa-chip-studio-panel-header {
    margin-bottom: 20px;
}

.matewa-dashboard-page .matewa-chip-studio-business-panel,
.matewa-dashboard-page .matewa-chip-studio-editor-panel {
    min-height: 292px;
}

.matewa-dashboard-page .matewa-chip-studio-edit-preview-grid {
    gap: 30px;
}

@media (max-width: 782px) {
    .matewa-dashboard-page .matewa-settings-card,
    .matewa-dashboard-page .matewa-chip-studio-card {
        padding: 22px;
        border-radius: 20px;
    }

    .matewa-dashboard-page .matewa-core-settings-panel,
    .matewa-dashboard-page .matewa-core-settings-panel--wide,
    .matewa-dashboard-page .matewa-chip-studio-panel,
    .matewa-dashboard-page .matewa-chip-studio-business-panel,
    .matewa-dashboard-page .matewa-chip-studio-editor-panel {
        min-height: 0;
        padding: 20px;
    }
}

/* =========================================================
   Phase 5-A-13 — Full admin UX page split and polish pass
   Checkpoint target: FULLADMINUXPAGESPLIT5A13

   Purpose:
   - Turns the long settings view into clearer admin pages.
   - Uses the supplied 247TradeMate logo in the admin sidebar.
   - Improves spacing, hierarchy, contrast and card consistency.

   Does not:
   - Change option names, save handling, JSON-fed vertical/chip logic,
     widget behaviour, WhatsApp handoff, licence or trial decisions.
========================================================= */

.matewa-dashboard-page {
    --matewa-dashboard-surface-width: 1480px;
    --matewa-admin-green: #197a22;
    --matewa-admin-green-2: #268f2b;
    --matewa-admin-green-soft: #ecfdf3;
    --matewa-admin-text: #0f172a;
    --matewa-admin-muted: #475569;
    --matewa-admin-border: rgba(15, 23, 42, 0.10);
    --matewa-admin-card-shadow: 0 18px 44px rgba(15, 23, 42, 0.055);
}

.matewa-admin-shell {
    align-items: stretch;
    min-height: min(980px, calc(100vh - 70px));
    padding: 18px;
    gap: 20px;
    border-radius: 30px;
}

.matewa-admin-sidebar {
    position: sticky;
    top: 44px;
    align-self: start;
    min-height: calc(100vh - 118px);
    max-height: calc(100vh - 118px);
}

.matewa-admin-brand {
    align-items: center;
    gap: 12px;
    min-height: 44px;
}

.matewa-admin-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: transparent;
    box-shadow: 0 10px 22px rgba(25, 122, 34, 0.18);
    overflow: hidden;
}

.matewa-admin-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.matewa-admin-brand-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.matewa-admin-brand-copy strong {
    font-size: 17px;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.matewa-admin-brand-copy small {
    color: var(--matewa-admin-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.matewa-dashboard-side-link {
    min-height: 44px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
}

.matewa-dashboard-side-link:focus-visible,
.matewa-admin-ghost-button:focus-visible,
.matewa-admin-save-button:focus-visible,
.matewa-admin-help-card a:focus-visible {
    outline: 3px solid rgba(38, 143, 43, 0.26);
    outline-offset: 3px;
    box-shadow: none;
}

.matewa-admin-main {
    align-content: start;
    gap: 16px;
    min-height: 100%;
}

.matewa-admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 82px;
    padding: 20px 22px;
    border: 1px solid var(--matewa-admin-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.matewa-admin-topbar h2 {
    margin: 0;
    color: var(--matewa-admin-text);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.matewa-admin-topbar p {
    margin: 6px 0 0;
    max-width: 720px;
    color: var(--matewa-admin-muted);
    font-size: 14px;
    line-height: 1.45;
}

.matewa-admin-eyebrow {
    margin: 0 0 4px !important;
    color: var(--matewa-admin-green) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.11em;
    line-height: 1.1 !important;
    text-transform: uppercase;
}

.matewa-admin-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.matewa-admin-ghost-button,
.matewa-admin-save-button,
.matewa-core-settings-shell .button-primary,
.matewa-chip-studio-save-actions .button-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

.matewa-admin-ghost-button {
    border: 1px solid rgba(25, 122, 34, 0.28);
    background: #ffffff;
    color: var(--matewa-admin-green);
    text-decoration: none;
}

.matewa-admin-ghost-button:hover {
    border-color: rgba(25, 122, 34, 0.45);
    background: var(--matewa-admin-green-soft);
    color: #14532d;
}

.matewa-admin-save-button,
.matewa-core-settings-shell .button-primary,
.matewa-chip-studio-save-actions .button-primary {
    border-color: #176d20 !important;
    background: linear-gradient(180deg, #268f2b 0%, #197a22 100%) !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: 0 13px 24px rgba(25, 122, 34, 0.20) !important;
}

.matewa-admin-panel {
    display: none;
    min-width: 0;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] [data-matewa-admin-panel="dashboard"],
.matewa-dashboard-page[data-matewa-active-panel="plan"] [data-matewa-admin-panel="plan"],
.matewa-dashboard-page[data-matewa-active-panel="setup"] [data-matewa-admin-panel="settings"],
.matewa-dashboard-page[data-matewa-active-panel="display"] [data-matewa-admin-panel="settings"],
.matewa-dashboard-page[data-matewa-active-panel="agency"] [data-matewa-admin-panel="agency"],
.matewa-dashboard-page[data-matewa-active-panel="buttons"] [data-matewa-admin-panel="buttons"],
.matewa-dashboard-page[data-matewa-active-panel="help"] [data-matewa-admin-panel="help"] {
    display: block;
}

.matewa-admin-form-shell {
    display: block;
    margin: 0;
}

.matewa-admin-panel-heading {
    margin: 0 0 14px;
    padding: 20px 22px;
    border: 1px solid var(--matewa-admin-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(38, 143, 43, 0.10), transparent 34%),
        #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.matewa-admin-panel-heading span {
    display: inline-flex;
    margin-bottom: 7px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--matewa-admin-green-soft);
    color: var(--matewa-admin-green);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.matewa-admin-panel-heading h2 {
    margin: 0;
    color: var(--matewa-admin-text);
    font-size: 24px;
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.matewa-admin-panel-heading p {
    margin: 8px 0 0;
    max-width: 760px;
    color: var(--matewa-admin-muted);
    font-size: 14px;
    line-height: 1.5;
}

.matewa-admin-panel .matewa-settings-card,
.matewa-admin-panel .matewa-plan-access-shell,
.matewa-admin-panel .matewa-chip-studio-card {
    width: 100%;
    max-width: none;
    margin: 0;
}

.matewa-dashboard-value-card {
    width: 100%;
    min-height: 392px;
    align-items: stretch;
}

.matewa-dashboard-lead-panel .matewa-dashboard-radial {
    min-height: 350px;
}

.matewa-dashboard-setup-panel {
    min-height: 100%;
}

.matewa-dashboard-check-row {
    min-height: 43px;
}

/* Use the same settings partial as two calmer pages. */
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel--wide,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-panel:not(.matewa-core-settings-panel--wide) {
    display: none;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-heading,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-heading {
    display: none;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-grid {
    grid-template-columns: 1fr;
}

.matewa-core-settings-shell,
.matewa-chip-studio-card,
.matewa-plan-access-shell {
    border: 1px solid var(--matewa-admin-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 96% 0%, rgba(38, 143, 43, 0.08), transparent 32%),
        #ffffff;
    box-shadow: var(--matewa-admin-card-shadow);
}

.matewa-core-settings-grid {
    gap: 16px;
}

.matewa-core-settings-panel,
.matewa-chip-studio-panel,
.matewa-plan-access-section,
.matewa-admin-help-card {
    border-color: rgba(15, 23, 42, 0.10);
    border-radius: 20px;
}

.matewa-core-settings-panel {
    min-height: 214px;
    padding: 20px;
}

.matewa-field-row,
.matewa-choice-card {
    min-height: 46px;
}

.matewa-core-settings-panel input.regular-text,
.matewa-core-settings-panel input[type="email"],
.matewa-chip-studio-card select,
.matewa-chip-studio-card input[type="text"] {
    min-height: 40px;
    border-color: rgba(15, 23, 42, 0.18);
    border-radius: 12px;
}

.matewa-chip-studio-layout {
    grid-template-columns: minmax(260px, 0.92fr) minmax(380px, 1.15fr) minmax(300px, 0.95fr);
    gap: 18px;
}

.matewa-chip-studio-panel {
    padding: 20px;
}

.matewa-chip-studio-card .matewa-chip-editor-grid,
.matewa-chip-studio-live-grid,
.matewa-chip-studio-default-preview .matewa-chip-editor-grid {
    gap: 10px;
}

.matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-chip-studio-preview-panel .matewa-chip-editor-chip,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip {
    min-height: 56px;
    height: 56px;
    border-radius: 15px;
}

.matewa-chip-studio-phone {
    min-height: 100%;
}

.matewa-admin-help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.matewa-admin-help-card {
    min-height: 220px;
    padding: 22px;
    background: #ffffff;
    box-shadow: var(--matewa-admin-card-shadow);
}

.matewa-admin-help-card > .dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border: 1px solid rgba(38, 143, 43, 0.16);
    border-radius: 14px;
    background: var(--matewa-admin-green-soft);
    color: var(--matewa-admin-green);
    font-size: 21px;
    line-height: 42px;
}

.matewa-admin-help-card h3 {
    margin: 0 0 8px;
    color: var(--matewa-admin-text);
    font-size: 17px;
    line-height: 1.2;
}

.matewa-admin-help-card p {
    margin: 0 0 18px;
    color: var(--matewa-admin-muted);
    font-size: 14px;
    line-height: 1.5;
}

.matewa-admin-help-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid rgba(25, 122, 34, 0.24);
    border-radius: 12px;
    background: var(--matewa-admin-green-soft);
    color: var(--matewa-admin-green);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.matewa-dashboard-shell[data-matewa-dashboard-theme="dark"] .matewa-admin-topbar,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-panel-heading,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-help-card {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 96% 0%, rgba(106, 207, 99, 0.12), transparent 32%),
        rgba(9, 20, 32, 0.82);
    color: #f8fafc;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-topbar h2,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-panel-heading h2,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-help-card h3,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-brand-copy strong {
    color: #f8fafc;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-topbar p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-panel-heading p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-help-card p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-brand-copy small {
    color: #cbd5e1;
}

@media (max-width: 1280px) {
    .matewa-admin-shell {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .matewa-dashboard-value-card {
        grid-template-columns: 1fr;
    }

    .matewa-dashboard-lead-panel {
        border-left: 0;
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        padding-top: 22px;
    }

    .matewa-dashboard-lead-panel h3 {
        position: static;
        margin-bottom: 12px;
    }

    .matewa-chip-studio-layout,
    .matewa-admin-help-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .matewa-admin-shell {
        grid-template-columns: 1fr;
    }

    .matewa-admin-sidebar {
        position: static;
        min-height: auto;
        max-height: none;
    }

    .matewa-admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .matewa-admin-topbar-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* =========================================================
   247ChatMate — Visitor Button Studio layout correction
   Phase 5-A-13 recovery pass

   Purpose:
   - Keep the page-split admin structure.
   - Stop the Visitor Buttons page overlapping/squeezing.
   - Split the workflow into clear breathing-room cards:
     1 Business type, 2 Edit buttons, 3 Live website preview.
   - CSS/layout only apart from the matching heading markup in chip-editor.php.
========================================================= */

.matewa-chip-studio-card {
    padding: 28px !important;
}

.matewa-chip-studio-steps,
.matewa-chip-studio-steps.is-two-step,
.matewa-chip-studio-steps.is-three-step {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    max-width: none !important;
    gap: 14px !important;
    margin: 20px 0 22px !important;
}

.matewa-chip-studio-layout {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
    grid-template-areas:
        "business business"
        "editor preview" !important;
    gap: 22px !important;
    align-items: stretch !important;
}

.matewa-chip-studio-business-panel {
    grid-area: business !important;
    display: grid !important;
    grid-template-columns: minmax(270px, 380px) minmax(318px, 360px) !important;
    column-gap: 34px !important;
    row-gap: 16px !important;
    align-items: start !important;
    min-height: 0 !important;
}

.matewa-chip-studio-editor-panel {
    grid-area: editor !important;
}

.matewa-chip-studio-preview-panel {
    grid-area: preview !important;
}

.matewa-chip-studio-panel {
    position: relative !important;
    overflow: hidden !important;
    min-width: 0 !important;
    padding: 24px !important;
    border-radius: 20px !important;
}

.matewa-chip-studio-business-panel .matewa-chip-studio-panel-header {
    grid-column: 1 / -1 !important;
    margin-bottom: 0 !important;
}

.matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
.matewa-chip-studio-business-panel .matewa-selector-grid {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 380px !important;
}

.matewa-chip-studio-business-panel .matewa-chip-studio-default-preview {
    grid-column: 2 !important;
    align-self: start !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.matewa-chip-studio-editor-panel,
.matewa-chip-studio-preview-panel {
    display: flex !important;
    flex-direction: column !important;
}

.matewa-chip-studio-edit-column,
.matewa-chip-studio-preview-column {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.matewa-chip-studio-editor-panel .matewa-chip-editor-frame,
.matewa-chip-studio-default-preview .matewa-chip-editor-frame,
.matewa-chip-studio-card .matewa-chip-editor-helper,
.matewa-chip-studio-card .matewa-chip-editor-actions,
.matewa-chip-studio-phone {
    width: min(100%, 342px) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.matewa-chip-studio-preview-panel .matewa-chip-studio-phone,
.matewa-chip-studio-preview-panel .matewa-chip-studio-match-card {
    margin-left: auto !important;
    margin-right: auto !important;
}

.matewa-chip-studio-card .matewa-chip-editor-grid,
.matewa-chip-studio-default-preview .matewa-chip-editor-grid,
.matewa-chip-studio-edit-grid,
.matewa-chip-studio-live-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 7px !important;
    row-gap: 7px !important;
}

.matewa-chip-studio-default-preview .matewa-chip-editor-chip,
.matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-chip-studio-preview-panel .matewa-chip-editor-chip {
    min-height: 58px !important;
    height: 58px !important;
    padding: 8px 9px !important;
    border-radius: 15px !important;
    box-sizing: border-box !important;
}

.matewa-chip-studio-editor-panel .matewa-chip-editor-chip textarea,
.matewa-chip-studio-preview-panel .matewa-chip-editor-chip span,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip span,
.matewa-chip-studio-live-chip span {
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    text-align: center !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

.matewa-chip-studio-editor-panel .matewa-chip-editor-measure {
    width: calc(100% - 18px) !important;
    max-width: calc(100% - 18px) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

.matewa-chip-studio-card .matewa-chip-editor-helper {
    margin-top: 14px !important;
}

.matewa-chip-studio-card .matewa-chip-editor-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin-top: 16px !important;
}

.matewa-chip-studio-save-actions .button-primary {
    min-width: 190px !important;
    min-height: 42px !important;
    border-radius: 10px !important;
}

.matewa-chip-studio-save-actions .button-secondary {
    min-height: 42px !important;
    border-radius: 10px !important;
}

.matewa-chip-studio-phone {
    padding: 16px !important;
    border-radius: 22px !important;
}

.matewa-chip-studio-chat-card {
    padding: 15px !important;
}

.matewa-chip-studio-match-card {
    width: min(100%, 342px) !important;
    max-width: 100% !important;
    margin-top: 14px !important;
    box-sizing: border-box !important;
}

@media (min-width: 1500px) {
    .matewa-chip-studio-layout {
        grid-template-columns: minmax(300px, 0.9fr) minmax(342px, 1fr) minmax(342px, 1fr) !important;
        grid-template-areas: "business editor preview" !important;
    }

    .matewa-chip-studio-business-panel {
        display: flex !important;
        flex-direction: column !important;
    }

    .matewa-chip-studio-business-panel .matewa-chip-studio-panel-header,
    .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-chip-studio-business-panel .matewa-selector-grid,
    .matewa-chip-studio-business-panel .matewa-chip-studio-default-preview {
        width: 100% !important;
        max-width: 342px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 1180px) {
    .matewa-chip-studio-layout {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "business"
            "editor"
            "preview" !important;
    }

    .matewa-chip-studio-business-panel {
        grid-template-columns: minmax(260px, 380px) minmax(318px, 360px) !important;
    }

    .matewa-chip-studio-editor-panel .matewa-chip-editor-frame,
    .matewa-chip-studio-card .matewa-chip-editor-helper,
    .matewa-chip-studio-card .matewa-chip-editor-actions,
    .matewa-chip-studio-phone,
    .matewa-chip-studio-match-card {
        width: min(100%, 360px) !important;
    }
}

@media (max-width: 860px) {
    .matewa-chip-studio-steps,
    .matewa-chip-studio-steps.is-two-step,
    .matewa-chip-studio-steps.is-three-step {
        grid-template-columns: 1fr !important;
    }

    .matewa-chip-studio-business-panel {
        display: flex !important;
        flex-direction: column !important;
    }

    .matewa-chip-studio-business-panel .matewa-chip-studio-panel-header,
    .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-chip-studio-business-panel .matewa-selector-grid,
    .matewa-chip-studio-business-panel .matewa-chip-studio-default-preview,
    .matewa-chip-studio-editor-panel .matewa-chip-editor-frame,
    .matewa-chip-studio-card .matewa-chip-editor-helper,
    .matewa-chip-studio-card .matewa-chip-editor-actions,
    .matewa-chip-studio-phone,
    .matewa-chip-studio-match-card {
        width: 100% !important;
        max-width: 420px !important;
    }
}

@media (max-width: 520px) {
    .matewa-chip-studio-card {
        padding: 18px !important;
    }

    .matewa-chip-studio-panel {
        padding: 18px !important;
    }

    .matewa-chip-studio-card .matewa-chip-editor-grid,
    .matewa-chip-studio-default-preview .matewa-chip-editor-grid,
    .matewa-chip-studio-edit-grid,
    .matewa-chip-studio-live-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* =========================================================
   247ChatMate — Dashboard recovery polish
   Source: 2026-05-19T214832 dashboard baseline
   Scope: dashboard spacing/buttons/tick only. No logic changes.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-admin-main {
    min-width: 0;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-value-card {
    grid-template-columns: minmax(360px, 0.94fr) minmax(520px, 1.06fr);
    gap: 34px;
    align-items: center;
    min-height: 0;
    padding: 34px 36px;
    overflow: visible;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-panel {
    justify-content: center;
    padding: 8px 0 8px 6px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-panel h2 {
    max-width: 480px;
    margin-bottom: 16px;
    font-size: clamp(34px, 3vw, 46px);
    line-height: 1.02;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-title-check {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    margin-left: 8px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    line-height: 1 !important;
    vertical-align: 0.08em !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-title-check::before {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-benefits {
    grid-template-columns: repeat(4, minmax(86px, 1fr));
    gap: 18px;
    margin: 32px 0 28px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-benefit .dashicons,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-summary > .dashicons,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-check-row > .dashicons:first-child {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(174px, 174px));
    gap: 16px;
    align-items: center;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-primary-button,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-secondary-button {
    width: 174px !important;
    min-width: 174px !important;
    max-width: 174px !important;
    min-height: 48px !important;
    padding: 13px 16px !important;
    text-align: center;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel {
    padding: 8px 0 8px 28px;
    border-left: 1px solid rgba(15, 23, 42, 0.07);
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel h3 {
    left: 88px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial {
    width: min(570px, 100%);
    min-height: 392px;
    margin-top: 30px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial::before {
    width: 356px;
    height: 356px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial::after {
    width: 226px;
    height: 226px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial-center {
    width: 196px;
    height: 196px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item {
    width: 112px;
    height: 112px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-1,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-2,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-3,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-4,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-5,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-6 {
    --matewa-orbit-distance: 174px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-1 {
    transform: translate(-50%, -50%) rotate(270deg) translate(var(--matewa-orbit-distance)) rotate(-270deg);
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-2 {
    transform: translate(-50%, -50%) rotate(330deg) translate(var(--matewa-orbit-distance)) rotate(-330deg);
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-3 {
    transform: translate(-50%, -50%) rotate(30deg) translate(var(--matewa-orbit-distance)) rotate(-30deg);
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-4 {
    transform: translate(-50%, -50%) rotate(90deg) translate(var(--matewa-orbit-distance)) rotate(-90deg);
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-5 {
    transform: translate(-50%, -50%) rotate(150deg) translate(var(--matewa-orbit-distance)) rotate(-150deg);
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-6 {
    transform: translate(-50%, -50%) rotate(210deg) translate(var(--matewa-orbit-distance)) rotate(-210deg);
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
    gap: 14px 28px;
    min-height: 0;
    padding: 22px 24px;
    align-items: start;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-panel h3,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-summary,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-progress {
    grid-column: 1;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-checklist,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-help-box {
    grid-column: 2;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-help-box {
    margin-top: 10px;
}

@media (min-width: 1720px) {
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-value-card {
        grid-template-columns: minmax(380px, 0.95fr) minmax(560px, 1.1fr) minmax(340px, 0.85fr);
        gap: 34px;
        align-items: stretch;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-panel {
        grid-column: auto;
        display: flex;
        min-height: 100%;
        padding: 22px;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-panel h3,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-summary,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-progress,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-checklist,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-help-box {
        grid-column: auto;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-help-box {
        margin-top: auto;
    }
}

@media (max-width: 1250px) {
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-value-card {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel {
        padding: 26px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(15, 23, 42, 0.07);
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel h3 {
        position: static;
        margin-bottom: 14px;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial {
        margin-top: 0;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-panel {
        grid-template-columns: 1fr;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-panel h3,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-summary,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-progress,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-checklist,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-help-box {
        grid-column: 1;
    }
}

@media (max-width: 780px) {
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-actions {
        grid-template-columns: 1fr;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-primary-button,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-secondary-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* =========================================================
   247ChatMate — Dashboard top-card breathing-room correction
   Phase 5-A-13 follow-up

   Scope:
   - Dashboard panel only.
   - CSS-only layout correction.
   - Keeps page split, visitor button fix, logic, widget, chips and JSON untouched.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-value-card {
    grid-template-columns: minmax(340px, 0.92fr) minmax(470px, 1.08fr) minmax(280px, 0.72fr);
    gap: 34px;
    min-height: 510px;
    padding: 34px 38px;
    align-items: stretch;
    overflow: visible;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-panel {
    min-width: 0;
    padding: 10px 0 10px 8px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-panel h2 {
    max-width: 520px;
    margin-bottom: 18px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-title-check,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-benefit .dashicons,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-radial-icon,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-summary > .dashicons,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-check-row > .dashicons:first-child {
    display: inline-grid !important;
    place-items: center !important;
    text-align: center !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-title-check::before,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-benefit .dashicons::before,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-radial-icon::before,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-summary > .dashicons::before,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-check-row > .dashicons:first-child::before {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    line-height: 1 !important;
    transform: translateY(-0.5px);
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-title-check {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    vertical-align: -0.08em !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-title-check::before {
    font-size: 18px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, 190px);
    gap: 16px;
    align-items: center;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-primary-button,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-secondary-button {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
    min-height: 52px !important;
    padding: 13px 18px !important;
    white-space: nowrap;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel {
    min-width: 0;
    padding: 10px 0 10px 32px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial {
    width: min(590px, 100%);
    min-height: 420px;
    margin-top: 34px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-panel {
    min-width: 0;
    overflow: hidden;
    padding: 24px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-check-row {
    min-width: 0;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-check-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* WordPress admin widths below this cannot hold the hero, radial and setup card in one row cleanly.
   Keep the special dashboard look by using two clear rows instead of crushing the right panel. */
@media (max-width: 1540px) {
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-value-card {
        grid-template-columns: minmax(330px, 0.9fr) minmax(430px, 1.1fr);
        gap: 32px 38px;
        min-height: 660px;
        padding: 34px 38px 36px;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-panel {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
        gap: 16px 30px;
        align-items: start;
        padding: 24px 26px;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-panel h3,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-summary,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-progress {
        grid-column: 1;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-checklist,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-help-box {
        grid-column: 2;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-help-box {
        margin-top: 10px;
    }
}

@media (max-width: 1180px) {
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-value-card {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 30px;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel {
        padding: 28px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(15, 23, 42, 0.07);
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel h3 {
        position: static;
        margin-bottom: 14px;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial {
        margin-top: 0;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-panel {
        grid-template-columns: 1fr;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-panel h3,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-summary,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-progress,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-checklist,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-help-box {
        grid-column: 1;
    }
}

@media (max-width: 780px) {
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-actions {
        grid-template-columns: 1fr;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-primary-button,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-secondary-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        white-space: normal;
    }
}

/* =========================================================
   247ChatMate — Dashboard fine polish follow-up
   Scope: hero alignment, icon centring, orbit spacing only.
   No logic changes.
========================================================= */

/* Make the main dashboard card feel taller and give the hero area more room. */
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-value-card {
    min-height: 700px;
    align-items: stretch;
}

/* Remove the headline tick completely as requested. */
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-title-check {
    display: none !important;
}

/* Keep the left hero block clean, aligned and vertically distributed. */
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 100%;
    padding: 8px 0 10px 6px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-greeting,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-panel h2,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-panel > p:not(.matewa-dashboard-greeting),
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-benefits,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-actions {
    margin-left: 0 !important;
}

/* Make the benefit row align to the same left edge as the heading and buttons. */
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-benefits {
    grid-template-columns: repeat(4, 88px) !important;
    justify-content: start !important;
    gap: 18px !important;
    width: auto;
    margin-top: auto !important;
    margin-bottom: 24px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-benefit {
    justify-items: center;
}

/* Precisely centre the tick/check and other icon glyphs inside their circles. */
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-benefit .dashicons,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-check-row > .dashicons:first-child,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-summary > .dashicons,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-radial-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-benefit .dashicons::before,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-check-row > .dashicons:first-child::before,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-summary > .dashicons::before,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-radial-icon::before {
    margin: 0 !important;
    line-height: 1 !important;
    transform: none !important;
}

/* Push the CTA row down and keep it aligned with the hero copy. */
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-actions {
    grid-template-columns: repeat(2, 190px) !important;
    justify-content: start !important;
    gap: 16px !important;
    margin-top: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-primary-button,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-secondary-button {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
}

/* Re-centre the lead overview and give the orbit circles breathing room. */
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 12px 8px 12px !important;
    border-left: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel h3 {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: 4px auto 12px !important;
    text-align: center;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial {
    width: min(620px, 100%) !important;
    min-height: 460px !important;
    margin: 8px auto 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial::before {
    width: 382px !important;
    height: 382px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial::after {
    width: 242px !important;
    height: 242px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial-center {
    width: 206px !important;
    height: 206px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item {
    width: 108px !important;
    height: 108px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-1,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-2,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-3,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-4,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-5,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-6 {
    --matewa-orbit-distance: 182px !important;
}

/* Tidy the setup status spacing a little more. */
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-panel {
    gap: 18px 28px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-checklist {
    display: grid;
    gap: 2px;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-check-row {
    min-height: 44px !important;
    padding: 11px 0 !important;
}

@media (max-width: 1720px) {
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-value-card {
        min-height: 640px;
    }
}

@media (max-width: 1250px) {
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-panel {
        justify-content: flex-start;
        min-height: 0;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-benefits {
        margin-top: 28px !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel {
        padding: 24px 0 0 !important;
        border-top: 1px solid rgba(15, 23, 42, 0.07) !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial {
        width: min(580px, 100%) !important;
        min-height: 430px !important;
    }
}

@media (max-width: 780px) {
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-benefits {
        grid-template-columns: repeat(2, 88px) !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-actions {
        grid-template-columns: 1fr !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-primary-button,
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-secondary-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* =========================================================
   247ChatMate — Dashboard 100 percent scale / sidebar fixed-size pass
   Scope: admin shell sizing, left navigation stability, dashboard spacing only.
   No PHP, JS, widget, licence, trial, chip or vertical logic changes.
========================================================= */

/* Stop the admin shell from sizing against the full viewport outside the WP content area. */
.matewa-dashboard-page .matewa-admin-shell,
.matewa-dashboard-page .matewa-dashboard-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    gap: 14px !important;
    box-sizing: border-box !important;
}

/* Keep the left navigation column and its buttons fixed between pages. */
.matewa-dashboard-page .matewa-admin-shell {
    grid-template-columns: 198px minmax(0, 1fr) !important;
}

.matewa-dashboard-page .matewa-admin-sidebar {
    width: 198px !important;
    min-width: 198px !important;
    max-width: 198px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page .matewa-dashboard-side-nav {
    width: 100% !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link,
.matewa-dashboard-page .matewa-dashboard-side-link:hover,
.matewa-dashboard-page .matewa-dashboard-side-link:focus-visible,
.matewa-dashboard-page .matewa-dashboard-side-link.is-active {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 11px !important;
    border-width: 1px !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link .dashicons {
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.matewa-dashboard-page .matewa-admin-brand {
    width: 100% !important;
    min-height: 42px !important;
}

.matewa-dashboard-page .matewa-admin-brand-logo {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
}

/* Reduce top-level chrome padding so the dashboard fits at normal 100% browser zoom. */
.matewa-dashboard-page .matewa-admin-main {
    min-width: 0 !important;
    gap: 12px !important;
}

.matewa-dashboard-page .matewa-admin-topbar {
    min-height: 72px !important;
    padding: 16px 18px !important;
    border-radius: 22px !important;
}

/* Compact the dashboard card just enough to avoid needing 80% browser zoom. */
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-value-card {
    min-height: 600px !important;
    padding: 24px 26px !important;
    gap: 24px !important;
}

/* Keep the hero content aligned on a single left edge. */
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-panel {
    padding-left: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-greeting,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-panel h2,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-panel > p:not(.matewa-dashboard-greeting),
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-benefits,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-actions {
    transform: none !important;
    padding-left: 0 !important;
}

/* Bring the benefit row and buttons down, but not so far that the full card needs zooming out. */
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-benefits {
    margin-bottom: 18px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-actions {
    margin-bottom: 2px !important;
}

/* Keep the lead overview central without letting the orbit force excessive card width. */
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel {
    padding-inline: 4px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial {
    width: min(560px, 100%) !important;
    min-height: 420px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial::before {
    width: 354px !important;
    height: 354px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial::after {
    width: 226px !important;
    height: 226px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-radial-center {
    width: 194px !important;
    height: 194px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item {
    width: 102px !important;
    height: 102px !important;
    padding: 12px 10px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-1,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-2,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-3,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-4,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-5,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel .matewa-dashboard-orbit-item.is-position-6 {
    --matewa-orbit-distance: 166px !important;
}

/* Keep the setup card compact when it sits alongside the overview. */
@media (min-width: 1720px) {
    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-value-card {
        grid-template-columns: minmax(340px, 0.86fr) minmax(500px, 1.02fr) minmax(292px, 0.72fr) !important;
        gap: 22px !important;
        min-height: 520px !important;
        padding: 24px 26px !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-panel {
        padding: 18px !important;
    }
}

/* On normal laptop/admin widths, reduce padding instead of requiring browser zoom. */
@media (max-width: 1540px) {
    .matewa-dashboard-page .matewa-admin-shell,
    .matewa-dashboard-page .matewa-dashboard-shell {
        padding: 10px !important;
        gap: 12px !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-value-card {
        min-height: 560px !important;
        padding: 22px !important;
        gap: 22px !important;
    }
}

@media (max-width: 1280px) {
    .matewa-dashboard-page .matewa-admin-shell {
        grid-template-columns: 186px minmax(0, 1fr) !important;
    }

    .matewa-dashboard-page .matewa-admin-sidebar {
        width: 186px !important;
        min-width: 186px !important;
        max-width: 186px !important;
    }
}

@media (max-width: 960px) {
    .matewa-dashboard-page .matewa-admin-shell {
        grid-template-columns: 1fr !important;
    }

    .matewa-dashboard-page .matewa-admin-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* =========================================================
   247ChatMate — Setup page 100% scale fit correction
   Scope: compact admin chrome and setup card spacing only.
   No PHP, JS, widget, chip, vertical, licence, trial or save-handler changes.
========================================================= */

/* Fixed left column: keep the sidebar and buttons the same size across every page. */
.matewa-dashboard-page .matewa-admin-shell {
    grid-template-columns: 194px minmax(0, 1fr) !important;
    padding: 8px !important;
    gap: 7px !important;
}

.matewa-dashboard-page .matewa-admin-sidebar {
    width: 194px !important;
    min-width: 194px !important;
    max-width: 194px !important;
    padding: 14px 12px !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link,
.matewa-dashboard-page .matewa-dashboard-side-link.is-active,
.matewa-dashboard-page .matewa-dashboard-side-link:hover,
.matewa-dashboard-page .matewa-dashboard-side-link:focus-visible {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 10px !important;
    border: 1px solid transparent !important;
    box-sizing: border-box !important;
    flex: 0 0 40px !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link.is-active {
    border-color: rgba(25, 122, 34, 0.12) !important;
}

/* Reduce universal admin chrome slightly so pages are designed for 100% browser zoom. */
.matewa-dashboard-page .matewa-admin-main {
    gap: 7px !important;
}

.matewa-dashboard-page .matewa-admin-topbar {
    min-height: 62px !important;
    padding: 12px 16px !important;
    border-radius: 20px !important;
}

.matewa-dashboard-page .matewa-admin-topbar h2 {
    font-size: clamp(21px, 1.75vw, 27px) !important;
    line-height: 1.05 !important;
}

.matewa-dashboard-page .matewa-admin-topbar p {
    margin-top: 4px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.matewa-dashboard-page .matewa-admin-ghost-button,
.matewa-dashboard-page .matewa-admin-save-button {
    min-height: 38px !important;
    padding: 8px 15px !important;
    border-radius: 11px !important;
}

/* Setup page: compact the second heading and settings card so the full page fits at 100%. */
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading {
    margin-bottom: 8px !important;
    padding: 14px 18px !important;
    border-radius: 20px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading span {
    margin-bottom: 5px !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading h2 {
    font-size: 21px !important;
    line-height: 1.08 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading p {
    margin-top: 5px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-shell {
    padding: 14px !important;
    border-radius: 20px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-grid {
    gap: 7px !important;
    margin-bottom: 8px !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel {
    min-height: 0 !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-panel-heading {
    margin-bottom: 10px !important;
    gap: 9px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-panel-step {
    width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-panel-heading h3 {
    font-size: 14px !important;
    line-height: 1.12 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-panel-heading p {
    font-size: 11px !important;
    line-height: 1.28 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-field-stack,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-choice-stack {
    gap: 9px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-field-row {
    grid-template-columns: 126px minmax(0, 1fr) !important;
    gap: 7px !important;
    min-height: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-field-label {
    margin-top: 6px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel input.regular-text,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel input[type="email"] {
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel .description {
    margin-top: 3px !important;
    font-size: 11px !important;
    line-height: 1.28 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-choice-card {
    min-height: 46px !important;
    padding: 9px 12px !important;
    border-radius: 14px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-shell .submit {
    margin-top: 6px !important;
    padding: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-shell .button-primary {
    min-height: 36px !important;
    padding: 8px 15px !important;
    border-radius: 10px !important;
}

/* Keep the setup grid compact but readable on the exact laptop/admin widths where it was overflowing. */
@media (max-width: 1540px) {
    .matewa-dashboard-page .matewa-admin-shell {
        grid-template-columns: 184px minmax(0, 1fr) !important;
        padding: 7px !important;
        gap: 9px !important;
    }

    .matewa-dashboard-page .matewa-admin-sidebar {
        width: 184px !important;
        min-width: 184px !important;
        max-width: 184px !important;
        padding: 12px 10px !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-shell {
        padding: 12px !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel {
        padding: 13px 14px !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-field-row {
        grid-template-columns: 118px minmax(0, 1fr) !important;
    }
}

@media (max-width: 960px) {
    .matewa-dashboard-page .matewa-admin-shell {
        grid-template-columns: 1fr !important;
    }

    .matewa-dashboard-page .matewa-admin-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   247ChatMate — Fixed sidebar and equal-height page surfaces
   Scope: visual sizing only. No PHP, JS, save, widget, chip, vertical,
   licence, trial or Pro logic changes.
========================================================= */

/* Fixed left column across Dashboard, Setup and every split admin page. */
.matewa-dashboard-page .matewa-admin-shell {
    grid-template-columns: 184px minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 9px !important;
    padding: 7px !important;
}

.matewa-dashboard-page .matewa-admin-sidebar {
    position: sticky !important;
    top: 7px !important;
    width: 184px !important;
    min-width: 184px !important;
    max-width: 184px !important;
    height: calc(100vh - 18px) !important;
    min-height: calc(100vh - 18px) !important;
    max-height: calc(100vh - 18px) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 12px 10px !important;
    overflow: hidden !important;
}

.matewa-dashboard-page .matewa-admin-brand {
    flex: 0 0 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin-bottom: 20px !important;
}

.matewa-dashboard-page .matewa-dashboard-side-nav {
    display: grid !important;
    gap: 7px !important;
    flex: 0 0 auto !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link,
.matewa-dashboard-page .matewa-dashboard-side-link.is-active,
.matewa-dashboard-page .matewa-dashboard-side-link:hover,
.matewa-dashboard-page .matewa-dashboard-side-link:focus-visible {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    flex: 0 0 40px !important;
}

.matewa-dashboard-page .matewa-dashboard-plan-mini {
    flex: 0 0 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    margin-top: auto !important;
    margin-bottom: 10px !important;
    padding: 13px 14px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page .matewa-dashboard-theme-switch {
    flex: 0 0 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    width: 100% !important;
    margin-top: 0 !important;
}

/* Dashboard front page: extend the main value card so its bottom lines up with the sidebar lower controls. */
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-value-card {
    min-height: max(640px, calc(100vh - 150px)) !important;
    padding: 22px 24px !important;
}

/* Keep the dashboard content comfortable inside the taller card without forcing browser zoom. */
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-hero-panel,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-lead-panel,
.matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-setup-panel {
    min-height: 100% !important;
}

/* All split pages after Dashboard: make the second heading box a consistent size. */
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading {
    min-height: 96px !important;
    height: 96px !important;
    padding: 14px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin-bottom: 10px !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading span {
    margin-bottom: 5px !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading h2 {
    font-size: 22px !important;
    line-height: 1.08 !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading p {
    margin-top: 5px !important;
    font-size: 13px !important;
    line-height: 1.32 !important;
}

/* All following pages: give the main page surface a matching lower edge. */
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel .matewa-settings-card,
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel .matewa-plan-access-shell,
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel .matewa-chip-studio-card,
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-core-settings-shell,
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-help-grid {
    min-height: max(520px, calc(100vh - 292px)) !important;
    box-sizing: border-box !important;
}

/* Setup onwards: keep the setup card panels visually balanced inside the same-sized page surface. */
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-grid {
    grid-auto-rows: minmax(0, 1fr) !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel {
    min-height: 0 !important;
}

/* At narrow tablet/mobile widths, release the fixed sidebar and fixed heights. */
@media (max-width: 960px) {
    .matewa-dashboard-page .matewa-admin-shell {
        grid-template-columns: 1fr !important;
    }

    .matewa-dashboard-page .matewa-admin-sidebar {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="dashboard"] .matewa-dashboard-value-card,
    .matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel .matewa-settings-card,
    .matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel .matewa-plan-access-shell,
    .matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel .matewa-chip-studio-card,
    .matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-core-settings-shell,
    .matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-help-grid,
    .matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading {
        height: auto !important;
        min-height: 0 !important;
    }
}

/* =========================================================
   247ChatMate — Admin typography and sidebar size lock
   Scope: setup heading badge consistency and fixed left sidebar card sizing.
   No PHP, JS, widget, chips, verticals, licence, trial or Pro logic changes.
========================================================= */

/* Make the small page badge/eyebrow the same size on Setup and all following pages. */
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading span,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 22px !important;
    padding: 5px 9px !important;
    margin-bottom: 6px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0.08em !important;
    border-radius: 999px !important;
}

/* Keep second heading typography consistent from Setup onwards. */
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading h2,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading h2 {
    font-size: 22px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
}

/* Hard-lock the left sidebar rail and its internal cards so they do not resize between pages. */
.matewa-dashboard-page .matewa-admin-sidebar,
.matewa-dashboard-page .matewa-dashboard-sidebar {
    width: 184px !important;
    min-width: 184px !important;
    max-width: 184px !important;
    flex: 0 0 184px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page .matewa-admin-brand,
.matewa-dashboard-page .matewa-dashboard-brand,
.matewa-dashboard-page .matewa-dashboard-side-nav,
.matewa-dashboard-page .matewa-dashboard-plan-mini,
.matewa-dashboard-page .matewa-dashboard-theme-switch {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page .matewa-admin-brand,
.matewa-dashboard-page .matewa-dashboard-brand {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    flex: 0 0 46px !important;
    overflow: hidden !important;
}

.matewa-dashboard-page .matewa-dashboard-side-nav {
    display: grid !important;
    grid-auto-rows: 40px !important;
    gap: 7px !important;
    flex: 0 0 auto !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link,
.matewa-dashboard-page .matewa-dashboard-side-link.is-active,
.matewa-dashboard-page .matewa-dashboard-side-link:hover,
.matewa-dashboard-page .matewa-dashboard-side-link:focus-visible {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex: 0 0 40px !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link > span:last-child {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.matewa-dashboard-page .matewa-dashboard-plan-mini {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    flex: 0 0 72px !important;
    overflow: hidden !important;
}

.matewa-dashboard-page .matewa-dashboard-theme-switch {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex: 0 0 40px !important;
    overflow: hidden !important;
}

@media (max-width: 960px) {
    .matewa-dashboard-page .matewa-admin-sidebar,
    .matewa-dashboard-page .matewa-dashboard-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 0 1 auto !important;
    }
}

/* =========================================================
   247ChatMate — Fix8 sidebar width and split-page heading reset
   Scope: CSS-only sizing/alignment. No PHP, JS, widget, chip, vertical,
   licence, trial, Founder Beta, LemonSqueezy, Pro or save-handler changes.
========================================================= */

/* Restore a usable fixed left column size so the brand, nav labels and bottom controls do not squash. */
.matewa-dashboard-page .matewa-admin-shell {
    grid-template-columns: 214px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 8px !important;
    align-items: stretch !important;
}

.matewa-dashboard-page .matewa-admin-sidebar,
.matewa-dashboard-page .matewa-dashboard-sidebar {
    position: sticky !important;
    top: 8px !important;
    width: 214px !important;
    min-width: 214px !important;
    max-width: 214px !important;
    flex: 0 0 214px !important;
    height: calc(100vh - 18px) !important;
    min-height: calc(100vh - 18px) !important;
    max-height: calc(100vh - 18px) !important;
    padding: 14px 12px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Keep the brand readable rather than compressed. */
.matewa-dashboard-page .matewa-admin-brand,
.matewa-dashboard-page .matewa-dashboard-brand {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    flex: 0 0 52px !important;
    margin-bottom: 14px !important;
    overflow: visible !important;
}

.matewa-dashboard-page .matewa-admin-brand strong,
.matewa-dashboard-page .matewa-dashboard-brand strong {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Fixed nav row sizing across pages, with enough width for labels. */
.matewa-dashboard-page .matewa-dashboard-side-nav {
    display: grid !important;
    grid-auto-rows: 38px !important;
    gap: 6px !important;
    width: 100% !important;
    flex: 0 0 auto !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link,
.matewa-dashboard-page .matewa-dashboard-side-link.is-active,
.matewa-dashboard-page .matewa-dashboard-side-link:hover,
.matewa-dashboard-page .matewa-dashboard-side-link:focus-visible {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    flex: 0 0 38px !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link > span:last-child {
    min-width: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Bottom cards stay fixed and visible at 100% browser zoom. */
.matewa-dashboard-page .matewa-dashboard-plan-mini {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    flex: 0 0 72px !important;
    margin-top: auto !important;
    margin-bottom: 9px !important;
    padding: 12px 13px !important;
    overflow: hidden !important;
}

.matewa-dashboard-page .matewa-dashboard-theme-switch {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    flex: 0 0 38px !important;
    width: 100% !important;
    margin-top: 0 !important;
    overflow: hidden !important;
}

/* Undo the stretched split-page heading treatment: keep the badge left-aligned and compact. */
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading {
    height: auto !important;
    min-height: 0 !important;
    padding: 20px 22px !important;
    margin: 0 0 14px !important;
    display: block !important;
    border-radius: 24px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading span,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading span {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: max-content !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 5px 9px !important;
    margin: 0 0 7px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-align: left !important;
    align-self: flex-start !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading h2,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading h2 {
    font-size: 24px !important;
    line-height: 1.12 !important;
    margin: 0 !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading p,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading p {
    margin: 8px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Keep the following-page content surfaces aligned without forcing the heading badge into a wide strip. */
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel .matewa-settings-card,
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel .matewa-plan-access-shell,
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel .matewa-chip-studio-card,
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-core-settings-shell,
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-help-grid {
    min-height: max(500px, calc(100vh - 292px)) !important;
    box-sizing: border-box !important;
}

@media (max-width: 960px) {
    .matewa-dashboard-page .matewa-admin-shell {
        grid-template-columns: 1fr !important;
    }

    .matewa-dashboard-page .matewa-admin-sidebar,
    .matewa-dashboard-page .matewa-dashboard-sidebar {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* =========================================================
   247ChatMate — Fix9 100% viewport alignment pass
   Base: fix8 supplied by Adam.
   Scope: CSS-only. Sidebar top/bottom alignment, setup compactness,
   and Save Settings positioning. No logic changes.
========================================================= */

/* Keep the left rail aligned with the top of the main content and visible at 100% zoom. */
.matewa-dashboard-page .matewa-admin-shell {
    grid-template-columns: 214px minmax(0, 1fr) !important;
    gap: 7px !important;
    padding: 8px !important;
    align-items: start !important;
}

.matewa-dashboard-page .matewa-admin-sidebar,
.matewa-dashboard-page .matewa-dashboard-sidebar {
    align-self: start !important;
    top: 8px !important;
    width: 214px !important;
    min-width: 214px !important;
    max-width: 214px !important;
    height: calc(100vh - 16px) !important;
    min-height: calc(100vh - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    padding: 12px 11px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Make the left rail shorter internally so the colour selector is always visible. */
.matewa-dashboard-page .matewa-admin-brand,
.matewa-dashboard-page .matewa-dashboard-brand {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    flex: 0 0 46px !important;
    margin: 0 0 10px !important;
}

.matewa-dashboard-page .matewa-admin-brand-logo,
.matewa-dashboard-page .matewa-dashboard-brand-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
}

.matewa-dashboard-page .matewa-admin-brand-copy strong,
.matewa-dashboard-page .matewa-dashboard-brand strong {
    font-size: 16px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
}

.matewa-dashboard-page .matewa-admin-brand-copy small,
.matewa-dashboard-page .matewa-dashboard-brand small,
.matewa-dashboard-page .matewa-dashboard-brand span:not(.matewa-dashboard-brand-icon) small {
    font-size: 10.5px !important;
    line-height: 1.1 !important;
}

.matewa-dashboard-page .matewa-dashboard-side-nav {
    grid-auto-rows: 34px !important;
    gap: 5px !important;
    flex: 0 0 auto !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link,
.matewa-dashboard-page .matewa-dashboard-side-link.is-active,
.matewa-dashboard-page .matewa-dashboard-side-link:hover,
.matewa-dashboard-page .matewa-dashboard-side-link:focus-visible {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 11px !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link .dashicons {
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
    line-height: 16px !important;
}

/* Bottom card and colour selector stay locked to the same bottom position. */
.matewa-dashboard-page .matewa-dashboard-plan-mini {
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    flex: 0 0 62px !important;
    margin-top: auto !important;
    margin-bottom: 8px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
}

.matewa-dashboard-page .matewa-dashboard-plan-mini span {
    font-size: 11px !important;
    line-height: 1.1 !important;
}

.matewa-dashboard-page .matewa-dashboard-plan-mini strong {
    font-size: 13px !important;
    line-height: 1.15 !important;
}

.matewa-dashboard-page .matewa-dashboard-theme-switch {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    flex: 0 0 34px !important;
    margin-top: 0 !important;
    padding: 4px !important;
    border-radius: 999px !important;
}

.matewa-dashboard-page .matewa-dashboard-theme-option {
    min-height: 26px !important;
    height: 26px !important;
    padding: 4px 7px !important;
    font-size: 11.5px !important;
}

/* Compact the main chrome so Setup and following pages fit at 100% zoom. */
.matewa-dashboard-page .matewa-admin-main {
    gap: 7px !important;
}

.matewa-dashboard-page .matewa-admin-topbar {
    min-height: 68px !important;
    padding: 14px 18px !important;
    border-radius: 22px !important;
}

.matewa-dashboard-page .matewa-admin-topbar h2 {
    font-size: clamp(22px, 1.8vw, 27px) !important;
}

.matewa-dashboard-page .matewa-admin-topbar p {
    margin-top: 4px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

/* Restore the second heading box as a compact left-aligned card, not a large strip. */
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading {
    min-height: 96px !important;
    height: 96px !important;
    padding: 16px 20px !important;
    margin-bottom: 10px !important;
    display: block !important;
    overflow: hidden !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading span,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading span {
    display: inline-flex !important;
    width: auto !important;
    max-width: max-content !important;
    padding: 5px 9px !important;
    margin: 0 0 6px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-align: left !important;
    justify-content: flex-start !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading h2,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading h2 {
    font-size: 23px !important;
    line-height: 1.1 !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading p,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading p {
    margin-top: 6px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
}

/* Setup page: reduce padding in the two-column cards so all key controls fit at 100%. */
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-shell {
    min-height: calc(100vh - 194px) !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-grid {
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(172px, 1fr)) !important;
    gap: 7px !important;
    margin-bottom: 10px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel {
    padding: 12px 14px !important;
    border-radius: 18px !important;
    min-height: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-panel-heading {
    gap: 9px !important;
    margin-bottom: 10px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-panel-step {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    font-size: 11px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-field-stack,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-choice-stack {
    gap: 9px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-field-row {
    grid-template-columns: 126px minmax(0, 1fr) !important;
    gap: 7px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-field-label {
    margin-top: 5px !important;
    font-size: 11.5px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel input.regular-text {
    min-height: 31px !important;
    max-width: 390px !important;
    font-size: 13px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel .description {
    margin-top: 4px !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-choice-card {
    padding: 10px 12px !important;
    border-radius: 14px !important;
}

/* Save Settings should sit at the same bottom rhythm as the left colour selector. */
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-shell .submit {
    flex: 0 0 auto !important;
    margin: auto 0 0 !important;
    padding: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-shell .button-primary {
    min-height: 34px !important;
    height: 34px !important;
    padding: 8px 18px !important;
    border-radius: 10px !important;
}

/* Display page: cap long page lists so extra pages do not push the Save Settings button below 100% view. */
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-checkbox-list {
    max-height: 190px !important;
    overflow: auto !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-shell {
    min-height: calc(100vh - 194px) !important;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-grid {
    flex: 1 1 auto !important;
    margin-bottom: 10px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-shell .submit {
    flex: 0 0 auto !important;
    margin: auto 0 0 !important;
    padding: 0 !important;
}

/* Keep mobile/tablet behaviour safe. */
@media (max-width: 960px) {
    .matewa-dashboard-page .matewa-admin-shell {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    .matewa-dashboard-page .matewa-admin-sidebar,
    .matewa-dashboard-page .matewa-dashboard-sidebar {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-shell,
    .matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-shell {
        min-height: 0 !important;
    }
}

/* =========================================================
   247ChatMate — Fix10 second heading breathing-room correction
   Scope: split-page heading card only. No logic changes.
========================================================= */

/* The second heading card was being held to a shallow fixed height.
   Restore proper padding and let the content breathe while keeping the compact left-aligned style. */
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading {
    height: auto !important;
    min-height: 118px !important;
    padding: 22px 26px !important;
    margin-bottom: 12px !important;
    display: block !important;
    overflow: visible !important;
    border-radius: 22px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading span,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: max-content !important;
    padding: 5px 10px !important;
    margin: 0 0 10px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-align: left !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading h2,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading h2 {
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.16 !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading p,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading p {
    margin: 8px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

/* =========================================================
   247ChatMate — Fix11 setup / visitor buttons left-card height lock
   Base: fix10. Scope: admin UI sizing only. No logic changes.
========================================================= */

/* Keep the left navigation rail and its internal cards identical on every page. */
.matewa-dashboard-page .matewa-admin-shell {
    grid-template-columns: 204px minmax(0, 1fr) !important;
    align-items: stretch !important;
}

.matewa-dashboard-page .matewa-admin-sidebar,
.matewa-dashboard-page .matewa-dashboard-sidebar {
    width: 204px !important;
    min-width: 204px !important;
    max-width: 204px !important;
    flex: 0 0 204px !important;
    height: calc(100vh - 40px) !important;
    min-height: 720px !important;
    max-height: calc(100vh - 40px) !important;
    padding: 14px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: flex-start !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page .matewa-admin-brand,
.matewa-dashboard-page .matewa-dashboard-brand {
    width: 100% !important;
    min-height: 46px !important;
    height: 46px !important;
    max-height: 46px !important;
    margin: 0 0 18px !important;
    flex: 0 0 46px !important;
}

.matewa-dashboard-page .matewa-dashboard-side-nav {
    width: 100% !important;
    display: grid !important;
    grid-auto-rows: 42px !important;
    gap: 7px !important;
    flex: 0 0 auto !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link,
.matewa-dashboard-page .matewa-dashboard-side-link:hover,
.matewa-dashboard-page .matewa-dashboard-side-link:focus-visible,
.matewa-dashboard-page .matewa-dashboard-side-link.is-active {
    width: 100% !important;
    min-height: 42px !important;
    height: 42px !important;
    max-height: 42px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link span:not(.dashicons) {
    min-width: 0 !important;
    white-space: normal !important;
    line-height: 1.12 !important;
}

/* The lower left cards should sit in the same fixed position on setup, visitor buttons and every other page. */
.matewa-dashboard-page .matewa-dashboard-plan-mini {
    width: 100% !important;
    min-height: 74px !important;
    height: 74px !important;
    max-height: 74px !important;
    margin-top: auto !important;
    margin-bottom: 10px !important;
    padding: 11px 12px !important;
    flex: 0 0 74px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page .matewa-dashboard-theme-switch {
    width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 4px !important;
    flex: 0 0 36px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Setup cards: keep the left and right boxes in each row the same height. */
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-grid {
    align-items: stretch !important;
    grid-auto-rows: 1fr !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel {
    height: 100% !important;
    min-height: 236px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel:nth-child(1),
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel:nth-child(2),
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel:nth-child(3),
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel:nth-child(4) {
    align-self: stretch !important;
}

/* Visitor Buttons cards: keep the business/edit/preview panels visually level instead of letting the left card collapse. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-layout,
.matewa-dashboard-page[data-matewa-active-panel="visitor-buttons"] .matewa-chip-studio-layout,
.matewa-dashboard-page[data-matewa-active-panel="visitor_buttons"] .matewa-chip-studio-layout {
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-panel,
.matewa-dashboard-page[data-matewa-active-panel="visitor-buttons"] .matewa-chip-studio-panel,
.matewa-dashboard-page[data-matewa-active-panel="visitor_buttons"] .matewa-chip-studio-panel,
.matewa-dashboard-page .matewa-chip-studio-card .matewa-chip-studio-panel {
    min-height: 430px !important;
    height: 100% !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
}

/* Keep responsive stacking safe. */
@media (max-width: 960px) {
    .matewa-dashboard-page .matewa-admin-shell {
        grid-template-columns: 1fr !important;
    }

    .matewa-dashboard-page .matewa-admin-sidebar,
    .matewa-dashboard-page .matewa-dashboard-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel,
    .matewa-dashboard-page .matewa-chip-studio-card .matewa-chip-studio-panel {
        min-height: 0 !important;
        height: auto !important;
    }
}

/* =========================================================
   247ChatMate — ADMINPAGESCALEALIGNMENTFINALPOLISH
   Scope: split admin page sizing and Visitor Buttons two-column polish.
   No option names, save handlers, entitlement logic, vertical JSON logic,
   frontend widget behaviour, WhatsApp handoff, lead routing or licence logic changed.
========================================================= */

/* Stable split-page shell and sidebar across every admin page. */
.matewa-dashboard-page .matewa-admin-shell,
.matewa-dashboard-page .matewa-dashboard-shell {
    grid-template-columns: 214px minmax(0, 1fr) !important;
    gap: 14px !important;
    width: min(var(--matewa-dashboard-surface-width, 1480px), calc(100vw - 32px)) !important;
    padding: 10px !important;
    align-items: start !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page .matewa-admin-sidebar,
.matewa-dashboard-page .matewa-dashboard-sidebar {
    position: sticky !important;
    top: 10px !important;
    width: 214px !important;
    min-width: 214px !important;
    max-width: 214px !important;
    height: clamp(620px, calc(100vh - 34px), 760px) !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 14px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: start !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page .matewa-admin-brand,
.matewa-dashboard-page .matewa-dashboard-brand {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 0 16px !important;
    padding: 0 3px !important;
    flex: 0 0 48px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page .matewa-admin-brand-logo,
.matewa-dashboard-page .matewa-dashboard-brand-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    flex: 0 0 32px !important;
}

.matewa-dashboard-page .matewa-admin-brand-copy strong,
.matewa-dashboard-page .matewa-dashboard-brand strong {
    max-width: 142px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.matewa-dashboard-page .matewa-dashboard-side-nav {
    display: grid !important;
    grid-auto-rows: 42px !important;
    gap: 7px !important;
    width: 100% !important;
    flex: 0 0 auto !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link,
.matewa-dashboard-page .matewa-dashboard-side-link:hover,
.matewa-dashboard-page .matewa-dashboard-side-link:focus-visible,
.matewa-dashboard-page .matewa-dashboard-side-link.is-active {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.matewa-dashboard-page .matewa-dashboard-side-link span:not(.dashicons) {
    min-width: 0 !important;
    line-height: 1.12 !important;
    white-space: normal !important;
}

.matewa-dashboard-page .matewa-dashboard-plan-mini {
    width: 100% !important;
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
    margin-top: auto !important;
    margin-bottom: 10px !important;
    padding: 11px 12px !important;
    flex: 0 0 74px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page .matewa-dashboard-theme-switch {
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 4px !important;
    flex: 0 0 36px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page .matewa-dashboard-theme-option {
    height: 28px !important;
    min-height: 28px !important;
    padding: 4px 7px !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
}

/* Keep the shared header/intro cards compact but not squashed. */
.matewa-dashboard-page .matewa-admin-main {
    min-width: 0 !important;
    gap: 11px !important;
}

.matewa-dashboard-page .matewa-admin-topbar {
    min-height: 70px !important;
    padding: 14px 18px !important;
    border-radius: 22px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading {
    height: auto !important;
    min-height: 104px !important;
    padding: 18px 22px !important;
    margin: 0 0 11px !important;
    display: block !important;
    overflow: visible !important;
    border-radius: 22px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading span,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading span,
.matewa-chip-studio-eyebrow,
.matewa-section-kicker {
    display: inline-flex !important;
    width: auto !important;
    max-width: max-content !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 5px 10px !important;
    margin: 0 0 8px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-align: left !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading h2,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading h2 {
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.14 !important;
}

.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading p,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading p {
    margin: 7px 0 0 !important;
    font-size: 13.5px !important;
    line-height: 1.42 !important;
}

/* Visitor Buttons: final two-column guided setup. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card {
    min-height: max(500px, calc(100vh - 220px)) !important;
    padding: 20px 22px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-header {
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 10px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card h2 {
    margin: 0 0 5px !important;
    font-size: 21px !important;
    line-height: 1.18 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-intro {
    max-width: 760px !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.42 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-pill {
    min-width: 138px !important;
    max-width: 190px !important;
    padding: 9px 11px !important;
    border-radius: 15px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-steps,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-steps.is-two-step,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-steps.is-three-step {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 14px 0 16px !important;
    max-width: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-steps span {
    min-height: 34px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-layout {
    display: grid !important;
    grid-template-columns: minmax(360px, 0.92fr) minmax(500px, 1.18fr) !important;
    grid-template-areas: "business editor" !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel {
    grid-area: business !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel {
    grid-area: editor !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-preview-panel {
    display: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-panel {
    min-height: 0 !important;
    height: auto !important;
    padding: 18px 20px !important;
    border-radius: 20px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-panel-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 7px !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 0 12px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-panel-header h3 {
    margin: 0 0 3px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-panel-header p {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.34 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-step-badge {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    font-size: 12px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-default-preview,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-frame,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-helper,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-actions {
    width: min(100%, 342px) !important;
    max-width: 342px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid {
    display: grid !important;
    gap: 9px !important;
    margin: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card select,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .button {
    min-height: 36px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-wide-button {
    width: 100% !important;
    min-height: 36px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview {
    margin: 12px 0 0 !important;
    padding: 12px !important;
    border-radius: 16px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-preview-heading,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-preview-subtle,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-editor-subtle,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-editor-helper {
    font-size: 12px !important;
    line-height: 1.36 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-preview-subtle {
    margin-top: 9px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-editor-subtle {
    margin: 0 0 10px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-edit-grid {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 9px !important;
    row-gap: 9px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-chip {
    width: 100% !important;
    min-height: 56px !important;
    height: 56px !important;
    padding: 8px 9px !important;
    border-radius: 15px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-chip textarea,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-chip span {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    text-align: center !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-measure {
    width: calc(100% - 18px) !important;
    max-width: calc(100% - 18px) !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-helper {
    margin-top: 12px !important;
    padding: 10px 11px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-actions {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin-top: 14px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-save-actions .button-primary {
    flex: 1 1 190px !important;
    min-width: 190px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-save-actions .button-secondary {
    flex: 0 0 auto !important;
}

/* Keep Setup row balance from the previous fix, without forcing Visitor Buttons panel heights. */
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-grid {
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel {
    min-height: 220px !important;
    height: auto !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel .matewa-page-checkbox-list {
    max-height: 260px !important;
    overflow: auto !important;
}

@media (max-width: 1180px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-layout {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "business"
            "editor" !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-default-preview,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-frame,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-helper,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-actions {
        width: min(100%, 420px) !important;
        max-width: 420px !important;
    }
}

@media (max-width: 960px) {
    .matewa-dashboard-page .matewa-admin-shell,
    .matewa-dashboard-page .matewa-dashboard-shell {
        grid-template-columns: 1fr !important;
        width: calc(100vw - 24px) !important;
    }

    .matewa-dashboard-page .matewa-admin-sidebar,
    .matewa-dashboard-page .matewa-dashboard-sidebar {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

@media (max-width: 560px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-header {
        flex-direction: column !important;
    }
}

/* =========================================================
   247ChatMate — Visitor Button Studio alignment tidy
   Checkpoint: ADMINPAGESCALEALIGNMENTFINALPOLISH

   Purpose:
   - Tightens the page-split Visitor Buttons screen into a balanced two-column layout.
   - Moves the saved/suggested button preview higher so it lines up with the editor.
   - Makes chip, preview and confirm actions use the same polished green SaaS styling.
   - Scoped to the buttons panel only; no option names, save handling, JSON loading,
     frontend widget, WhatsApp, licence, trial or lead logic changed.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-admin-panel-heading {
    margin-bottom: 10px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card {
    min-height: 0 !important;
    padding: 18px 20px 22px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    margin-bottom: 12px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-eyebrow {
    margin-bottom: 8px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card h2 {
    margin-bottom: 4px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-intro {
    max-width: 720px !important;
    font-size: 12.8px !important;
    line-height: 1.38 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-pill {
    align-self: start !important;
    min-width: 130px !important;
    padding: 8px 10px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-steps,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-steps.is-two-step {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 10px 0 14px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-steps span {
    min-height: 32px !important;
    padding: 7px 10px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-layout {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas: "business editor" !important;
    gap: 14px !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-panel {
    width: 100% !important;
    min-width: 0 !important;
    padding: 16px 18px !important;
    border-radius: 20px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-panel-header {
    min-height: 44px !important;
    margin-bottom: 12px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-panel-header h3 {
    font-size: 15px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-panel-header p {
    max-width: 410px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-default-preview {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
    padding: 13px !important;
    border-radius: 17px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    align-items: end !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-action {
    grid-column: 1 / -1 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field label,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-selector-grid .matewa-selector-field label {
    margin-bottom: 5px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card select {
    width: 100% !important;
    min-height: 38px !important;
    border-radius: 12px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-frame,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-helper,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-actions,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-default-preview {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-editor-subtle {
    margin: 0 0 10px !important;
    min-height: 18px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-edit-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-preview-heading {
    margin-bottom: 9px !important;
    color: #166534 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.3 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-chip {
    min-height: 50px !important;
    height: 50px !important;
    padding: 6px 7px !important;
    border: 1.5px solid rgba(25, 122, 34, 0.28) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #166534 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045) !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-chip textarea,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-chip span {
    font-size: 11.2px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-measure {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    font-size: 11.2px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-preview-subtle,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-editor-helper {
    margin-top: 10px !important;
    padding: 10px 11px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    line-height: 1.36 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-selector-action .button-secondary,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .button-primary,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-save-actions .button-primary,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-save-actions .button-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 9px 15px !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-selector-action .button-secondary,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-save-actions .button-secondary {
    border: 1px solid rgba(25, 122, 34, 0.30) !important;
    background: #ffffff !important;
    color: #197a22 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-selector-action .button-secondary:hover,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-save-actions .button-secondary:hover {
    border-color: rgba(25, 122, 34, 0.46) !important;
    background: #ecfdf3 !important;
    color: #14532d !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .button-primary,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-save-actions .button-primary {
    border-color: #176d20 !important;
    background: linear-gradient(180deg, #268f2b 0%, #197a22 100%) !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: 0 12px 22px rgba(25, 122, 34, 0.20) !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-actions,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-save-actions {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin-top: 12px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-actions .button-primary {
    width: 100% !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-save-actions .button-primary {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-save-actions .button-secondary {
    flex: 0 0 auto !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-note {
    min-height: 0 !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-selector-action .button-secondary,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-save-actions .button-secondary {
    border-color: rgba(187, 247, 208, 0.24) !important;
    background: rgba(15, 23, 42, 0.72) !important;
    color: #bbf7d0 !important;
}

@media (max-width: 1180px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-layout {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "business"
            "editor" !important;
    }
}

@media (max-width: 720px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-header {
        grid-template-columns: 1fr !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 560px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* =========================================================
   247ChatMate — Visitor Button SaaS cleanup correction 2
   Checkpoint target: VISITORBUTTONSAASUXCLEANUP2

   Purpose:
   - Makes the handwritten layout changes visible across the Visitor Buttons page.
   - Removes the extra top step boxes and header pill.
   - Keeps the business type controls above the suggested button preview.
   - Places current business type/category directly under the right-column headline.
   - Locks admin chips to the same two-line visual contract as the live widget.
   - Visual/layout only. No JSON, save, licence, trial, widget, WhatsApp or routing logic.
========================================================= */

.matewa-chip-studio-card .matewa-chip-studio-pill,
.matewa-chip-studio-card .matewa-chip-studio-steps {
    display: none !important;
}

.matewa-chip-studio-card {
    padding: 22px;
}

.matewa-chip-studio-header {
    margin-bottom: 16px;
}

.matewa-chip-studio-layout {
    display: grid;
    grid-template-columns: minmax(420px, 0.96fr) minmax(520px, 1.04fr);
    gap: 18px;
    align-items: stretch;
}

.matewa-chip-studio-panel {
    height: 100%;
    box-sizing: border-box;
}

.matewa-chip-studio-business-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.matewa-chip-studio-business-panel .matewa-chip-studio-panel-header {
    margin-bottom: 0;
}

.matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
.matewa-chip-studio-business-panel .matewa-selector-grid {
    order: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: none;
}

.matewa-chip-studio-business-panel .matewa-selector-action {
    grid-column: 1 / -1;
}

.matewa-chip-studio-business-panel .matewa-chip-studio-default-preview {
    order: 2;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.matewa-chip-studio-default-preview .matewa-chip-editor-frame,
.matewa-chip-studio-default-preview .matewa-chip-editor-grid,
.matewa-chip-studio-edit-column .matewa-chip-editor-frame,
.matewa-chip-studio-edit-grid,
.matewa-chip-studio-card .matewa-chip-editor-helper,
.matewa-chip-studio-card .matewa-chip-editor-actions {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.matewa-chip-studio-default-preview .matewa-chip-editor-grid,
.matewa-chip-studio-edit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

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

.matewa-current-context-item {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: 14px;
    background: rgba(240, 253, 244, 0.72);
    box-sizing: border-box;
}

.matewa-current-context-item span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.matewa-current-context-item strong {
    display: block;
    color: #14532d;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matewa-chip-editor-subtle {
    margin-bottom: 10px;
}

.matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 8px 10px !important;
    overflow: hidden !important;
    box-sizing: border-box;
}

.matewa-chip-studio-editor-panel .matewa-chip-editor-chip textarea,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip span {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    width: 100% !important;
    max-height: 32px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    line-height: 1.22 !important;
    resize: none !important;
}

.matewa-chip-studio-save-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.matewa-chip-studio-save-actions .button-primary {
    width: 100%;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-current-context-item {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.70);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-current-context-item span {
    color: #b7c2cf;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-current-context-item strong {
    color: #bbf7d0;
}

@media (max-width: 1180px) {
    .matewa-chip-studio-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-chip-studio-business-panel .matewa-selector-grid,
    .matewa-current-context,
    .matewa-chip-studio-save-actions {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   247ChatMate — Visitor Button Studio visual alignment pass
   VISITORBUTTONSECTIONALIGNMENT3
   - CSS/UI only. No save, JSON, chip, widget, licence or handoff logic changes.
========================================================= */

.matewa-chip-studio-card .matewa-chip-studio-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.matewa-chip-studio-card .matewa-chip-studio-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border-radius: 20px;
}

.matewa-chip-studio-card .matewa-chip-studio-panel-header {
    min-height: 58px;
    margin-bottom: 18px;
}

.matewa-chip-studio-card .matewa-chip-studio-panel-header h3 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.matewa-chip-studio-card .matewa-chip-studio-panel-header p {
    max-width: 420px;
    font-size: 12px;
    line-height: 1.45;
}

.matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid .matewa-selector-action {
    grid-column: 1 / -1;
    order: 3;
    margin-top: 18px;
}

.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) {
    min-height: 68px;
    padding: 11px 12px;
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: 14px;
    background: rgba(240, 253, 244, 0.62);
    box-sizing: border-box;
}

.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) label,
.matewa-current-context-item span {
    display: block;
    margin: 0 0 5px;
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select {
    width: 100%;
    min-height: 28px;
    padding: 0 22px 0 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    color: #14532d;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
    box-shadow: none;
}

.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select:focus {
    outline: 2px solid rgba(22, 163, 74, 0.28);
    outline-offset: 2px;
    box-shadow: none;
}

.matewa-chip-studio-card .matewa-current-context {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.matewa-chip-studio-card .matewa-current-context-item {
    min-height: 68px;
    padding: 11px 12px;
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: 14px;
    background: rgba(240, 253, 244, 0.62);
}

.matewa-current-context-item strong {
    color: #14532d;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
}

.matewa-chip-studio-card .matewa-chip-preview-heading,
.matewa-chip-editor-subtle {
    min-height: 19px;
    margin: 0 0 12px;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.matewa-chip-studio-card .matewa-chip-preview-heading {
    color: #14532d;
    font-weight: 850;
}

.matewa-chip-studio-card .matewa-chip-studio-default-preview {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.matewa-chip-studio-card .matewa-chip-editor-frame {
    padding: 0;
    border: 0;
    background: transparent;
}

.matewa-chip-studio-card .matewa-chip-editor-grid,
.matewa-chip-studio-card .matewa-chip-studio-small-grid,
.matewa-chip-studio-card .matewa-chip-studio-edit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: none;
    margin: 0;
}

.matewa-chip-studio-card .matewa-chip-editor-item {
    min-width: 0;
}

.matewa-chip-studio-business-panel .matewa-chip-editor-chip,
.matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px !important;
    height: 56px !important;
    max-height: 56px !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(5, 122, 41, 0.24);
    border-radius: 14px;
    background: #ffffff;
    color: #057a29;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.045);
    box-sizing: border-box;
    overflow: hidden !important;
}

.matewa-chip-studio-business-panel .matewa-chip-editor-chip span,
.matewa-chip-studio-editor-panel .matewa-chip-editor-chip textarea,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip span {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    width: 100% !important;
    max-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #057a29 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow: hidden !important;
    resize: none !important;
    box-shadow: none !important;
}

.matewa-chip-preview-action-note,
.matewa-chip-studio-card .matewa-chip-editor-helper {
    display: block;
    margin: 14px 0 0;
    padding: 11px 12px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
    box-sizing: border-box;
}

.matewa-chip-studio-card .matewa-chip-editor-actions,
.matewa-chip-studio-card .matewa-chip-studio-save-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}

.matewa-chip-studio-card .matewa-chip-editor-actions .button,
.matewa-chip-studio-card .matewa-chip-studio-save-actions .button,
.matewa-chip-studio-business-panel .matewa-selector-action .button {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    justify-content: center;
}

.matewa-chip-studio-card .matewa-chip-editor-actions .button-primary,
.matewa-chip-studio-card .matewa-chip-studio-save-actions .button-primary {
    background: linear-gradient(180deg, #2f8d20 0%, #277a18 100%);
    border-color: #277a18;
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(47, 141, 32, 0.18);
}

.matewa-chip-studio-card .matewa-chip-editor-actions .button-secondary,
.matewa-chip-studio-card .matewa-chip-studio-save-actions .button-secondary,
.matewa-chip-studio-business-panel .matewa-selector-action .button-secondary {
    background: #ffffff;
    border-color: rgba(5, 122, 41, 0.28);
    color: #057a29;
    box-shadow: none;
}

.matewa-chip-studio-card .matewa-chip-studio-edit-column {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-editor-frame {
    flex: 1 1 auto;
}

@media (max-width: 1180px) {
    .matewa-chip-studio-card .matewa-chip-studio-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-chip-studio-card .matewa-current-context,
    .matewa-chip-studio-card .matewa-chip-editor-grid,
    .matewa-chip-studio-card .matewa-chip-studio-small-grid,
    .matewa-chip-studio-card .matewa-chip-studio-edit-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   247ChatMate — Visitor Button selector/chip alignment pass
   VISITORBUTTONSELECTORALIGNMENT4
   - CSS/UI only. No save, JSON, chip, widget, licence or handoff logic changes.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-layout,
.matewa-chip-studio-card .matewa-chip-studio-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-panel,
.matewa-chip-studio-card .matewa-chip-studio-panel {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045) !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-panel-header,
.matewa-chip-studio-card .matewa-chip-studio-panel-header {
    min-height: 58px !important;
    margin-bottom: 18px !important;
}

/* Move selectors up and make them mirror the right-side current-state cards. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid,
.matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
.matewa-chip-studio-business-panel .matewa-selector-grid {
    order: 1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 18px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid .matewa-selector-action,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid .matewa-selector-action,
.matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid .matewa-selector-action,
.matewa-chip-studio-business-panel .matewa-selector-grid .matewa-selector-action {
    order: 3 !important;
    grid-column: 1 / -1 !important;
    margin-top: 18px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action),
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action),
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context-item,
.matewa-current-context-item {
    min-height: 68px !important;
    height: 68px !important;
    padding: 11px 12px !important;
    border: 1px solid rgba(22, 163, 74, 0.18) !important;
    border-radius: 14px !important;
    background: #f8fffa !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) label,
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) label,
.matewa-current-context-item span {
    display: block !important;
    margin: 0 0 5px !important;
    color: #64748b !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select,
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select {
    width: 100% !important;
    min-height: 28px !important;
    padding: 0 22px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    color: #14532d !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    box-shadow: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context,
.matewa-current-context {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin: 0 0 18px !important;
}

/* Remove the green haze and make the left preview behave like the right edit block. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-default-preview,
.matewa-chip-studio-business-panel .matewa-chip-studio-default-preview,
.matewa-chip-studio-card .matewa-chip-studio-default-preview {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-small-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-grid,
.matewa-chip-studio-card .matewa-chip-editor-grid,
.matewa-chip-studio-card .matewa-chip-studio-small-grid,
.matewa-chip-studio-card .matewa-chip-studio-edit-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-chip,
.matewa-chip-studio-business-panel .matewa-chip-editor-chip,
.matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip {
    min-height: 56px !important;
    height: 56px !important;
    max-height: 56px !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(5, 122, 41, 0.24) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #057a29 !important;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.04) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-preview-action-note,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-helper,
.matewa-chip-preview-action-note,
.matewa-chip-studio-card .matewa-chip-editor-helper {
    min-height: 86px !important;
    margin: 14px 0 0 !important;
    padding: 11px 12px !important;
    border: 1px solid #dbeafe !important;
    border-radius: 14px !important;
    background: #f8fbff !important;
    color: #475569 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-actions,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-save-actions,
.matewa-chip-studio-card .matewa-chip-editor-actions,
.matewa-chip-studio-card .matewa-chip-studio-save-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    width: 100% !important;
    margin-top: 18px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-actions .button,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-save-actions .button,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-action .button,
.matewa-chip-studio-card .matewa-chip-editor-actions .button,
.matewa-chip-studio-card .matewa-chip-studio-save-actions .button,
.matewa-chip-studio-business-panel .matewa-selector-action .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-preview-heading,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-editor-subtle,
.matewa-chip-studio-card .matewa-chip-preview-heading,
.matewa-chip-editor-subtle {
    min-height: 19px !important;
    margin: 0 0 12px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

@media (max-width: 1180px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-layout,
    .matewa-chip-studio-card .matewa-chip-studio-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 720px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-small-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-grid,
    .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-chip-studio-business-panel .matewa-selector-grid,
    .matewa-current-context,
    .matewa-chip-studio-card .matewa-chip-editor-grid,
    .matewa-chip-studio-card .matewa-chip-studio-small-grid,
    .matewa-chip-studio-card .matewa-chip-studio-edit-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   247ChatMate — Visitor Button final two-column alignment pass
   Checkpoint: VISITORBUTTONFINALALIGNMENT5
   Scope: admin UI/CSS and button order only.
   No chip logic, JSON loading, widget output, WhatsApp handoff,
   licence, trial, lead routing or custom save handler changes.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-admin-panel-heading,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-header {
    margin-bottom: 10px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-admin-panel-heading h2 {
    margin-bottom: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-admin-panel-heading p {
    display: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card {
    padding-top: 16px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-layout,
.matewa-chip-studio-card .matewa-chip-studio-layout {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-panel,
.matewa-chip-studio-card .matewa-chip-studio-panel {
    display: flex !important;
    flex-direction: column !important;
    padding: 18px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-panel-header,
.matewa-chip-studio-card .matewa-chip-studio-panel-header {
    min-height: 48px !important;
    margin-bottom: 14px !important;
    align-items: flex-start !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-panel-header h3,
.matewa-chip-studio-card .matewa-chip-studio-panel-header h3 {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-panel-header p,
.matewa-chip-studio-business-panel .matewa-chip-studio-panel-header p {
    display: none !important;
}

/* Row 1: left Category/Business Type selectors must align with the right current-state boxes. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid,
.matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
.matewa-chip-studio-business-panel .matewa-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context,
.matewa-current-context {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 0 14px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action),
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action),
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context-item,
.matewa-current-context-item {
    min-height: 54px !important;
    height: 54px !important;
    padding: 9px 12px !important;
    border: 1px solid rgba(22, 101, 52, 0.20) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action),
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) {
    background: #ffffff !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context-item,
.matewa-current-context-item {
    background: #fbfef9 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) label,
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) label,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context-item span,
.matewa-current-context-item span {
    display: block !important;
    margin: 0 0 4px !important;
    color: #64748b !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select,
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select {
    width: 100% !important;
    min-height: 24px !important;
    height: 24px !important;
    padding: 0 24px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    color: #14532d !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    box-shadow: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context-item strong,
.matewa-current-context-item strong {
    color: #14532d !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
}

/* Row 2: chip headings and chip grids align side-by-side. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-default-preview,
.matewa-chip-studio-business-panel .matewa-chip-studio-default-preview,
.matewa-chip-studio-card .matewa-chip-studio-default-preview {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-preview-heading,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-editor-subtle,
.matewa-chip-studio-card .matewa-chip-preview-heading,
.matewa-chip-editor-subtle {
    min-height: 18px !important;
    margin: 0 0 10px !important;
    color: #14532d !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-frame,
.matewa-chip-studio-card .matewa-chip-editor-frame {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-small-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-grid,
.matewa-chip-studio-card .matewa-chip-editor-grid,
.matewa-chip-studio-card .matewa-chip-studio-small-grid,
.matewa-chip-studio-card .matewa-chip-studio-edit-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-chip,
.matewa-chip-studio-business-panel .matewa-chip-editor-chip,
.matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip {
    min-height: 44px !important;
    height: 44px !important;
    max-height: 44px !important;
    padding: 7px 10px !important;
    border: 1px solid rgba(22, 101, 52, 0.22) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #166534 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-editor-chip span,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-chip textarea,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-chip span,
.matewa-chip-studio-business-panel .matewa-chip-editor-chip span,
.matewa-chip-studio-editor-panel .matewa-chip-editor-chip textarea,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip span {
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

/* Row 3: blue helper boxes align. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-preview-action-note,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-helper,
.matewa-chip-preview-action-note,
.matewa-chip-studio-card .matewa-chip-editor-helper {
    min-height: 72px !important;
    margin: 12px 0 0 !important;
    padding: 10px 11px !important;
    border: 1px solid #dbeafe !important;
    border-radius: 10px !important;
    background: #f8fbff !important;
    color: #475569 !important;
    font-size: 11px !important;
    line-height: 1.42 !important;
    box-sizing: border-box !important;
}

/* Rows 4 and 5: white secondary actions align first; green confirm actions are last. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-actions,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-save-actions,
.matewa-chip-studio-card .matewa-chip-editor-actions,
.matewa-chip-studio-card .matewa-chip-studio-save-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    width: 100% !important;
    margin-top: 18px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-preview-final-actions,
.matewa-chip-preview-final-actions {
    margin-top: 18px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-actions .button,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-save-actions .button,
.matewa-chip-studio-card .matewa-chip-editor-actions .button,
.matewa-chip-studio-card .matewa-chip-studio-save-actions .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 8px 14px !important;
    border-radius: 9px !important;
    font-size: 11.5px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-actions .button-secondary,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-save-actions .button-secondary,
.matewa-chip-studio-card .matewa-chip-editor-actions .button-secondary,
.matewa-chip-studio-card .matewa-chip-studio-save-actions .button-secondary {
    background: #ffffff !important;
    border: 1px solid rgba(22, 101, 52, 0.24) !important;
    color: #166534 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-actions .button-primary,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-save-actions .button-primary,
.matewa-chip-studio-card .matewa-chip-editor-actions .button-primary,
.matewa-chip-studio-card .matewa-chip-studio-save-actions .button-primary {
    background: #2f7d1b !important;
    border: 1px solid #2f7d1b !important;
    color: #ffffff !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-column,
.matewa-chip-studio-card .matewa-chip-studio-edit-column {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-editor-frame,
.matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-editor-frame {
    flex: 0 0 auto !important;
}

@media (max-width: 1180px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-layout,
    .matewa-chip-studio-card .matewa-chip-studio-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 720px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-small-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-grid,
    .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-chip-studio-business-panel .matewa-selector-grid,
    .matewa-current-context,
    .matewa-chip-studio-card .matewa-chip-editor-grid,
    .matewa-chip-studio-card .matewa-chip-studio-small-grid,
    .matewa-chip-studio-card .matewa-chip-studio-edit-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   247ChatMate — Visitor Button matched selector alignment pass
   Checkpoint: VISITORBUTTONMATCHEDSELECTORS6

   Purpose:
   - Uses the left Category / Business Type selector styling as the visual
     contract for the right Current Business Type / Current Category boxes.
   - Removes the remaining left-column drop caused by the business-panel gap.
   - Keeps chip grids, helper boxes and action rows aligned across both cards.
   - CSS only. No save, JSON, chip, widget, licence, trial or handoff logic.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-layout,
.matewa-chip-studio-card .matewa-chip-studio-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel,
.matewa-chip-studio-business-panel {
    gap: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-panel,
.matewa-chip-studio-card .matewa-chip-studio-panel {
    padding: 20px !important;
    border-radius: 20px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-panel-header,
.matewa-chip-studio-card .matewa-chip-studio-panel-header {
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 0 18px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-panel-header h3,
.matewa-chip-studio-card .matewa-chip-studio-panel-header h3 {
    margin: 0 0 3px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-panel-header p,
.matewa-chip-studio-card .matewa-chip-studio-panel-header p {
    margin: 0 !important;
    max-width: 420px !important;
    line-height: 1.32 !important;
}

/* Row 1: make right current-value boxes visually match the left selector boxes. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context,
.matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
.matewa-chip-studio-business-panel .matewa-selector-grid,
.matewa-current-context {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 0 14px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action),
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context-item,
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action),
.matewa-current-context-item {
    position: relative !important;
    min-height: 54px !important;
    height: 54px !important;
    padding: 9px 34px 9px 12px !important;
    border: 1px solid rgba(22, 101, 52, 0.20) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context-item::after,
.matewa-current-context-item::after {
    content: "" !important;
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    width: 7px !important;
    height: 7px !important;
    border-right: 1.5px solid #64748b !important;
    border-bottom: 1.5px solid #64748b !important;
    transform: translateY(-64%) rotate(45deg) !important;
    opacity: 0.85 !important;
    pointer-events: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) label,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context-item span,
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) label,
.matewa-current-context-item span {
    display: block !important;
    margin: 0 0 4px !important;
    color: #64748b !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select,
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select {
    width: 100% !important;
    min-height: 24px !important;
    height: 24px !important;
    padding: 0 24px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    color: #14532d !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    box-shadow: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context-item strong,
.matewa-current-context-item strong {
    display: block !important;
    min-height: 24px !important;
    color: #14532d !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Row 2: remove the remaining left drop so chip headings and chip grids align with Box 2. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-default-preview,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-column,
.matewa-chip-studio-business-panel .matewa-chip-studio-default-preview,
.matewa-chip-studio-card .matewa-chip-studio-edit-column {
    margin-top: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-preview-heading,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-editor-subtle,
.matewa-chip-studio-card .matewa-chip-preview-heading,
.matewa-chip-editor-subtle {
    min-height: 18px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    line-height: 1.35 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-small-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-grid,
.matewa-chip-studio-card .matewa-chip-editor-grid,
.matewa-chip-studio-card .matewa-chip-studio-small-grid,
.matewa-chip-studio-card .matewa-chip-studio-edit-grid {
    gap: 7px !important;
}

/* Row 3: helper boxes use one shared height so the white/green actions line up. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-preview-action-note,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-helper,
.matewa-chip-preview-action-note,
.matewa-chip-studio-card .matewa-chip-editor-helper {
    min-height: 72px !important;
    margin: 12px 0 0 !important;
    padding: 10px 11px !important;
    border: 1px solid #dbeafe !important;
    border-radius: 10px !important;
    background: #f8fbff !important;
    box-sizing: border-box !important;
}

/* Rows 4 and 5: secondary white buttons align first; green buttons remain last. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-actions,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-save-actions,
.matewa-chip-studio-card .matewa-chip-editor-actions,
.matewa-chip-studio-card .matewa-chip-studio-save-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    width: 100% !important;
    margin-top: 14px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-preview-final-actions,
.matewa-chip-preview-final-actions {
    margin-top: 14px !important;
}

@media (max-width: 1180px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-layout,
    .matewa-chip-studio-card .matewa-chip-studio-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 720px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-small-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-grid,
    .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-chip-studio-business-panel .matewa-selector-grid,
    .matewa-current-context,
    .matewa-chip-studio-card .matewa-chip-editor-grid,
    .matewa-chip-studio-card .matewa-chip-studio-small-grid,
    .matewa-chip-studio-card .matewa-chip-studio-edit-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   247ChatMate — Visitor Buttons dark-mode + final alignment patch
   Checkpoint: VISITORBUTTONDARKMODEALIGN7

   Purpose:
   - Fixes the Visitor buttons page after the matched-selector pass.
   - Keeps the right current context boxes read-only by removing dropdown arrows.
   - Re-applies proper dark-mode styling after late light-mode overrides.
   - Tightens shared row heights so bottom action buttons align left/right.
   - CSS only. No PHP, save, JSON, chip, widget, licence, trial or handoff logic.
========================================================= */

/* Current Business Type / Current Category are read-only status boxes, not selectors. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context-item::after,
.matewa-current-context-item::after {
    content: none !important;
    display: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context-item,
.matewa-current-context-item {
    padding-right: 12px !important;
}

/* Shared vertical rhythm for Box 1 and Box 2. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-panel,
.matewa-chip-studio-card .matewa-chip-studio-panel {
    display: flex !important;
    flex-direction: column !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-chip,
.matewa-chip-studio-card .matewa-chip-editor-chip {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-preview-action-note,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-helper,
.matewa-chip-preview-action-note,
.matewa-chip-studio-card .matewa-chip-editor-helper {
    height: 86px !important;
    min-height: 86px !important;
    max-height: 86px !important;
    overflow: hidden !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-actions,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-save-actions,
.matewa-chip-studio-card .matewa-chip-editor-actions,
.matewa-chip-studio-card .matewa-chip-studio-save-actions {
    margin-top: 16px !important;
    gap: 7px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-actions .button,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-save-actions .button,
.matewa-chip-studio-card .matewa-chip-editor-actions .button,
.matewa-chip-studio-card .matewa-chip-studio-save-actions .button {
    min-height: 39px !important;
    height: 39px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Dark-mode repair for the Visitor buttons page. These rules must sit after the light alignment pass. */
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-card,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-card {
    border-color: rgba(148, 163, 184, 0.18) !important;
    background:
        radial-gradient(circle at 96% 0%, rgba(106, 207, 99, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(9, 20, 32, 0.94), rgba(7, 17, 28, 0.98)) !important;
    color: #e2e8f0 !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-panel,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-panel {
    border-color: rgba(148, 163, 184, 0.20) !important;
    background:
        radial-gradient(circle at 96% 0%, rgba(106, 207, 99, 0.06), transparent 32%),
        rgba(15, 23, 42, 0.82) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28) !important;
    color: #e2e8f0 !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-card h2,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-card h3,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-panel-header h3,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-preview-heading,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-editor-subtle,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-editor-subtle strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-card h2,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-card h3,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-preview-heading,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-subtle,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-subtle strong {
    color: #f8fafc !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-panel-header p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-intro,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-preview-subtle,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-panel-header p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-intro,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-preview-subtle {
    color: #b7c2cf !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action),
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-current-context-item,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action),
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-current-context-item {
    border-color: rgba(148, 163, 184, 0.28) !important;
    background: rgba(9, 20, 32, 0.88) !important;
    color: #f8fafc !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) label,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-current-context-item span,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) label,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-current-context-item span {
    color: #94a3b8 !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-current-context-item strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-current-context-item strong {
    color: #bbf7d0 !important;
    background-color: transparent !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-editor-chip.is-preview,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-chip.is-preview {
    border-color: rgba(106, 207, 99, 0.38) !important;
    background: rgba(9, 20, 32, 0.86) !important;
    color: #bbf7d0 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-editor-chip span,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-editor-chip textarea,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-chip span,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-editor-chip textarea {
    color: #bbf7d0 !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-preview-action-note,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-helper,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-preview-action-note,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-card .matewa-chip-editor-helper {
    border-color: rgba(96, 165, 250, 0.24) !important;
    background: rgba(15, 23, 42, 0.74) !important;
    color: #cbd5e1 !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-preview-action-note strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-helper strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-preview-action-note strong,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-card .matewa-chip-editor-helper strong {
    color: #f8fafc !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-card .button-secondary,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-card .button-secondary {
    border-color: rgba(106, 207, 99, 0.34) !important;
    background: rgba(15, 23, 42, 0.88) !important;
    color: #bbf7d0 !important;
    box-shadow: none !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-card .button-secondary:hover,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-card .button-secondary:focus-visible,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-card .button-secondary:hover,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-card .button-secondary:focus-visible {
    border-color: rgba(106, 207, 99, 0.62) !important;
    color: #dcfce7 !important;
    box-shadow: 0 0 0 3px rgba(106, 207, 99, 0.12) !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-card .button-primary,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-card .button-primary {
    background: linear-gradient(180deg, #2f8d20 0%, #1f6f16 100%) !important;
    border-color: #3ca62a !important;
    color: #ffffff !important;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.26) !important;
}

/* =========================================================
   247ChatMate — Phase 5-A-12G save confirmation + section return
   Scope: admin continuity UI only. No settings, licence, widget,
   chip, vertical, lead routing or frontend behaviour changes.
========================================================= */

.matewa-dashboard-page .matewa-admin-save-confirmation {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    max-width: min(360px, 100%);
    padding: 7px 11px;
    border: 1px solid rgba(25, 122, 34, 0.18);
    border-radius: 999px;
    background: rgba(240, 253, 244, 0.96);
    color: #14532d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    animation: matewa-save-confirmation-soft-in 220ms ease-out both;
}

.matewa-dashboard-page .matewa-admin-save-confirmation .dashicons {
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 18px;
    line-height: 18px;
    color: #197a22;
}

.matewa-dashboard-page .matewa-admin-save-confirmation.is-warning {
    border-color: rgba(180, 83, 9, 0.22);
    background: rgba(255, 251, 235, 0.96);
    color: #78350f;
}

.matewa-dashboard-page .matewa-admin-save-confirmation.is-warning .dashicons,
.matewa-dashboard-page .matewa-admin-save-confirmation.is-info .dashicons {
    color: currentColor;
}

.matewa-dashboard-page .matewa-admin-save-confirmation.is-info {
    border-color: rgba(37, 99, 235, 0.20);
    background: rgba(239, 246, 255, 0.96);
    color: #1e3a8a;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-save-confirmation {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(20, 83, 45, 0.86);
    color: #dcfce7;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-save-confirmation.is-warning {
    border-color: rgba(251, 191, 36, 0.30);
    background: rgba(120, 53, 15, 0.86);
    color: #fef3c7;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-save-confirmation.is-info {
    border-color: rgba(96, 165, 250, 0.30);
    background: rgba(30, 58, 138, 0.86);
    color: #dbeafe;
}

@keyframes matewa-save-confirmation-soft-in {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .matewa-dashboard-page .matewa-admin-save-confirmation {
        animation: none;
    }
}

@media (max-width: 960px) {
    .matewa-dashboard-page .matewa-admin-save-confirmation {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }
}

.matewa-dashboard-page .matewa-admin-topbar-actions {
    flex-wrap: wrap;
}

/* =========================================================
   247ChatMate — Visitor Button current context order/style fix
   Scope: CSS visual parity only for the two read-only current-state boxes.
   No save, chip, vertical JSON, widget, licence, trial or handoff logic changes.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-current-context-item,
.matewa-current-context-item {
    background: #ffffff !important;
}

/* =========================================================
   247ChatMate — Visitor Button row-lock alignment micro patch
   Checkpoint: VISITORBUTTONROWLOCKALIGN8

   Purpose:
   - Locks the left selector row and right current-context row to the same
     vertical start, height and rhythm.
   - Locks the suggested/editable label headings to the same baseline.
   - CSS only. No save, chip, vertical JSON, widget, licence, trial,
     handoff, lead routing or frontend behaviour changes.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-panel,
.matewa-chip-studio-card .matewa-chip-studio-panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-panel-header,
.matewa-chip-studio-card .matewa-chip-studio-panel-header {
    flex: 0 0 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-current-context,
.matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
.matewa-chip-studio-business-panel .matewa-selector-grid,
.matewa-chip-studio-editor-panel .matewa-current-context {
    flex: 0 0 54px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action),
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-current-context-item,
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action),
.matewa-chip-studio-editor-panel .matewa-current-context-item {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding: 9px 12px !important;
    display: block !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) label,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-current-context-item span,
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) label,
.matewa-chip-studio-editor-panel .matewa-current-context-item span {
    height: 10px !important;
    min-height: 10px !important;
    max-height: 10px !important;
    margin: 0 0 4px !important;
    line-height: 10px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-current-context-item strong,
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select,
.matewa-chip-studio-editor-panel .matewa-current-context-item strong {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    line-height: 24px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-preview-heading,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-subtle,
.matewa-chip-studio-card .matewa-chip-preview-heading,
.matewa-chip-studio-card .matewa-chip-editor-subtle {
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    line-height: 18px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* =========================================================
   247ChatMate — Phase 5-A-12H vertical dropdown padding fix
   Checkpoint: VERTICALDROPDOWNPADDING5A12HLOCK

   Scope:
   - CSS-only breathing-room pass for the Category and Business Type
     select controls above the visitor button chips.
   - No vertical JSON, chip loading, save handler, widget, WhatsApp,
     licence, trial or Pro logic changes.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select,
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa_vertical_category_selected,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa_vertical_selected,
#matewa_vertical_category_selected,
#matewa_vertical_selected {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 0 34px 0 8px !important;
    line-height: 24px !important;
    box-sizing: border-box !important;
    text-overflow: ellipsis !important;
    background-position: right 8px center !important;
    background-size: 16px 16px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select:focus,
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select:focus,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa_vertical_category_selected:focus,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa_vertical_selected:focus,
#matewa_vertical_category_selected:focus,
#matewa_vertical_selected:focus {
    outline: 2px solid rgba(22, 163, 74, 0.34) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] #matewa_vertical_category_selected,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] #matewa_vertical_selected {
    color: #bbf7d0 !important;
    background-position: right 8px center !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"][data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select:focus,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action) select:focus,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] #matewa_vertical_category_selected:focus,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] #matewa_vertical_selected:focus {
    outline-color: rgba(106, 207, 99, 0.44) !important;
}

/* =========================================================
   247ChatMate — Phase 5-A-12I admin chip layout mirror
   Checkpoint: ADMINCHIPLAYOUTRESET5A12ILOCK

   Scope:
   - Admin-only visual mirror of the proven frontend task-chip contract.
   - Keeps vertical dropdown padding, save handler, external JSON loading,
     frontend widget, WhatsApp, licence, trial and Pro logic untouched.
========================================================= */

.matewa-chip-studio-default-preview .matewa-chip-editor-frame,
.matewa-chip-studio-default-preview .matewa-chip-editor-grid,
.matewa-chip-studio-edit-column .matewa-chip-editor-frame,
.matewa-chip-studio-edit-grid,
.matewa-chip-studio-live-grid {
    width: 318px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.matewa-chip-studio-default-preview .matewa-chip-editor-grid,
.matewa-chip-studio-edit-grid,
.matewa-chip-studio-live-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 7px !important;
    row-gap: 7px !important;
    align-items: stretch !important;
}

.matewa-chip-studio-default-preview .matewa-chip-editor-item,
.matewa-chip-studio-edit-grid .matewa-chip-editor-item,
.matewa-chip-studio-live-grid .matewa-chip-editor-item {
    min-width: 0 !important;
}

.matewa-chip-studio-default-preview .matewa-chip-editor-chip,
.matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-chip-studio-preview-panel .matewa-chip-editor-chip {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 6px 7px !important;
    border-radius: 14px !important;
    border-color: rgba(5, 122, 41, 0.28) !important;
    background: #ffffff !important;
    color: #057a29 !important;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.055) !important;
    box-sizing: border-box !important;
}

.matewa-chip-studio-default-preview .matewa-chip-editor-chip span,
.matewa-chip-studio-editor-panel .matewa-chip-editor-chip textarea,
.matewa-chip-studio-preview-panel .matewa-chip-editor-chip span,
.matewa-chip-studio-live-chip span {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    width: 100% !important;
    max-height: 30px !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    font-size: 11.2px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.matewa-chip-studio-editor-panel .matewa-chip-editor-measure {
    width: calc(100% - 14px) !important;
    max-width: calc(100% - 14px) !important;
    max-height: 30px !important;
    font-size: 11.2px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

@media (max-width: 520px) {
    .matewa-chip-studio-default-preview .matewa-chip-editor-frame,
    .matewa-chip-studio-default-preview .matewa-chip-editor-grid,
    .matewa-chip-studio-edit-column .matewa-chip-editor-frame,
    .matewa-chip-studio-edit-grid,
    .matewa-chip-studio-live-grid {
        width: 100% !important;
    }

    .matewa-chip-studio-default-preview .matewa-chip-editor-grid,
    .matewa-chip-studio-edit-grid,
    .matewa-chip-studio-live-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* =========================================================
   247ChatMate — Phase 5-A-12I R9 chip clearance spacing
   Checkpoint: ADMINCHIPLAYOUTRESET5A12ILOCK

   Scope:
   - Admin-only CSS spacing correction for Visitor Button Studio.
   - Keeps the two columns, confirm button styling/alignment, vertical
     dropdown padding, chip logic, save handler, widget output,
     WhatsApp handoff, licence, trial and Pro logic untouched.
   - Fixes the stacked Category / Business Type rows being height-clamped,
     which caused the chip grids to sit over the Business Type boxes.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-current-context,
.matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
.matewa-chip-studio-business-panel .matewa-selector-grid,
.matewa-chip-studio-editor-panel .matewa-current-context {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
    width: 100% !important;
    height: auto !important;
    min-height: 126px !important;
    max-height: none !important;
    margin: 0 0 30px !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action),
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-current-context-item,
.matewa-chip-studio-business-panel .matewa-selector-field:not(.matewa-selector-action),
.matewa-chip-studio-editor-panel .matewa-current-context-item {
    height: 57px !important;
    min-height: 57px !important;
    max-height: 57px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-default-preview,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-column,
.matewa-chip-studio-business-panel .matewa-chip-studio-default-preview,
.matewa-chip-studio-card .matewa-chip-studio-edit-column {
    margin-top: 0 !important;
    flex: 0 0 auto !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-small-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-grid,
.matewa-chip-studio-card .matewa-chip-editor-grid,
.matewa-chip-studio-card .matewa-chip-studio-small-grid,
.matewa-chip-studio-card .matewa-chip-studio-edit-grid {
    margin-top: 0 !important;
}

@media (max-width: 720px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-selector-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-current-context,
    .matewa-chip-studio-business-panel .matewa-chip-studio-selector-grid,
    .matewa-chip-studio-business-panel .matewa-selector-grid,
    .matewa-chip-studio-editor-panel .matewa-current-context {
        min-height: 0 !important;
        margin-bottom: 24px !important;
    }
}

/* =========================================================
   247ChatMate — Phase 5-A-12I R11 widget chip contract recovery
   Checkpoint: ADMINCHIPLAYOUTRESET5A12ILOCK

   Scope:
   - Admin-only CSS correction for Visitor Button Studio.
   - Reapplies the actual frontend widget task-chip contract:
     292px grid, 3 columns, 7px gap, 50px chips, 11.2px labels,
     two-line visual clamp/fit.
   - Keeps the spacing clearance from the selector boxes.
   - Aligns the left green confirm button with the right green save button
     by reserving the missing Revert button row on the left.
   - No PHP, JS, save handler, vertical JSON, frontend widget,
     WhatsApp handoff, licence, trial or Pro logic changes.
========================================================= */

/* Admin chip grids must mirror the live widget content width: 320px widget minus 14px side padding each side = 292px. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-default-preview .matewa-chip-editor-frame,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-editor-frame,
.matewa-chip-studio-card .matewa-chip-studio-default-preview .matewa-chip-editor-frame,
.matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-editor-frame {
    width: 292px !important;
    max-width: 292px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-default-preview .matewa-chip-editor-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-small-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-grid,
.matewa-chip-studio-card .matewa-chip-studio-default-preview .matewa-chip-editor-grid,
.matewa-chip-studio-card .matewa-chip-studio-small-grid,
.matewa-chip-studio-card .matewa-chip-studio-edit-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 7px !important;
    row-gap: 7px !important;
    width: 292px !important;
    max-width: 292px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: stretch !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-item,
.matewa-chip-studio-card .matewa-chip-editor-item {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-chip,
.matewa-chip-studio-business-panel .matewa-chip-editor-chip,
.matewa-chip-studio-editor-panel .matewa-chip-editor-chip,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 6px 7px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(5, 122, 41, 0.28) !important;
    background: #ffffff !important;
    color: #057a29 !important;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.055) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-chip span,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-chip textarea,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-measure,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip span,
.matewa-chip-studio-editor-panel .matewa-chip-editor-chip textarea,
.matewa-chip-studio-editor-panel .matewa-chip-editor-measure {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 30px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    color: inherit !important;
    font-size: 11.2px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-default-preview .matewa-chip-editor-chip span,
.matewa-chip-studio-default-preview .matewa-chip-editor-chip span {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-chip textarea,
.matewa-chip-studio-editor-panel .matewa-chip-editor-chip textarea {
    display: block !important;
    height: 30px !important;
    min-height: 30px !important;
    resize: none !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-editor-panel .matewa-chip-editor-measure,
.matewa-chip-studio-editor-panel .matewa-chip-editor-measure {
    width: calc(100% - 14px) !important;
    max-width: calc(100% - 14px) !important;
}

/* Keep helper/info boxes and action buttons full-card width, not widget-chip width. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-helper,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-editor-actions,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-preview-subtle,
.matewa-chip-studio-card .matewa-chip-editor-helper,
.matewa-chip-studio-card .matewa-chip-editor-actions,
.matewa-chip-studio-card .matewa-chip-preview-subtle {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* The preview button remains removed. Left side reserves the matching Revert button row so the green confirm buttons align. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-manual-preview-business-type,
#matewa-manual-preview-business-type {
    display: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-business-panel .matewa-chip-preview-final-actions,
.matewa-chip-studio-business-panel .matewa-chip-preview-final-actions {
    padding-top: 55px !important;
}

@media (max-width: 520px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-default-preview .matewa-chip-editor-frame,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-editor-frame,
    .matewa-chip-studio-card .matewa-chip-studio-default-preview .matewa-chip-editor-frame,
    .matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-editor-frame {
        width: 100% !important;
        max-width: 292px !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-default-preview .matewa-chip-editor-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-small-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card .matewa-chip-studio-edit-grid,
    .matewa-chip-studio-card .matewa-chip-studio-default-preview .matewa-chip-editor-grid,
    .matewa-chip-studio-card .matewa-chip-studio-small-grid,
    .matewa-chip-studio-card .matewa-chip-studio-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 211px !important;
    }
}

/* =========================================================
   247ChatMate — Phase 5-A-12I R12 final admin chip hard-lock
   Checkpoint target: ADMINCHIPLAYOUTRESET5A12ILOCK

   Scope:
   - Admin Visitor Button Studio only.
   - Uses ID-level selectors so the chip grid cannot stretch back out.
   - Mirrors the frontend widget chip contract: 292px grid, 3 columns,
     7px gaps, 50px chip height, compact two-line labels.
   - Reserves the missing Revert row on the left so both green confirm
     buttons align on desktop.
   - No PHP, JS, save handler, vertical JSON, frontend widget,
     WhatsApp handoff, licence, trial, Pro or phone logic changes.
========================================================= */

#matewa-chip-labels-section #matewa-manual-business-type-preview-wrap .matewa-chip-editor-frame,
#matewa-chip-labels-section .matewa-chip-studio-edit-column > .matewa-chip-editor-frame {
    width: min(292px, 100%) !important;
    max-width: 292px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

#matewa-chip-labels-section #matewa-manual-chip-preview-grid,
#matewa-chip-labels-section .matewa-chip-studio-edit-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: min(292px, 100%) !important;
    max-width: 292px !important;
    min-width: 0 !important;
    column-gap: 7px !important;
    row-gap: 7px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: stretch !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

#matewa-chip-labels-section #matewa-manual-chip-preview-grid .matewa-chip-editor-item,
#matewa-chip-labels-section .matewa-chip-studio-edit-grid .matewa-chip-editor-item {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#matewa-chip-labels-section #matewa-manual-chip-preview-grid .matewa-chip-editor-chip,
#matewa-chip-labels-section .matewa-chip-studio-edit-grid .matewa-chip-editor-chip {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 6px 7px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(5, 122, 41, 0.28) !important;
    background: #ffffff !important;
    color: #057a29 !important;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.055) !important;
    text-align: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#matewa-chip-labels-section #matewa-manual-chip-preview-grid .matewa-chip-editor-chip span,
#matewa-chip-labels-section .matewa-chip-studio-edit-grid .matewa-chip-editor-chip textarea,
#matewa-chip-labels-section .matewa-chip-studio-edit-grid .matewa-chip-editor-measure {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    max-height: 30px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 11.2px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    font-family: inherit !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    overflow: hidden !important;
    box-shadow: none !important;
    resize: none !important;
    box-sizing: border-box !important;
}

#matewa-chip-labels-section #matewa-manual-chip-preview-grid .matewa-chip-editor-chip span {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

#matewa-chip-labels-section .matewa-chip-studio-edit-grid .matewa-chip-editor-chip textarea {
    display: block !important;
    height: 30px !important;
    min-height: 30px !important;
}

#matewa-chip-labels-section .matewa-chip-studio-edit-grid .matewa-chip-editor-measure {
    width: calc(100% - 14px) !important;
    max-width: calc(100% - 14px) !important;
    font-size: 11.2px !important;
    line-height: 1.25 !important;
}

#matewa-chip-labels-section #matewa-manual-business-type-preview-wrap .matewa-chip-preview-subtle,
#matewa-chip-labels-section .matewa-chip-studio-edit-column .matewa-chip-editor-helper,
#matewa-chip-labels-section #matewa-manual-business-type-preview-wrap .matewa-chip-preview-final-actions,
#matewa-chip-labels-section .matewa-chip-studio-edit-column .matewa-chip-studio-save-actions {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#matewa-chip-labels-section #matewa-manual-business-type-preview-wrap .matewa-chip-preview-final-actions {
    padding-top: 53px !important;
    margin-top: 14px !important;
}

#matewa-chip-labels-section #matewa-manual-business-type-preview-wrap .matewa-chip-preview-final-actions .button-primary,
#matewa-chip-labels-section .matewa-chip-studio-edit-column .matewa-chip-studio-save-actions .button-primary {
    width: 100% !important;
    min-height: 43px !important;
    justify-content: center !important;
    text-align: center !important;
}

@media (max-width: 620px) {
    #matewa-chip-labels-section #matewa-manual-business-type-preview-wrap .matewa-chip-editor-frame,
    #matewa-chip-labels-section .matewa-chip-studio-edit-column > .matewa-chip-editor-frame,
    #matewa-chip-labels-section #matewa-manual-chip-preview-grid,
    #matewa-chip-labels-section .matewa-chip-studio-edit-grid {
        width: min(292px, 100%) !important;
        max-width: 292px !important;
    }

    #matewa-chip-labels-section #matewa-manual-business-type-preview-wrap .matewa-chip-preview-final-actions {
        padding-top: 0 !important;
    }
}

/* =========================================================
   247ChatMate — Admin Visitor Button Studio frontend mirror lock
   Phase 5-A-14J chip visual recovery

   Mirrors the proven frontend widget chip contract:
   - 292px chip grid, matching 320px widget minus 14px side padding
   - 3 equal columns
   - 7px grid gaps
   - 50px chip height
   - 6px / 7px chip padding
   - 11.2px, 700-weight, two-line label clamp

   Visual/admin-chip only. No save, JSON, vertical, frontend, WhatsApp,
   lead, licence, trial or dashboard logic changes.
========================================================= */

#matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap .matewa-chip-editor-frame {
    width: 292px !important;
    max-width: 292px !important;
    min-width: 292px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

#matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column > .matewa-chip-editor-frame {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

#matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid,
#matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 292px !important;
    max-width: 292px !important;
    min-width: 292px !important;
    column-gap: 7px !important;
    row-gap: 7px !important;
    margin: 10px auto 0 !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

#matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid .matewa-chip-editor-item,
#matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-item {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

#matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid .matewa-chip-editor-chip,
#matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 6px 7px !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(5, 122, 41, 0.28) !important;
    background: #ffffff !important;
    color: #057a29 !important;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.055) !important;
    text-align: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid .matewa-chip-editor-chip span,
#matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip textarea,
#matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-measure {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    max-height: 30px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 11.2px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    font-family: inherit !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    overflow: hidden !important;
    box-shadow: none !important;
    resize: none !important;
    box-sizing: border-box !important;
}

#matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid .matewa-chip-editor-chip span {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

#matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip textarea {
    display: block !important;
    min-height: 14px !important;
    max-height: 30px !important;
}

@media (max-width: 420px) {
    #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap .matewa-chip-editor-frame,
    #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column > .matewa-chip-editor-frame,
    #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid,
    #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid {
        width: 100% !important;
        max-width: 292px !important;
        min-width: 0 !important;
    }
}

/* =========================================================
   247ChatMate — 5-A-20A Help columns balance polish
   Scope: Help panel cards only. Reduces empty card depth without
   changing the sidebar, top bar, dashboard, setup, chips or logic.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-grid {
    min-height: 0 !important;
    height: auto !important;
    align-items: stretch !important;
    grid-auto-rows: minmax(210px, auto) !important;
}

.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card {
    min-height: 210px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 22px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card p {
    margin-bottom: 18px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card a {
    margin-top: auto !important;
    align-self: flex-start !important;
}

@media (max-width: 960px) {
    .matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-grid,
    .matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card {
        min-height: 0 !important;
        height: auto !important;
    }
}

/* =========================================================
   247ChatMate — 5-A-20B split-page repetition cleanup
   Scope: visual/layout only.
   - Removes repeated second intro panels on Setup, Appearance & pages,
     Visitor buttons, Plan & licence and Help.
   - Tightens split-page content spacing after the repeated panels are removed.
   - Keeps the left sidebar untouched.
   - Preserves Dashboard layout, widget, chips, lead routing, licence logic,
     counters, storage, remote calls and save handling.
========================================================= */

/* Hide the repeated second heading card on every split page after the topbar. */
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel-heading,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-admin-panel-heading {
    display: none !important;
}

/* Let split-page content sit directly under the topbar with a clean rhythm. */
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-main {
    gap: 10px !important;
}

/* Remove forced tall surfaces that created empty lower space on non-dashboard pages. */
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel .matewa-settings-card,
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel .matewa-plan-access-shell,
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-panel .matewa-chip-studio-card,
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-core-settings-shell,
.matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-help-grid {
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
}

/* Setup page: keep only the four setup panels; page/display targeting stays on Appearance & pages. */
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel--wide {
    display: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-shell {
    min-height: 0 !important;
    padding: 18px !important;
    display: block !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: auto !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel {
    min-height: 0 !important;
    height: auto !important;
    padding: 18px !important;
}

/* Appearance & pages: show the display/page panel as a single expandable-feeling card, without the old step number. */
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-shell {
    min-height: 0 !important;
    padding: 18px !important;
    display: block !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-panel--wide {
    min-height: 0 !important;
    height: auto !important;
    padding: 20px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-panel--wide .matewa-panel-step {
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    border-radius: 999px !important;
    background: #268f2b !important;
    box-shadow: 0 0 0 5px rgba(38, 143, 43, 0.10) !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-targeting-box {
    margin-top: 16px !important;
    padding: 16px !important;
    border-radius: 18px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-checkbox-list {
    max-height: clamp(210px, 38vh, 420px) !important;
    overflow: auto !important;
    padding-right: 4px !important;
}

/* Visitor buttons: after removing the duplicate intro strip, keep the studio balanced and pulled up. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-chip-studio-card {
    min-height: 0 !important;
    padding-top: 22px !important;
}

/* Plan & licence: remove forced dead space and align the six status boxes consistently. */
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-shell {
    min-height: 0 !important;
    padding: 22px !important;
}

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

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circles {
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle {
    min-height: 92px !important;
    height: 100% !important;
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    align-items: center !important;
    justify-items: center !important;
    text-align: center !important;
    padding: 11px 9px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle strong,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle span {
    width: 100% !important;
    max-width: 118px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

/* Help page: keep the three cards neat, not stretched to the bottom of the viewport. */
.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-grid {
    min-height: 0 !important;
    height: auto !important;
    align-items: stretch !important;
    gap: 16px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card {
    min-height: 220px !important;
    height: auto !important;
    padding: 22px !important;
}

@media (max-width: 1180px) {
    .matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-grid {
        grid-template-columns: 1fr !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circles {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 960px) {
    .matewa-dashboard-page:not([data-matewa-active-panel="dashboard"]) .matewa-admin-main {
        gap: 12px !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-shell,
    .matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-shell,
    .matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-shell {
        padding: 16px !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circles {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   247ChatMate — 5-A-20C plan/display uniformity polish
   Scope: Plan & licence and Appearance & pages only.
   - Keeps Setup and Visitor button spacing untouched.
   - Tightens Plan & licence first/second box rhythm.
   - Normalises plan sub-box width, typography and alignment.
   - Normalises the Display pages/page-targeting box so it feels expandable
     and visually consistent when many pages are present.
   CSS-only; no settings, save, licence, widget, chip or lead logic changes.
========================================================= */

/* Plan & licence: cleaner rhythm before the first and second content areas. */
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-shell {
    padding: 20px !important;
    border-radius: 24px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-shell > h2 {
    margin: 0 0 12px !important;
    font-size: 21px !important;
    line-height: 1.16 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr) !important;
    gap: 14px !important;
    margin: 0 0 14px !important;
    padding: 16px !important;
    border-radius: 20px !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview__copy,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview__next {
    min-width: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview__copy h3 {
    margin: 6px 0 7px !important;
    font-size: 22px !important;
    line-height: 1.12 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview__copy p,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview__next strong {
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview__next {
    min-height: 0 !important;
    justify-content: center !important;
    padding: 14px !important;
    border-radius: 18px !important;
}

/* Plan & licence: make the six sub-boxes feel like a uniform card set. */
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circles {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 0 14px !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 92px !important;
    height: auto !important;
    display: grid !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 6px !important;
    padding: 13px 14px !important;
    border-radius: 18px !important;
    text-align: center !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle strong,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle span {
    display: block !important;
    width: 100% !important;
    max-width: 190px !important;
    margin: 0 auto !important;
    text-align: center !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle strong {
    color: #166534 !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    letter-spacing: 0.01em !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle span {
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.28 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-sections {
    gap: 10px !important;
    margin-top: 10px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-section > summary {
    min-height: 50px !important;
    padding: 13px 16px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-section > summary span {
    font-size: 13.5px !important;
    line-height: 1.18 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-section > summary small {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
}

/* Appearance & pages: make the Display pages area match the wider admin card system. */
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-panel--wide {
    width: 100% !important;
    padding: 20px !important;
    border-radius: 20px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-panel-heading {
    margin-bottom: 14px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-panel-heading h3 {
    font-size: 15px !important;
    line-height: 1.18 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-panel-heading p,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-targeting-box,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-checkbox-title,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-checkbox-url {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-targeting-box {
    width: 100% !important;
    max-width: none !important;
    margin-top: 14px !important;
    padding: 16px !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-checkbox-list {
    width: 100% !important;
    max-height: clamp(220px, 42vh, 440px) !important;
    overflow: auto !important;
    padding: 8px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-checkbox-row {
    min-height: 50px !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-checkbox-row + .matewa-page-checkbox-row {
    margin-top: 8px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-checkbox-title {
    color: #0f172a !important;
    font-weight: 850 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-checkbox-url {
    color: #64748b !important;
    font-weight: 650 !important;
}

@media (max-width: 1180px) {
    .matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circles {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 720px) {
    .matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circles {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   247ChatMate — 5-A-20F full admin visual uniformity polish
   Checkpoint: DASHBOARDBETAFINALVISUALUNIFORMITY5A20FLOCK

   Scope: Dashboard shell/supporting cards, Setup, Appearance & pages,
   Plan & licence and Help visual rhythm only.
   Deliberately avoids Visitor Button Studio selectors and behaviour.
   CSS-only; no PHP, JS, save, vertical, frontend widget, WhatsApp,
   lead-routing, licence, trial, storage or remote-call logic changes.
========================================================= */

.matewa-dashboard-page {
    --matewa-admin-radius-page: 26px;
    --matewa-admin-radius-card: 22px;
    --matewa-admin-radius-inner: 18px;
    --matewa-admin-panel-pad: 20px;
    --matewa-admin-card-pad: 18px;
    --matewa-admin-rhythm: 14px;
    --matewa-admin-border-soft: rgba(15, 23, 42, 0.10);
    --matewa-admin-border-faint: rgba(15, 23, 42, 0.075);
}

/* Shared shell/card rhythm for non-Visitor-Button pages only. */
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-shell,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-shell,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-shell {
    padding: var(--matewa-admin-panel-pad) !important;
    border-radius: var(--matewa-admin-radius-page) !important;
    border-color: var(--matewa-admin-border-soft) !important;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.052) !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-grid,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-grid {
    gap: var(--matewa-admin-rhythm) !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-panel,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-targeting-box,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview__next,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-section,
.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card {
    border-radius: var(--matewa-admin-radius-inner) !important;
    border-color: var(--matewa-admin-border-faint) !important;
    box-sizing: border-box !important;
}

/* Typography rhythm for Setup and Appearance panels. */
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-panel-heading,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-panel-heading {
    align-items: flex-start !important;
    gap: 11px !important;
    margin-bottom: 14px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-panel-heading h3,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-panel-heading h3,
.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card h3 {
    margin-top: 0 !important;
    font-size: 15px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.012em !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-panel-heading p,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-panel-heading p,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .description,
.matewa-dashboard-page[data-matewa-active-panel="display"] .description,
.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card p {
    font-size: 12px !important;
    line-height: 1.42 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-field-row,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-field-row {
    align-items: start !important;
    gap: 13px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-field-label,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-field-label {
    margin-top: 8px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}

/* Appearance & pages: cleaner green bullet/pill and expandable page list rhythm. */
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-panel--wide .matewa-panel-step {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    margin-top: 3px !important;
    border-radius: 999px !important;
    background: #268f2b !important;
    box-shadow: 0 0 0 6px rgba(38, 143, 43, 0.10) !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-targeting-box {
    margin-top: 14px !important;
    padding: var(--matewa-admin-card-pad) !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-checkbox-list {
    max-height: clamp(240px, 44vh, 480px) !important;
    padding: 9px !important;
    border-radius: 16px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-page-checkbox-row {
    min-height: 48px !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
}

/* Plan & licence: intentional rhythm between overview, six status boxes and details. */
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-shell {
    display: grid !important;
    gap: 14px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-shell > h2 {
    margin: 0 !important;
    font-size: 21px !important;
    line-height: 1.15 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview {
    margin: 0 !important;
    padding: 18px !important;
    gap: 14px !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview__copy {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview__copy h3 {
    margin: 8px 0 7px !important;
    font-size: 22px !important;
    line-height: 1.12 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview__copy p,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview__next strong {
    font-size: 13px !important;
    line-height: 1.42 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview__next {
    min-height: 0 !important;
    padding: 16px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circles {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle {
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    align-content: center !important;
    align-items: center !important;
    justify-items: center !important;
    min-height: 94px !important;
    height: auto !important;
    padding: 14px 15px !important;
    text-align: center !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle strong,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle span {
    width: 100% !important;
    max-width: 210px !important;
    margin: 0 auto !important;
    text-align: center !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle strong {
    font-size: 11.5px !important;
    line-height: 1.12 !important;
    letter-spacing: 0.015em !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle span {
    font-size: 12px !important;
    line-height: 1.28 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-sections {
    gap: 10px !important;
    margin-top: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-section > summary {
    min-height: 50px !important;
    padding: 13px 16px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-section > summary span {
    font-size: 13.5px !important;
    line-height: 1.18 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-section > summary small {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
}

/* Help: balanced three-card row without forced empty depth. */
.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    min-height: 0 !important;
    height: auto !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-height: 206px !important;
    height: auto !important;
    padding: 20px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card > .dashicons {
    width: 38px !important;
    height: 38px !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card p {
    margin-bottom: 16px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card a {
    margin-top: auto !important;
    align-self: flex-start !important;
    min-height: 38px !important;
    padding: 9px 14px !important;
    border-radius: 12px !important;
}

/* CTA/button rhythm outside the Visitor Button Studio. */
.matewa-admin-topbar .button,
.matewa-admin-topbar .matewa-admin-ghost-button,
.matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-shell .button,
.matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-shell .button,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-shell .button,
.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card a {
    border-radius: 12px !important;
    font-weight: 850 !important;
}

@media (max-width: 1180px) {
    .matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circles,
    .matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 960px) {
    .matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-shell,
    .matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-shell,
    .matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-shell {
        padding: 16px !important;
        border-radius: 22px !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="setup"] .matewa-core-settings-panel,
    .matewa-dashboard-page[data-matewa-active-panel="display"] .matewa-core-settings-panel,
    .matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card {
        padding: 16px !important;
    }
}

@media (max-width: 720px) {
    .matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circles,
    .matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   247ChatMate — 5-A-20F-1 Visitor Button Studio alignment recovery
   Scope: visual containment only for the Studio card/wrappers plus
   admin chip mirror sizing. No save, JSON, frontend widget, WhatsApp,
   lead-routing, licence, trial, counter, storage or remote-call logic.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card {
    padding: var(--matewa-admin-panel-pad, 20px) !important;
    border-radius: var(--matewa-admin-radius-page, 26px) !important;
    border-color: var(--matewa-admin-border-soft, rgba(15, 23, 42, 0.10)) !important;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.052) !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-header {
    margin-bottom: 16px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card h2 {
    margin: 0 0 6px !important;
    font-size: 21px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.018em !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-intro {
    max-width: 720px !important;
    font-size: 12px !important;
    line-height: 1.42 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-layout {
    gap: 14px !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-panel {
    min-height: 0 !important;
    padding: var(--matewa-admin-card-pad, 18px) !important;
    border-radius: var(--matewa-admin-radius-inner, 18px) !important;
    border-color: var(--matewa-admin-border-faint, rgba(15, 23, 42, 0.075)) !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-panel-header {
    margin-bottom: 14px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-panel-header h3 {
    margin-top: 0 !important;
    font-size: 15px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.012em !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-panel-header p,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-editor-subtle,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-preview-subtle,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-editor-helper {
    font-size: 12px !important;
    line-height: 1.42 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section #matewa-manual-chip-preview-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-edit-grid {
    width: 318px !important;
    max-width: 318px !important;
    min-width: 318px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 7px !important;
    row-gap: 7px !important;
    margin: 10px auto 0 !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section #matewa-manual-business-type-preview-wrap .matewa-chip-editor-frame {
    width: 318px !important;
    max-width: 318px !important;
    min-width: 318px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-edit-column > .matewa-chip-editor-frame {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-edit-grid .matewa-chip-editor-chip textarea {
    height: auto !important;
    max-height: 30px !important;
    white-space: pre-wrap !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-edit-grid .matewa-chip-editor-measure {
    white-space: pre-wrap !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-edit-column .matewa-chip-editor-helper {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 14px !important;
    padding: 10px 11px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
}

@media (max-width: 960px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card {
        padding: 16px !important;
        border-radius: 22px !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-panel {
        padding: 16px !important;
    }
}

@media (max-width: 420px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section #matewa-manual-business-type-preview-wrap .matewa-chip-editor-frame,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section #matewa-manual-chip-preview-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-edit-grid {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 318px !important;
    }
}


/* =========================================================
   247ChatMate — 5-A-20F-2 Visitor Button Studio column/label recovery
   Scope: admin Visitor Button Studio visual alignment only. Preserves
   save handling, vertical JSON, frontend render, WhatsApp handoff,
   lead routing, licence/trial, counters, storage and remote calls.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-business-panel,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-editor-panel {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-current-context {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 126px !important;
    margin: 0 0 30px !important;
    padding: 0 !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-selector-field:not(.matewa-selector-action),
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-current-context-item {
    height: 57px !important;
    min-height: 57px !important;
    max-height: 57px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 32px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-preview-heading,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-editor-subtle {
    display: block !important;
    width: 318px !important;
    max-width: 318px !important;
    min-width: 318px !important;
    min-height: 19px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    color: #14532d !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.45 !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-editor-subtle {
    margin-top: 32px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-preview-heading {
    margin-top: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap .matewa-chip-editor-frame {
    width: 318px !important;
    max-width: 318px !important;
    min-width: 318px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column > .matewa-chip-editor-frame {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* 5-A-20F-3 editable frame stays full width so the helper/info box is not narrowed. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column > .matewa-chip-editor-frame {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 318px !important;
    max-width: 318px !important;
    min-width: 318px !important;
    column-gap: 7px !important;
    row-gap: 7px !important;
    margin: 0 auto !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 6px 7px !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(5, 122, 41, 0.28) !important;
    background: #ffffff !important;
    color: #057a29 !important;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.055) !important;
    overflow: hidden !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid .matewa-chip-editor-chip span,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip textarea,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-measure {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    max-height: 30px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: 11.2px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    overflow: hidden !important;
    box-shadow: none !important;
    resize: none !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid .matewa-chip-editor-chip span {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip textarea,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-measure {
    white-space: pre-wrap !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-editor-helper,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-studio-save-actions {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 860px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-layout {
        grid-template-columns: 1fr !important;
    }

    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-editor-subtle {
        margin-top: 0 !important;
    }
}

@media (max-width: 420px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-preview-heading,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-editor-subtle,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap .matewa-chip-editor-frame,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 318px !important;
    }
}


/* =========================================================
   247ChatMate — 5-A-20F-3 Chip Studio frontend-fit correction
   Checkpoint: CHIPSTUDIOVISUALRESTRUCTURE5A12BLOCK
   Scope: Visitor Button Studio visual fit only.
   Uses the frontend chip contract: 318px grid, 3 columns, 8px gaps,
   52px chips, 12px labels, 34px two-line clamp.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-panel-header {
    min-height: 58px !important;
    margin-bottom: 14px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-selector-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-current-context {
    min-height: 126px !important;
    margin: 0 0 32px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column {
    margin-top: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-preview-heading,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-editor-subtle {
    width: 318px !important;
    max-width: 318px !important;
    min-width: 318px !important;
    margin: 0 auto 10px !important;
    line-height: 1.45 !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap .matewa-chip-editor-frame,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid {
    width: 318px !important;
    max-width: 318px !important;
    min-width: 318px !important;
    box-sizing: border-box !important;
}

/* 5-A-20F-3 editable frame stays full width so the helper/info box is not narrowed. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column > .matewa-chip-editor-frame {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 auto !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 6px 8px !important;
    border-radius: 14px !important;
    border: 1.5px solid #25D366 !important;
    color: #25D366 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid .matewa-chip-editor-chip span,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip textarea,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-measure {
    max-height: 34px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    overflow: hidden !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid .matewa-chip-editor-chip span {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip textarea,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-measure {
    white-space: pre-wrap !important;
}

@media (max-width: 420px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-preview-heading,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-editor-subtle,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap .matewa-chip-editor-frame,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column > .matewa-chip-editor-frame,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 318px !important;
    }
}


/* =========================================================
   247ChatMate — 5-A-20F-4 Chip Studio textarea/helper safety
   Scope: Visitor Button Studio visual fit only.
   - Single-line editable chip labels stay vertically centred.
   - Helper/info boxes are allowed to grow so zoom/wrapping never hides text.
   No save, JSON, frontend widget, WhatsApp, lead, licence, counter, storage
   or remote-call logic changes.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip textarea {
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    align-self: center !important;
    overflow: hidden !important;
    resize: none !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-measure {
    line-height: 1.25 !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-editor-helper,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-preview-subtle,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-preview-action-note {
    height: auto !important;
    min-height: 72px !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    display: block !important;
    align-items: flex-start !important;
    line-height: 1.38 !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-editor-helper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 11px 12px !important;
    border-radius: 14px !important;
}

/* =========================================================
   247ChatMate — 5-A-20F-6 Chip Studio locked frontend fit
   Scope: Visitor Button Studio only.
   Contract source: frontend .matewa-chip-group / .matewa-chip / .matewa-chip-label.
   - 318px grid, 3 equal columns, 8px gaps.
   - 52px chips, 6px 8px padding, 14px radius.
   - 12px / 1.25 labels, two-line 34px maximum.
   - Single-line editable labels centre vertically; wrapped labels keep line 2.
   - Helper/info boxes grow naturally at browser zoom changes.
   - Green confirm buttons share the same bottom baseline.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 318px !important;
    min-width: 318px !important;
    max-width: 318px !important;
    gap: 8px !important;
    margin: 0 auto !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-preview-heading,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-editor-subtle {
    display: block !important;
    width: 318px !important;
    min-width: 318px !important;
    max-width: 318px !important;
    min-height: 19px !important;
    margin: 0 auto 10px !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.45 !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid .matewa-chip-editor-chip,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 6px 8px !important;
    border-radius: 14px !important;
    border: 1.5px solid #25D366 !important;
    background: #ffffff !important;
    color: #25D366 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid .matewa-chip-editor-chip span {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    width: 100% !important;
    max-height: 34px !important;
    overflow: hidden !important;
    line-height: 1.25 !important;
    text-align: center !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip textarea,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-measure {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    font-family: inherit !important;
    text-align: center !important;
    white-space: pre-wrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    overflow: hidden !important;
    resize: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* Default editable chips to the safe two-line box; JS only reduces definite one-line labels. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip textarea {
    display: block !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    align-self: center !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip.is-single-line textarea {
    height: 15px !important;
    min-height: 15px !important;
    max-height: 15px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid .matewa-chip-editor-chip.is-two-line textarea {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap .matewa-chip-preview-subtle,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-editor-helper {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 72px !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    line-height: 1.38 !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap .matewa-chip-preview-final-actions,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-studio-save-actions {
    margin-top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap .matewa-chip-preview-final-actions .button-primary,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-studio-save-actions .button-primary {
    width: 100% !important;
    min-height: 43px !important;
    justify-content: center !important;
    text-align: center !important;
}

@media (max-width: 420px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-preview-heading,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-editor-subtle,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-chip-preview-grid,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-grid {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 318px !important;
    }
}

/* =========================================================
   247ChatMate — 5-A-20F-7 non-chip spacing and page rhythm correction
   Scope: spacing/card rhythm only for Visitor Buttons wrappers, Plan & licence,
   and Help. Deliberately does not target chip grids, chip buttons, editable
   chip textareas, chip labels, chip JS, save logic, frontend widget, WhatsApp,
   lead-routing, licence/trial logic, counters, storage or remote calls.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] .matewa-admin-main,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-admin-main,
.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-main {
    gap: 8px !important;
}

/* Visitor Buttons: keep the Studio card spacing consistent without touching chip rules. */
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card {
    margin-top: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-layout {
    gap: 14px !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-business-panel,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-editor-panel {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding: 18px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-preview-final-actions,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-save-actions {
    margin-top: auto !important;
}

/* Plan & licence: close the top rhythm and make the status/detail boxes use the full available width. */
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-shell {
    width: 100% !important;
    max-width: none !important;
    padding: 18px !important;
    gap: 10px !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-overview {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 16px 18px !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circles {
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 92px !important;
    padding: 14px 18px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle strong,
.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circle span {
    max-width: none !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-sections {
    width: 100% !important;
    max-width: none !important;
    gap: 10px !important;
    margin-top: 4px !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-section {
    width: 100% !important;
    max-width: none !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-access-section > summary {
    min-height: 54px !important;
    padding: 14px 18px !important;
}

/* Help: close the gap beneath the top header and keep the three cards balanced. */
.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-grid {
    width: 100% !important;
    max-width: none !important;
    gap: 14px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    align-items: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-card {
    min-height: 194px !important;
    padding: 20px !important;
    border-radius: 22px !important;
    box-sizing: border-box !important;
}

@media (max-width: 1180px) {
    .matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circles,
    .matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    .matewa-dashboard-page[data-matewa-active-panel="plan"] .matewa-plan-status-circles,
    .matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-help-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   247ChatMate — 5-A-20F-8 Visitor Buttons action gap lock
   Scope: Visitor Button Studio spacing only.
   - Does not target chip grids, chip buttons, chip labels or editable chip textareas.
   - Keeps the left Confirm Business Type button and right Confirm and Save button
     on the same bottom action baseline.
   - Gives the helper/info boxes a guaranteed breathing gap before the actions.
   - Helper/info boxes keep natural height so browser zoom cannot clip text.
========================================================= */

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card {
    --matewa-vb-helper-action-gap: 14px;
    --matewa-vb-action-gap: 8px;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-business-panel,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-editor-panel {
    align-self: stretch !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap .matewa-chip-preview-subtle,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-editor-helper {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap .matewa-chip-preview-final-actions,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-studio-save-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--matewa-vb-action-gap) !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: auto !important;
    padding-top: var(--matewa-vb-helper-action-gap) !important;
    box-sizing: border-box !important;
}

.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-save-actions .button,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-preview-final-actions .button {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 860px) {
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card #matewa-manual-business-type-preview-wrap .matewa-chip-preview-final-actions,
    .matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section .matewa-chip-studio-card .matewa-chip-studio-edit-column .matewa-chip-studio-save-actions {
        margin-top: var(--matewa-vb-helper-action-gap) !important;
        padding-top: 0 !important;
    }
}


/* =========================================================
   247ChatMate — Phase 5-A-20F-11 save notice stability pass
   Scope: save-confirmation placement only. No chips, chip JS,
   frontend widget, licence, lead routing, storage or save logic changes.
========================================================= */

.matewa-dashboard-page .matewa-admin-topbar {
    position: relative !important;
}

.matewa-dashboard-page .matewa-admin-topbar-actions {
    position: relative !important;
    z-index: 4 !important;
    flex-wrap: nowrap !important;
}

.matewa-dashboard-page .matewa-admin-save-confirmation {
    position: absolute !important;
    top: 50% !important;
    right: clamp(232px, 23vw, 336px) !important;
    z-index: 3 !important;
    width: max-content !important;
    max-width: min(360px, calc(100% - 520px)) !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    transform: translateY(-50%) !important;
    will-change: opacity !important;
    animation: matewa-save-confirmation-fixed-in 180ms ease-out both !important;
}

.matewa-dashboard-page .matewa-admin-save-confirmation.is-dismissing {
    transform: translateY(-50%) !important;
}

@keyframes matewa-save-confirmation-fixed-in {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

@media (max-width: 1120px) {
    .matewa-dashboard-page .matewa-admin-save-confirmation {
        right: 22px !important;
        top: calc(100% + 8px) !important;
        max-width: min(420px, calc(100vw - 56px)) !important;
        transform: none !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .matewa-dashboard-page .matewa-admin-save-confirmation.is-dismissing {
        transform: none !important;
    }

    @keyframes matewa-save-confirmation-fixed-in {
        from {
            opacity: 0;
            transform: translateY(-2px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 720px) {
    .matewa-dashboard-page .matewa-admin-topbar-actions {
        flex-wrap: wrap !important;
    }

    .matewa-dashboard-page .matewa-admin-save-confirmation {
        position: static !important;
        order: -1 !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        margin-bottom: 4px !important;
        transform: none !important;
    }
}

/* =========================================================
   247ChatMate — 5-A-20F-12 compact saved notice + no-overlap lock
   Scope: top-bar save notice only. No chip, widget, licence,
   lead routing, storage, dashboard counter or save-handler changes.
========================================================= */

.matewa-dashboard-page .matewa-admin-topbar {
    position: relative !important;
}

.matewa-dashboard-page .matewa-admin-topbar-actions {
    position: static !important;
    z-index: auto !important;
    flex-wrap: nowrap !important;
}

.matewa-dashboard-page .matewa-admin-save-confirmation {
    position: absolute !important;
    top: 50% !important;
    right: clamp(244px, 25vw, 320px) !important;
    left: auto !important;
    z-index: 2 !important;
    width: auto !important;
    min-width: 64px !important;
    max-width: 86px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 5px 10px !important;
    gap: 5px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    justify-content: center !important;
    pointer-events: none !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
    transform: translateY(-50%) !important;
    animation: matewa-save-confirmation-compact-in 120ms ease-out both !important;
    will-change: opacity !important;
}

.matewa-dashboard-page .matewa-admin-save-confirmation .dashicons {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    font-size: 14px !important;
    line-height: 14px !important;
}

.matewa-dashboard-page .matewa-admin-save-confirmation.is-dismissing {
    transform: translateY(-50%) !important;
}

@keyframes matewa-save-confirmation-compact-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 980px) {
    .matewa-dashboard-page .matewa-admin-save-confirmation {
        right: 218px !important;
        min-width: 56px !important;
        max-width: 68px !important;
        padding-right: 8px !important;
        padding-left: 8px !important;
        font-size: 10.5px !important;
    }
}

@media (max-width: 760px) {
    .matewa-dashboard-page .matewa-admin-save-confirmation {
        top: 10px !important;
        right: 12px !important;
        transform: none !important;
    }

    .matewa-dashboard-page .matewa-admin-save-confirmation.is-dismissing {
        transform: none !important;
    }
}

/* =========================================================
   247ChatMate — 5-A-21A expert visual calibration pass
   Checkpoint: EXPERTVISUALCALIBRATION5A21ALOCK

   Scope:
   - Admin shell, typography, spacing rhythm, contrast, focus states,
     help-page composition and save-state calmness.
   - Scaffold-preserving, function-preserving, visual-only refinement.

   Does not:
   - Change save handling, options, licensing, lead routing, widget output,
     frontend rendering, vertical JSON, WhatsApp handoff or any chip system.
   - Intentionally avoids chip-specific selectors.
========================================================= */

.matewa-dashboard-page {
    --matewa-admin-radius-card: 24px;
    --matewa-admin-radius-inner: 18px;
    --matewa-admin-space-2: 8px;
    --matewa-admin-space-3: 12px;
    --matewa-admin-space-4: 16px;
    --matewa-admin-space-6: 24px;
    --matewa-admin-space-8: 32px;
    --matewa-admin-readable-muted: #334155;
    --matewa-admin-readable-soft: #64748b;
    --matewa-admin-focus-ring: rgba(34, 197, 94, 0.34);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.matewa-dashboard-page .matewa-admin-main {
    gap: var(--matewa-admin-space-4);
}

.matewa-dashboard-page .matewa-admin-topbar,
.matewa-dashboard-page .matewa-admin-panel-heading,
.matewa-dashboard-page .matewa-core-settings-shell,
.matewa-dashboard-page .matewa-plan-access-shell,
.matewa-dashboard-page .matewa-admin-help-card {
    border-radius: var(--matewa-admin-radius-card);
}

.matewa-dashboard-page .matewa-admin-topbar {
    padding: 20px 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.045);
}

.matewa-dashboard-page .matewa-admin-topbar h2,
.matewa-dashboard-page .matewa-admin-panel-heading h2 {
    letter-spacing: -0.045em;
}

.matewa-dashboard-page .matewa-admin-topbar p,
.matewa-dashboard-page .matewa-admin-panel-heading p,
.matewa-dashboard-page .matewa-settings-card p.description,
.matewa-dashboard-page .matewa-core-panel-heading p,
.matewa-dashboard-page .matewa-field-help,
.matewa-dashboard-page .description {
    color: var(--matewa-admin-readable-muted);
    line-height: 1.55;
}

.matewa-dashboard-page .matewa-field-help,
.matewa-dashboard-page .description {
    font-size: 12.5px;
}

.matewa-dashboard-page .matewa-core-settings-panel,
.matewa-dashboard-page .matewa-plan-access-section,
.matewa-dashboard-page .matewa-admin-help-card,
.matewa-dashboard-page .matewa-choice-card {
    border-radius: var(--matewa-admin-radius-inner);
}

.matewa-dashboard-page .matewa-core-settings-grid,
.matewa-dashboard-page .matewa-admin-help-grid {
    gap: var(--matewa-admin-space-4);
}

.matewa-dashboard-page .matewa-core-settings-panel {
    padding: var(--matewa-admin-space-6);
}

.matewa-dashboard-page .matewa-core-panel-heading {
    margin-bottom: var(--matewa-admin-space-4);
}

.matewa-dashboard-page .matewa-field-stack,
.matewa-dashboard-page .matewa-choice-stack {
    gap: var(--matewa-admin-space-4);
}

.matewa-dashboard-page .matewa-field-row {
    gap: var(--matewa-admin-space-4);
}

.matewa-dashboard-page .matewa-field-label,
.matewa-dashboard-page label {
    letter-spacing: -0.01em;
}

.matewa-dashboard-page input[type="text"],
.matewa-dashboard-page input[type="email"],
.matewa-dashboard-page input[type="url"],
.matewa-dashboard-page input[type="tel"],
.matewa-dashboard-page input[type="password"],
.matewa-dashboard-page select,
.matewa-dashboard-page textarea {
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.matewa-dashboard-page input[type="text"]:focus,
.matewa-dashboard-page input[type="email"]:focus,
.matewa-dashboard-page input[type="url"]:focus,
.matewa-dashboard-page input[type="tel"]:focus,
.matewa-dashboard-page input[type="password"]:focus,
.matewa-dashboard-page select:focus,
.matewa-dashboard-page textarea:focus {
    border-color: rgba(34, 197, 94, 0.56) !important;
    box-shadow: 0 0 0 3px var(--matewa-admin-focus-ring) !important;
    outline: none !important;
}

.matewa-dashboard-page .matewa-admin-ghost-button,
.matewa-dashboard-page .matewa-admin-save-button,
.matewa-dashboard-page .matewa-core-settings-shell .button-primary,
.matewa-dashboard-page .matewa-admin-help-card a {
    transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.matewa-dashboard-page .matewa-admin-ghost-button:hover,
.matewa-dashboard-page .matewa-admin-save-button:hover,
.matewa-dashboard-page .matewa-core-settings-shell .button-primary:hover,
.matewa-dashboard-page .matewa-admin-help-card a:hover {
    transform: translateY(-1px);
}

.matewa-dashboard-page .matewa-admin-help-grid {
    align-items: stretch;
}

.matewa-dashboard-page .matewa-admin-help-card {
    min-height: 196px;
    display: flex;
    flex-direction: column;
    padding: var(--matewa-admin-space-6);
}

.matewa-dashboard-page .matewa-admin-help-card h3 {
    font-size: 16px;
    letter-spacing: -0.025em;
}

.matewa-dashboard-page .matewa-admin-help-card p {
    color: var(--matewa-admin-readable-muted);
    line-height: 1.55;
}

.matewa-dashboard-page .matewa-admin-help-card a {
    margin-top: auto;
    align-self: flex-start;
}

.matewa-dashboard-page[data-matewa-active-panel="help"] .matewa-admin-panel[data-matewa-admin-panel="help"] {
    min-height: 360px;
}

.matewa-dashboard-page .matewa-admin-save-confirmation {
    contain: layout paint;
    transition: opacity 120ms ease !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] {
    --matewa-admin-readable-muted: #d6e2ee;
    --matewa-admin-readable-soft: #b9c7d7;
    --matewa-admin-focus-ring: rgba(74, 222, 128, 0.30);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-topbar,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-panel-heading,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-core-settings-shell,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-access-shell,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-help-card {
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.20);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-core-settings-panel,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-plan-access-section,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-choice-card,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-help-card {
    border-color: rgba(148, 163, 184, 0.20);
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-topbar p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-panel-heading p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-settings-card p.description,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-core-panel-heading p,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-field-help,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .description,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-admin-help-card p {
    color: var(--matewa-admin-readable-muted) !important;
}

.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="text"],
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="email"],
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="url"],
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="tel"],
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] input[type="password"],
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] select,
.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] textarea {
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.32) !important;
    background-color: rgba(2, 6, 23, 0.30) !important;
}

@media (max-width: 782px) {
    .matewa-dashboard-page .matewa-admin-topbar {
        padding: 18px;
    }

    .matewa-dashboard-page .matewa-core-settings-panel,
    .matewa-dashboard-page .matewa-admin-help-card {
        padding: 20px;
    }
}

/* =========================================================
   247ChatMate — 5A21K base top-card gap ownership
   Admin shell spacing only. The topbar-to-first-card gap is owned by
   the active top-level wrapper, not by page internals.
========================================================= */

.matewa-dashboard-page {
    --matewa-admin-visual-top-gap: 14px;
}

.matewa-dashboard-page .matewa-admin-main {
    gap: 0 !important;
    row-gap: 0 !important;
}

.matewa-dashboard-page .matewa-admin-topbar {
    margin-bottom: 0 !important;
}

.matewa-dashboard-page #matewa-admin-panel-dashboard,
.matewa-dashboard-page #matewa-plan-access-section,
.matewa-dashboard-page #matewa-admin-panel-help,
.matewa-dashboard-page #matewa-settings-form {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] #matewa-admin-panel-dashboard,
.matewa-dashboard-page[data-matewa-active-panel="plan"] #matewa-plan-access-section,
.matewa-dashboard-page[data-matewa-active-panel="help"] #matewa-admin-panel-help,
.matewa-dashboard-page[data-matewa-active-panel="setup"] #matewa-settings-form,
.matewa-dashboard-page[data-matewa-active-panel="display"] #matewa-settings-form,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-settings-form {
    margin-top: var(--matewa-admin-visual-top-gap) !important;
}

.matewa-dashboard-page #matewa-admin-panel-dashboard > .matewa-dashboard-value-card,
.matewa-dashboard-page #matewa-admin-panel-setup > .matewa-core-settings-shell,
.matewa-dashboard-page #matewa-chip-labels-section > .matewa-chip-studio-card,
.matewa-dashboard-page #matewa-plan-access-section .matewa-dashboard-lower-accordions,
.matewa-dashboard-page #matewa-admin-panel-help > .matewa-admin-help-grid {
    margin-top: 0 !important;
}


/* =========================================================
   247ChatMate — 5A21L rear-card top gap support
   Admin CSS support layer. Expert visual polish remains the final cascade.
========================================================= */

.matewa-dashboard-page {
    --matewa-admin-visual-top-gap: 14px;
}

.matewa-dashboard-page .matewa-admin-main {
    gap: 0 !important;
    row-gap: 0 !important;
}

.matewa-dashboard-page .matewa-admin-topbar,
.matewa-dashboard-page #matewa-admin-panel-dashboard,
.matewa-dashboard-page #matewa-plan-access-section,
.matewa-dashboard-page #matewa-admin-panel-help,
.matewa-dashboard-page #matewa-settings-form,
.matewa-dashboard-page #matewa-admin-panel-setup,
.matewa-dashboard-page #matewa-chip-labels-section,
.matewa-dashboard-page .matewa-dashboard-lower-accordions {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

.matewa-dashboard-page[data-matewa-active-panel="dashboard"] #matewa-admin-panel-dashboard > .matewa-dashboard-value-card,
.matewa-dashboard-page[data-matewa-active-panel="setup"] #matewa-admin-panel-setup > .matewa-core-settings-shell,
.matewa-dashboard-page[data-matewa-active-panel="display"] #matewa-admin-panel-setup > .matewa-core-settings-shell,
.matewa-dashboard-page[data-matewa-active-panel="buttons"] #matewa-chip-labels-section > .matewa-chip-studio-card,
.matewa-dashboard-page[data-matewa-active-panel="plan"] #matewa-plan-access-section .matewa-plan-access-shell,
.matewa-dashboard-page[data-matewa-active-panel="help"] #matewa-admin-panel-help > .matewa-admin-help-grid {
    margin-top: var(--matewa-admin-visual-top-gap) !important;
}


.matewa-dashboard-page[data-matewa-dashboard-theme="dark"] .matewa-license-save-refresh__help {
    color: #cbd5e1;
}
