:root {
    --mm-canvas: #100918;
    --mm-surface: #2a174a;
    --mm-surface-raised: #35205d;
    --mm-text: #f8f5ff;
    --mm-muted: #b8aecb;
    --mm-violet: #c150ff;
    --mm-cyan: #28d2ff;
    --mm-lime: #a55cff;
    --mm-gold: #e5bc2a;
    --mm-danger: #ff657a;
    --mm-sidebar-width: 270px;
    --mm-type-xs: 12px;
    --mm-type-sm: 13px;
    --mm-type-base: 15px;
    --mm-type-md: 16px;
    --mm-type-lg: 20px;
    --mm-type-title: 30px;
    --mm-border: rgba(193, 80, 255, .34);
    --mm-border-strong: rgba(193, 80, 255, .56);
    --mm-violet-soft: rgba(193, 80, 255, .18);
    --mm-cyan-soft: rgba(40, 210, 255, .14);
    --mm-lime-soft: rgba(165, 92, 255, .12);
    --mm-gold-soft: rgba(229, 188, 42, .14);
    --mm-danger-soft: rgba(255, 101, 122, .13);
    --mm-shadow: 0 18px 42px rgba(0, 0, 0, .22);
    --mm-radius-sm: 8px;
    --mm-radius: 12px;
    --mm-radius-lg: 16px;
    --bg: var(--mm-canvas);
    --bg-soft: #1a0e2b;
    --sidebar: #12091f;
    --panel: var(--mm-surface);
    --panel-soft: var(--mm-surface-raised);
    --border: var(--mm-border);
    --border-strong: var(--mm-border-strong);
    --text: var(--mm-text);
    --muted: var(--mm-muted);
    --purple: var(--mm-violet);
    --purple-soft: var(--mm-violet-soft);
    --blue: var(--mm-cyan);
    --blue-soft: var(--mm-cyan-soft);
    --green: var(--mm-lime);
    --green-soft: var(--mm-lime-soft);
    --gold: var(--mm-gold);
    --gold-soft: var(--mm-gold-soft);
    --action: var(--mm-cyan);
    --action-soft: var(--mm-cyan-soft);
    --action-soft-hover:var(--mm-interaction-hover);
    --action-border: rgba(40, 210, 255, .48);
    --action-border-hover: rgba(40, 210, 255, .78);
    --action-text: #ddf9ff;
    --sidebar-width: var(--mm-sidebar-width);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    color-scheme: dark;
}

body {
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(circle at 16% 5%, rgba(193, 80, 255, .18), transparent 32rem),
        radial-gradient(circle at 86% 8%, rgba(40, 210, 255, .07), transparent 28rem),
        linear-gradient(180deg, var(--mm-canvas) 0%, #08040d 100%);
    background-attachment: fixed;
    color: var(--mm-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: var(--mm-type-base);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
select {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

::selection {
    background: rgba(193, 80, 255, .34);
    color: #fff;
}

:focus-visible {
    outline: 2px solid #a55cff;
    outline-offset: 3px;
}

.mm-admin {
    --mm-nav-active-shadow: none;
    --mm-status-shadow: none;
    --mm-error-shadow: none;
    --mm-nav-group-active-shadow: none;
    --mm-nav-icon-filter: none;
    min-height: 100vh;
}

.mm-sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--mm-sidebar-width);
    padding: 24px 16px 18px;
    flex-direction: column;
    overflow-y: auto;
    background:
        radial-gradient(circle at 50% 0, rgba(193, 80, 255, .12), transparent 17rem),
        linear-gradient(180deg, rgba(18, 9, 31, .99), rgba(7, 4, 12, .99));
    border-right: 1px solid var(--mm-border);
    box-shadow: 14px 0 40px rgba(0, 0, 0, .18);
}

.mm-brand {
    display: flex;
    min-height: 82px;
    padding: 2px 5px 24px;
    align-items: center;
    justify-content: center;
}

.mm-brand-logo {
    display: block;
    width: 100%;
    max-width: 215px;
    height: auto;
    object-fit: contain;
}

.mm-panel-label {
    margin: 20px 0 10px;
    padding: 0 13px;
    color: var(--mm-violet);
    font-size: var(--mm-type-sm);
    font-weight: 850;
    letter-spacing: .13em;
    line-height: 1.3;
    text-transform: uppercase;
}

.mm-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.mm-nav-link {
    display: flex;
    width: 100%;
    min-height: 45px;
    padding: 9px 13px;
    align-items: center;
    gap: 11px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #aca4ba;
    font-size: var(--mm-type-md);
    font-weight: 680;
    line-height: 1.25;
    text-align: left;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
    white-space: nowrap;
}

.mm-nav-link:hover {
    background:var(--mm-interaction-hover);
    border-color:#A3B4C8;
    color:#F5F6FA;
}

.mm-nav-link.is-active {
    background: linear-gradient(90deg, rgba(193, 80, 255, .23), rgba(193, 80, 255, .08));
    border-color: rgba(193, 80, 255, .18);
    box-shadow: var(--mm-nav-active-shadow, inset 3px 0 0 var(--mm-violet));
    color: #ead8ff;
}

.mm-icon {
    display: inline-flex;
    min-width: 20px;
    align-items: center;
    justify-content: center;
    color: var(--mm-violet);
    font-size: var(--mm-type-md);
}

.mm-chevron {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    color: var(--mm-muted);
    transform-origin: center;
    transition: color .16s ease, transform .16s ease;
}

.mm-nav-group.is-open .mm-chevron {
    color: var(--mm-cyan);
    transform: rotate(180deg);
}

.mm-subnav {
    display: none;
    padding: 4px 0 7px 45px;
}

.mm-nav-group.is-open .mm-subnav {
    display: block;
}

.mm-subnav a {
    display: block;
    padding: 8px 6px;
    color: #9d94ad;
    font-size: var(--mm-type-base);
    font-weight: 600;
    line-height: 1.35;
    transition: color .16s ease;
    white-space: nowrap;
}

.mm-subnav a:hover,
.mm-subnav a.is-active {
    color:#F5F6FA;
}

.mm-sidebar-status {
    display: flex;
    margin-top: auto;
    padding: 18px 8px 4px;
    align-items: center;
    gap: 9px;
    border-top: 1px solid var(--mm-border);
}

.mm-status-witch {
    display: block;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    object-fit: contain;
}

.mm-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--mm-lime);
    box-shadow: var(--mm-status-shadow, 0 0 12px rgba(165, 92, 255, .55));
}

.mm-sidebar-status .mm-status-dot {
    margin-left: -4px;
}

.mm-sidebar-status > div {
    min-width: 0;
}

.mm-sidebar-status strong,
.mm-sidebar-status small {
    display: block;
}

.mm-sidebar-status strong {
    font-size: var(--mm-type-sm);
    line-height: 1.3;
    white-space: nowrap;
}

.mm-sidebar-status small {
    margin-top: 2px;
    color: var(--mm-muted);
    font-size: var(--mm-type-xs);
    line-height: 1.3;
}

/* Admin Hyperlinks Stay Flat In Every Interaction State */
.mm-admin a,
.mm-admin a:hover,
.mm-admin a:focus,
.mm-admin a:active {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;

    outline: 2px solid #CB78E6; outline-offset: 2px;
}

.mm-logout-form {
    margin: 0;
}

.mm-logout-icon {
    font-size: var(--mm-type-md);
}

.mm-section-kicker {
    display: block;
    margin: 0 0 6px;
    color: var(--mm-violet);
    font-size: var(--mm-type-sm);
    font-weight: 850;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.mm-muted {
    color: var(--mm-muted);
}

.mm-card,
.mm-stat-card,
.mm-action-card {
    background: linear-gradient(145deg, var(--mm-surface), var(--mm-surface-raised));
    border: 1px solid var(--mm-border);
    box-shadow: var(--mm-shadow);
}

.mm-card {
    overflow: hidden;
    border-radius: var(--mm-radius);
}

.mm-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.mm-card-header {
    display: flex;
    min-height: 64px;
    padding: 15px 21px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(90deg, rgba(193, 80, 255, .09), rgba(40, 210, 255, .025));
    border-bottom: 1px solid var(--mm-border);
}

.mm-card-header h2,
.mm-section-heading h2 {
    margin: 0;
    font-size: var(--mm-type-lg);
    font-weight: 680;
    line-height: 1.25;
}

.mm-card-header .mm-section-kicker,
.mm-section-heading .mm-section-kicker {
    margin-bottom: 4px;
}

.mm-card-header > a {
    color: var(--mm-cyan);
    font-size: var(--mm-type-sm);
    font-weight: 750;
}

.mm-card-header > a:hover {
    color:#F5F6FA;
}

.mm-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
    gap: 20px;
}

.mm-stat-card {
    position: relative;
    min-height: 142px;
    padding: 22px;
    overflow: hidden;
    border-radius: var(--mm-radius);
}

.mm-stat-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: var(--mm-violet);
    content: "";
}

.mm-stat-card.gold::before {
    background: var(--mm-gold);
}

.mm-stat-card.green::before {
    background: var(--mm-lime);
}

.mm-stat-card.blue::before {
    background: var(--mm-cyan);
}

.mm-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--mm-muted);
    font-size: var(--mm-type-base);
    font-weight: 750;
}

.mm-stat-icon {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--mm-violet-soft);
    border-radius: 10px;
    color: var(--mm-violet);
    font-size: 18px;
}

.gold .mm-stat-icon {
    background: var(--mm-gold-soft);
    color: var(--mm-gold);
}

.green .mm-stat-icon {
    background: var(--mm-lime-soft);
    color: var(--mm-lime);
}

.blue .mm-stat-icon {
    background: var(--mm-cyan-soft);
    color: var(--mm-cyan);
}

.mm-stat-card > strong {
    display: block;
    margin: 11px 0 4px;
    color: var(--mm-text);
    font-size: 32px;
    font-weight: 720;
    line-height: 1.15;
}

.mm-stat-card > small {
    color: var(--mm-muted);
    font-size: var(--mm-type-base);
    line-height: 1.45;
}

.mm-section-heading {
    margin-bottom: 12px;
}

.mm-quick-actions {
    margin-top: 26px;
}

.mm-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mm-action-card {
    display: flex;
    min-height: 86px;
    padding: 18px;
    align-items: center;
    gap: 12px;
    border-radius: var(--mm-radius);
    transition: border-color .16s ease, transform .16s ease;
}

.mm-action-card:hover {
    border-color:#A3B4C8;
    transform: translateY(-2px);
}

.mm-action-icon {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    background: var(--mm-violet-soft);
    border-radius: 10px;
    color: var(--mm-violet);
    font-size: 18px;
}

.mm-action-icon.gold {
    background: var(--mm-gold-soft);
    color: var(--mm-gold);
}

.mm-action-icon.green {
    background: var(--mm-lime-soft);
    color: var(--mm-lime);
}

.mm-action-icon.blue {
    background: var(--mm-cyan-soft);
    color: var(--mm-cyan);
}

.mm-action-card strong,
.mm-action-card span {
    display: block;
}

.mm-action-card strong {
    font-size: var(--mm-type-base);
}

.mm-action-card span {
    margin-top: 3px;
    color: var(--mm-muted);
    font-size: var(--mm-type-sm);
}

.mm-action-card b {
    margin-left: auto;
    color: #7f758d;
    font-size: 20px;
    font-weight: 400;
}

.mm-table-wrap {
    width: 100%;
    overflow-x: auto;
    scrollbar-color: rgba(193, 80, 255, .38) transparent;
}

th,
td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

th {
    color: #bbb2ca;
    font-size: var(--mm-type-sm);
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

td {
    color: #eeeaf5;
    font-size: var(--mm-type-md);
    font-weight: 500;
    line-height: 1.45;
}

td small {
    display: block;
    margin-top: 3px;
    color: var(--mm-muted);
    font-size: var(--mm-type-sm);
    line-height: 1.35;
}

tbody tr {
    transition: background-color .14s ease;
}

tbody tr:hover {
    background:var(--mm-interaction-hover);
}

tbody tr:last-child td {
    border-bottom: 0;
}

input,
select,
textarea {
    max-width: 100%;
    background: rgba(13, 7, 23, .52);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-sm);
    color: var(--mm-text);
}

input::placeholder,
textarea::placeholder {
    color: #81778e;
}

input:hover,
select:hover,
textarea:hover {
    border-color:#A3B4C8;
}

/* Shared Form Focus Matches The Top Navigation Search */
.mm-admin .mm-main .mm-content :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, [contenteditable="true"]):focus {
    border-color: #E6B3F5;
    box-shadow: none;


    outline: 2px solid #CB78E6; outline-offset: 2px;
}

select {
    min-height: 40px;
    padding: 8px 34px 8px 12px;
    background-color: #24153f;
}

select option {
    background: #1b102e;
    color: var(--mm-text);
}

.mm-filter {
    margin: 0;
}

.mm-filter select {
    min-width: 170px;
}

/* Shared List / Work Queue Toolbar */
.mm-list-toolbar {
    display: flex;
    min-height: 64px;
    margin: 0;
    padding: 12px 18px;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(16, 9, 24, .13);
    border-bottom: 1px solid var(--mm-border);
}

.mm-list-search {
    position: relative;
    flex: 1 1 340px;
    min-width: 240px;
}

.mm-list-search > span {
    position: absolute;
    top: 50%;
    left: 13px;
    color: var(--mm-muted);
    font-size: 17px;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
}

.mm-list-search input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px 8px 38px;
    box-sizing: border-box;
    font: inherit;
    font-size: var(--mm-type-base);
}

.mm-list-toolbar > select {
    flex: 0 1 220px;
    width: auto;
    min-width: 185px;
}

.mm-list-filter-button,
.mm-list-reset {
    display: inline-flex;
    min-height: 40px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: var(--mm-radius-sm);
    font: inherit;
    font-size: var(--mm-type-base);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.mm-list-filter-button {
    background: var(--mm-cyan-soft);
    border: 1px solid var(--action-border);
    color: var(--action-text);
    cursor: pointer;
}

.mm-list-filter-button:hover {
    background:var(--mm-interaction-hover);
    border-color:#A3B4C8;
    color:#F5F6FA;
}

.mm-list-reset {
    background: transparent;
    border: 1px solid var(--mm-border-strong);
    color: var(--mm-muted);
}

.mm-list-reset:hover {
    border-color:#A3B4C8;
    color:#F5F6FA;
}

.mm-pagination {
    display: flex;
    padding: 16px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--mm-border);
}

.mm-pagination a,
.mm-pagination .is-disabled {
    display: inline-flex;
    min-height: 36px;
    padding: 7px 14px;
    align-items: center;
    justify-content: center;
    background: var(--mm-surface-raised);
    border: 1px solid var(--mm-border-strong);
    border-radius: var(--mm-radius-sm);
    font-size: var(--mm-type-sm);
    font-weight: 700;
    transition: border-color .15s ease, color .15s ease;
}

.mm-pagination a:hover {
    border-color:#A3B4C8;
    color:#F5F6FA;
}

.mm-page-info {
    color: var(--mm-muted);
    font-size: var(--mm-type-sm);
    letter-spacing: .02em;
}

.is-disabled {
    cursor: not-allowed;
    opacity: .5;
    pointer-events: none;
}

/* Admin • Linked Record Identifiers */
.mm-admin-record-link {
    color: var(--mm-cyan);
    font-weight: 800;
    text-decoration: none;
}

.mm-admin-record-link:hover,
.mm-admin-record-link:focus-visible {
    color:#F5F6FA;
    text-decoration:none;
}

/* Admin • Parent Return Navigation */
.mm-admin-return-link {
    display: inline-flex;
    min-height: 34px;
    padding: 0 13px;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, .10);
    border: 1px solid rgba(168, 85, 247, .28);
    border-radius: 7px;
    color: #d8b4fe;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.mm-admin-return-link:hover,
.mm-admin-return-link:focus-visible {
    background:var(--mm-interaction-hover);
    border-color:#A3B4C8;
    color:#F5F6FA;
}

.mm-admin-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.mm-back-link,
.mm-primary-button,
.mm-btn-mark-paid,
.mm-btn-retry {
    display: inline-flex;
    min-height: 38px;
    padding: 8px 14px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--mm-cyan-soft);
    border: 1px solid var(--action-border);
    border-radius: var(--mm-radius-sm);
    color: var(--action-text);
    font-size: var(--mm-type-sm);
    font-weight: 800;
    line-height: 1.3;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.mm-back-link:hover,
.mm-primary-button:hover,
.mm-btn-mark-paid:hover,
.mm-btn-retry:hover {
    background:var(--mm-interaction-hover);
    border-color:#A3B4C8;
    color:#F5F6FA;
}

.mm-btn-mark-paid:active,
.mm-btn-retry:active {
    transform: translateY(1px);
}

.mm-pill {
    display: inline-flex;
    min-width: 100px;
    min-height: 32px;
    padding: 6px 12px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: var(--mm-cyan-soft);
    border: 1px solid var(--action-border);
    border-radius: var(--mm-radius-sm);
    color: var(--action-text);
    font-size: var(--mm-type-sm);
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}
.mm-flash {
    margin: 0 0 22px;
    padding: 13px 16px;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    color: var(--mm-text);
    font-size: var(--mm-type-base);
    font-weight: 650;
}

.mm-flash.success {
    background: var(--mm-lime-soft);
    border-color: rgba(165, 92, 255, .28);
    color: #d4ffa2;
}

.mm-flash.error {
    background: #302413;
    border: 1px solid #e5bc2a;
    border-left: 4px solid #ffd447;
    color: #fff1ca;
    box-shadow: var(--mm-error-shadow, 0 0 16px rgba(229, 188, 42, .08));
}

.mm-flash.error::before {
    content: "⚠  ATTENTION REQUIRED";
    display: block;
    margin-bottom: 7px;
    color: #ffd447;
    font-size: var(--mm-type-md);
    font-weight: 900;
    letter-spacing: .04em;
}

[class$="-empty"],
[class*="-empty "] {
    padding: 28px 20px;
    color: var(--mm-muted);
    font-size: var(--mm-type-base);
    text-align: center;
}

/* Shared Record Detail Layout */
.mm-record-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 18px;
    align-items: start;
}

.mm-record-main,
.mm-record-sidebar {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.mm-primary-button {
    font: inherit;
    cursor: pointer;
}

.mm-danger-zone {
    border-color: rgba(255, 101, 122, .30);
    border-top: 2px solid var(--mm-danger);
}

.mm-danger-zone .mm-card-header {
    background:
        linear-gradient(
            90deg,
            rgba(255, 101, 122, .12),
            rgba(255, 101, 122, .025)
        );
}

.mm-danger-zone .mm-card-header h2 {
    color: #ffd7de;
}

.mm-danger-button {
    display: inline-flex;
    min-height: 40px;
    padding: 8px 15px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: var(--mm-danger-soft);
    border: 1px solid rgba(255, 101, 122, .48);
    border-radius: var(--mm-radius-sm);
    color: #ffc1cb;
    font: inherit;
    font-size: var(--mm-type-sm);
    font-weight: 800;
    line-height: 1.25;
    cursor: pointer;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.mm-danger-button:hover {
    background:var(--mm-interaction-hover);
    border-color:#A3B4C8;
    color:#F5F6FA;
}

.mm-detail-list {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    margin: 0;
    padding: 22px 24px 24px;
    column-gap: 28px;
    row-gap: 18px;
}

.mm-detail-list + .mm-detail-list {
    border-top: 1px solid var(--mm-border);
}

.mm-detail-list dt {
    align-self: center;
    color: #c9c0d6;
    font-size: var(--mm-type-sm);
    font-weight: 750;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.mm-detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--mm-text);
    font-size: var(--mm-type-md);
    line-height: 1.45;
}

.mm-detail-list code {
    color: #c9f6ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
}

.mm-sensitive-hidden {
    color: var(--mm-muted);
    font-style: italic;
}

.mm-activity {
    padding: 6px 21px 8px;
}

.mm-activity-item {
    display: flex;
    padding: 15px 0;
    gap: 12px;
}

.mm-activity-item + .mm-activity-item {
    border-top: 1px solid rgba(255, 255, 255, .065);
}

.mm-activity-dot {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    flex: 0 0 auto;
    background: var(--mm-violet);
    border-radius: 50%;
}

.mm-activity-dot.green {
    background: var(--mm-lime);
}

.mm-activity-dot.gold {
    background: var(--mm-gold);
}

.mm-activity-dot.blue {
    background: var(--mm-cyan);
}

.mm-activity strong {
    display: block;
    font-size: var(--mm-type-md);
}

.mm-activity p {
    margin: 4px 0;
    color: var(--mm-muted);
    font-size: var(--mm-type-base);
    line-height: 1.45;
}

.mm-activity small {
    color: #9589a7;
    font-size: var(--mm-type-sm);
}

/* =========================================================
   ADMIN SIDEBAR COLOR SYSTEM
   ========================================================= */

.mm-nav > * {
    --nav-accent: #c150ff;
    --nav-soft: rgba(193, 80, 255, .10);
}

/* Dashboard */
.mm-nav > :nth-child(1) {
    --nav-accent: #c150ff;
    --nav-soft: rgba(193, 80, 255, .11);
}

/* Orders */
.mm-nav > :nth-child(2) {
    --nav-accent: #e5bc2a;
    --nav-soft: rgba(229, 188, 42, .09);
}

/* Members */
.mm-nav > :nth-child(3) {
    --nav-accent: #28d2ff;
    --nav-soft: rgba(40, 210, 255, .09);
}

/* Apps & Downloads */
.mm-nav > :nth-child(4) {
    --nav-accent: #a55cff;
    --nav-soft: rgba(165, 92, 255, .075);
}

/* Email Templates */
.mm-nav > :nth-child(5) {
    --nav-accent: #ff4fd8;
    --nav-soft: rgba(255, 79, 216, .09);
}

/* Billing */
.mm-nav > :nth-child(6) {
    --nav-accent: #e5bc2a;
    --nav-soft: rgba(229, 188, 42, .09);
}

/* Services */
.mm-nav > :nth-child(7) {
    --nav-accent: #28d2ff;
    --nav-soft: rgba(40, 210, 255, .09);
}

/* Support */
.mm-nav > :nth-child(8) {
    --nav-accent: #ff4fd8;
    --nav-soft: rgba(255, 79, 216, .09);
}

/* System */
.mm-nav > :nth-child(9) {
    --nav-accent: #a55cff;
    --nav-soft: rgba(165, 92, 255, .075);
}

.mm-nav > * .mm-icon {
    color: var(--nav-accent);
    transition: color .16s ease, filter .16s ease;
}

.mm-nav > * > .mm-nav-link:hover,
.mm-nav > a.mm-nav-link:hover {
    background:var(--mm-interaction-hover);
}

.mm-nav > * > .mm-nav-link.is-active,
.mm-nav > a.mm-nav-link.is-active {
    background:
        linear-gradient(
            90deg,
            var(--nav-soft),
            rgba(255, 255, 255, .018)
        );
    box-shadow: var(--mm-nav-group-active-shadow, inset 3px 0 0 var(--nav-accent), inset 0 0 24px var(--nav-soft));
    color: #fff;
}

.mm-nav > * > .mm-nav-link.is-active .mm-icon,
.mm-nav > a.mm-nav-link.is-active .mm-icon {
    color: var(--nav-accent);
    filter: var(--mm-nav-icon-filter, drop-shadow(0 0 5px var(--nav-accent)));
}

.mm-nav-group .mm-subnav a:hover,
.mm-nav-group .mm-subnav a.is-active,
.mm-nav-group.is-open .mm-chevron {
    color:#F5F6FA;
}


/* Shared Admin Status Colors */

/* Positive / Complete */
.mm-pill.paid,
.mm-pill.active,
.mm-pill.successful,
.mm-pill.completed {
    color: var(--mm-cyan);
    background: var(--mm-cyan-soft);
    border-color: rgba(40, 210, 255, .38);
}

/* Neutral / Waiting */
.mm-pill.pending,
.mm-pill.unpaid,
.mm-pill.processing,
.mm-pill.no_invoice,
.mm-pill.not_created,
.mm-pill.unknown {
    color: var(--mm-violet);
    background: var(--mm-violet-soft);
    border-color: rgba(193, 80, 255, .38);
}

/* Failed / Expired */
.mm-pill.failed,
.mm-pill.expired,
.mm-pill.terminated,
.mm-pill.inactive,
.mm-pill.cancelled,
.mm-pill.refunded {
    color: var(--mm-danger);
    background: var(--mm-danger-soft);
    border-color: rgba(255, 101, 122, .38);
}

/* Dashboard Header */
.mm-dashboard-pinned {
    position: sticky;
    top: 0;
    z-index: 2;
    margin-bottom: 48px;
    background: #12091f;
}
/* System Settings Submenu */
.mm-settings-subnav summary { display: block; padding: 9px 12px; color: #aca4ba; cursor: pointer; list-style: none; }
.mm-settings-subnav summary::-webkit-details-marker { display: none; }
.mm-settings-subnav summary::after { content: "⌄"; float: right; }
.mm-settings-subnav[open] summary::after { content: "⌃"; }
.mm-settings-subnav summary:hover { color:#F5F6FA; }
.mm-settings-subnav a { display: block; padding-left: 26px; }

/* Wicked Witch Settings Icon */
.mm-witch-settings-icon {
    position: relative;
    display: block;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    overflow: visible;
}
.mm-witch-settings-icon img {
    display: block;
    width: 29px;
    height: 29px;
    object-fit: contain;
}
.mm-witch-settings-icon::after {
    content: "⚙";
    position: absolute;
    right: -5px;
    bottom: -4px;
    font-size: 13px;
    line-height: 14px;
    color: #d78aff;
    text-shadow: 0 1px 3px #08030f;
}


/* =========================================================
   GLOBAL ADMIN SEARCH RESULTS
   ========================================================= */

.mm-global-search-results {
    overflow: hidden;
}

.mm-global-search-count {
    display: inline-block;
    margin-top: 5px;
    color: var(--mm-muted);
    font-size: var(--mm-type-sm);
}

.mm-global-search-empty {
    padding: 44px 24px;
    text-align: center;
}

.mm-global-search-empty strong {
    display: block;
    font-size: 18px;
    font-weight: 650;
}

.mm-global-search-empty p {
    margin: 7px 0 0;
    color: var(--mm-muted);
    font-size: 14px;
}

.mm-global-search-section {
    border-top: 1px solid var(--mm-border);
}

.mm-global-search-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    background: rgba(255, 255, 255, .018);
}

.mm-global-search-section-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 650;
}

.mm-global-search-section-head span {
    display: inline-flex;
    min-width: 24px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border: 1px solid var(--mm-border);
    border-radius: 999px;
    color: var(--mm-muted);
    font-size: 12px;
    font-weight: 600;
}

.mm-global-search-row {
    display: grid;
    grid-template-columns:
        minmax(180px, 1fr)
        minmax(0, 2fr)
        auto;
    gap: 18px;
    align-items: center;
    padding: 14px 18px;
    border-top: 1px solid var(--mm-border);
    color: inherit;
    text-decoration: none;
}

.mm-global-search-row:hover {
    background:var(--mm-interaction-hover);
}

.mm-global-search-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--mm-text);
    font-size: 14px;
    font-weight: 600;
}

.mm-global-search-row span {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--mm-muted);
    font-size: 13px;
}

.mm-global-search-row em {
    color: var(--mm-muted);
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .mm-global-search-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

.mm-communications-return {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--mm-violet);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.mm-communications-return:hover {
    text-decoration:none;
}
