/* Maple Tracker — design system */
:root {
    --mm-primary: #0f766e;
    --mm-primary-hover: #0d9488;
    --mm-primary-dark: #115e59;
    --mm-primary-soft: #ccfbf1;
    --mm-primary-muted: rgba(15, 118, 110, 0.12);
    --mm-accent: #6366f1;
    --mm-sidebar: #0c1222;
    --mm-sidebar-border: rgba(255, 255, 255, 0.06);
    --mm-bg: #f1f5f9;
    --mm-surface: #ffffff;
    --mm-border: #e2e8f0;
    --mm-border-strong: #cbd5e1;
    --mm-text: #0f172a;
    --mm-text-secondary: #334155;
    --mm-text-muted: #64748b;
    --mm-success: #059669;
    --mm-success-bg: #ecfdf5;
    --mm-danger: #dc2626;
    --mm-danger-bg: #fef2f2;
    --mm-radius: 12px;
    --mm-radius-sm: 8px;
    --mm-radius-lg: 16px;
    --mm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --mm-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
    --mm-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
    --mm-font: 'Rubik', system-ui, -apple-system, sans-serif;
    --mm-sidebar-w: 268px;
}

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

.mmct-panel {
    font-family: var(--mm-font);
    margin: 0;
    background: var(--mm-bg);
    color: var(--mm-text);
    -webkit-font-smoothing: antialiased;
}

/* ── Shell & sidebar ── */
.mmct-shell { display: flex; min-height: 100vh; }

.mmct-sidebar {
    width: var(--mm-sidebar-w);
    background: var(--mm-sidebar);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    transition: transform 0.25s ease;
    border-right: 1px solid var(--mm-sidebar-border);
}

.mmct-panel-affiliate .mmct-sidebar {
    background: linear-gradient(180deg, #0c1222 0%, #134e4a 100%);
}

.mmct-brand {
    padding: 22px 20px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--mm-sidebar-border);
}

.mmct-brand-mark {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--mm-primary) 0%, var(--mm-primary-hover) 100%);
    display: grid; place-items: center;
    font-size: 18px; font-weight: 700; color: #fff;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
    flex-shrink: 0;
}

.mmct-brand-text {
    font-size: 15px; font-weight: 600; color: #fff;
    line-height: 1.25; flex: 1; min-width: 0;
}

.mmct-brand-badge {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    background: rgba(15, 118, 110, 0.35); color: #99f6e4;
    padding: 4px 10px; border-radius: 999px; width: 100%;
}

.mmct-sidebar nav { flex: 1; overflow-y: auto; padding: 12px 10px; }

.mmct-nav-section {
    padding: 18px 12px 6px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    color: #475569; text-transform: uppercase;
}

.mmct-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; margin-bottom: 2px;
    color: #94a3b8; text-decoration: none;
    font-size: 14px; font-weight: 500;
    border-radius: var(--mm-radius-sm);
    border-left: none;
    transition: background 0.15s, color 0.15s;
}

.mmct-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
}

.mmct-nav-link.active {
    background: var(--mm-primary-muted);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.25);
}

.mmct-sidebar-foot {
    margin-top: auto;
    padding: 16px 18px;
    border-top: 1px solid var(--mm-sidebar-border);
    font-size: 13px;
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
}

.mmct-sidebar-user {
    display: flex; align-items: center; gap: 10px; min-width: 0;
}

.mmct-user-avatar {
    width: 32px; height: 32px; border-radius: 999px;
    background: linear-gradient(135deg, var(--mm-primary), var(--mm-accent));
    color: #fff; font-size: 13px; font-weight: 700;
    display: grid; place-items: center; flex-shrink: 0;
}

.mmct-sidebar-foot a { color: #5eead4; text-decoration: none; font-weight: 500; white-space: nowrap; }
.mmct-sidebar-foot a:hover { color: #99f6e4; }

/* ── Main area ── */
.mmct-main {
    flex: 1;
    margin-left: var(--mm-sidebar-w);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mmct-topbar-stack {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--mm-surface);
    border-bottom: 1px solid var(--mm-border);
    box-shadow: var(--mm-shadow-sm);
    overflow: visible;
}

.mmct-topbar-stack .mmct-topbar {
    position: static;
    top: auto;
    border-bottom: 0;
    box-shadow: none;
}

.mmct-topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 44px;
    padding: 0 24px;
    background: var(--mm-surface);
    border-bottom: 1px solid var(--mm-border);
    box-shadow: var(--mm-shadow-sm);
}

.mmct-topbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
}

.mmct-live-clock {
    font-size: 13px;
    font-weight: 500;
    color: var(--mm-text-secondary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.mmct-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mmct-topbar-user {
    position: relative;
}

.mmct-topbar-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px 3px 3px;
    border: 1px solid var(--mm-border);
    border-radius: 999px;
    background: var(--mm-surface);
    cursor: pointer;
    font-family: var(--mm-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--mm-text-secondary);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.mmct-topbar-user-toggle:hover,
.mmct-topbar-user-toggle[aria-expanded="true"] {
    border-color: var(--mm-border-strong);
    background: #f8fafc;
    box-shadow: var(--mm-shadow-sm);
}

.mmct-topbar-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.mmct-topbar-user-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mmct-topbar-caret {
    font-size: 10px;
    color: var(--mm-text-muted);
    line-height: 1;
    margin-left: -2px;
}

.mmct-topbar-menu {
    top: calc(100% + 6px);
    min-width: 168px;
}

.mmct-content { padding: 8px 28px 32px; flex: 1; }

.mmct-notif-bell {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-sm);
    text-decoration: none; font-size: 17px;
    box-shadow: none;
    transition: border-color 0.15s, background 0.15s;
}

.mmct-notif-bell:hover { border-color: var(--mm-border-strong); background: #f8fafc; }

button.mmct-notif-bell {
    font: inherit;
    cursor: pointer;
    line-height: 1;
}

.mmct-notif-wrap {
    position: relative;
}

.mmct-notif-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(360px, calc(100vw - 32px));
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow-lg);
    z-index: 1200;
    overflow: hidden;
}

.mmct-notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--mm-primary);
    color: #fff;
}

.mmct-notif-panel-title {
    font-size: 14px;
    font-weight: 600;
}

.mmct-notif-panel-new {
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.92);
    color: var(--mm-primary-dark);
    padding: 3px 8px;
    border-radius: 999px;
}

.mmct-notif-panel-tabs {
    display: flex;
    gap: 0;
    padding: 0 8px;
    background: var(--mm-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mmct-notif-panel-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--mm-font);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
}

.mmct-notif-panel-tab.active {
    background: var(--mm-surface);
    color: var(--mm-text);
}

.mmct-notif-panel-body {
    max-height: 320px;
    overflow-y: auto;
}

.mmct-notif-panel-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--mm-text-muted);
    font-size: 13px;
}

.mmct-notif-panel-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.12s;
}

.mmct-notif-panel-item:hover { background: #f8fafc; }
.mmct-notif-panel-item.unread { background: rgba(15, 118, 110, 0.04); }
.mmct-notif-panel-item.unread .mmct-notif-panel-item-title { font-weight: 700; }

.mmct-notif-panel-item-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mmct-notif-panel-item-title {
    font-size: 13px;
    line-height: 1.35;
    color: var(--mm-text);
}

.mmct-notif-panel-item-text {
    font-size: 12px;
    color: var(--mm-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mmct-notif-panel-item-time {
    font-size: 11px;
    color: var(--mm-text-muted);
    margin-top: 2px;
}

.mmct-notif-panel-foot {
    padding: 10px 14px;
    text-align: center;
    border-top: 1px solid var(--mm-border);
    background: #fafbfc;
}

.mmct-notif-panel-foot a {
    font-size: 13px;
    font-weight: 600;
    color: var(--mm-primary);
    text-decoration: none;
}

.mmct-notif-panel-foot a:hover { text-decoration: underline; }

.mmct-notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 16px;
    background: var(--mm-primary-soft);
    color: var(--mm-primary);
}

.mmct-notif-icon--conversion::before { content: "📈"; }
.mmct-notif-icon--application::before { content: "📋"; }
.mmct-notif-icon--registration::before { content: "👤"; }
.mmct-notif-icon--default::before { content: "🔔"; }

.mmct-notif-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.mmct-notif-toolbar--foot { margin-top: 12px; margin-bottom: 0; }

.mmct-notif-summary { margin: 0 0 12px; font-size: 13px; }

.mmct-notif-check {
    padding-top: 18px;
    flex-shrink: 0;
}

.mmct-notif-check input { accent-color: var(--mm-primary); }

.mmct-notif-item-main { flex: 1; min-width: 0; }

.mmct-notif-item.archived { opacity: 0.92; }

.mmct-notif-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-top: 8px;
}

.mmct-notif-actions form { display: inline; margin: 0; }

.mmct-notif-actions .mmct-link-btn {
    color: var(--mm-primary);
    font-weight: 500;
}

.mmct-notif-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--mm-danger); color: #fff;
    font-size: 10px; font-weight: 700; border-radius: 999px;
    padding: 2px 6px; min-width: 18px; text-align: center;
    border: 2px solid var(--mm-bg);
}

.mmct-nav-toggle {
    display: none;
    position: fixed; top: 12px; left: 12px; z-index: 300;
    background: var(--mm-sidebar); color: #fff; border: none;
    border-radius: var(--mm-radius-sm); padding: 10px 14px;
    font-size: 18px; cursor: pointer;
    box-shadow: var(--mm-shadow);
}

.mmct-sidebar-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.45); z-index: 150;
}
.mmct-sidebar-backdrop.show { display: block; }

/* ── Typography & page headers ── */
.mmct-page-title {
    font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em;
    margin: 0 0 4px; color: var(--mm-text);
}

.mmct-page-sub {
    font-size: 14px; color: var(--mm-text-muted);
    margin: 0 0 24px;
}

.mmct-page-header { margin-bottom: 24px; }

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

/* ── KPI cards (dashboard) ── */
.mmct-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.mmct-kpi {
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    padding: 18px 20px;
    box-shadow: var(--mm-shadow-sm);
    display: flex; align-items: flex-start; gap: 14px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.mmct-kpi:hover { box-shadow: var(--mm-shadow); transform: translateY(-1px); }

.mmct-kpi-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}

.mmct-kpi-icon.teal { background: var(--mm-primary-soft); }
.mmct-kpi-icon.green { background: #dcfce7; }
.mmct-kpi-icon.indigo { background: #e0e7ff; }
.mmct-kpi-icon.amber { background: #fef3c7; }

.mmct-kpi-body { min-width: 0; }

.mmct-kpi-label {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--mm-text-muted); margin-bottom: 4px;
    text-transform: uppercase; letter-spacing: 0.04em;
}

.mmct-kpi-value {
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
    color: var(--mm-text); line-height: 1.2;
}

.mmct-kpi-value.green { color: var(--mm-success); }
.mmct-kpi-value.indigo { color: var(--mm-accent); }

/* Legacy stat tiles (other pages) */
.mmct-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px; margin-bottom: 20px;
}

.mmct-stat-tile {
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    padding: 16px 18px;
    box-shadow: var(--mm-shadow-sm);
}

.mmct-stat-tile label {
    display: block; font-size: 11px; color: var(--mm-text-muted);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.mmct-stat-tile .val { font-size: 1.35rem; font-weight: 700; }
.mmct-stat-tile .val.green { color: var(--mm-success); }
.mmct-stat-tile .val.indigo { color: var(--mm-accent); }

/* ── Cards ── */
.mmct-card {
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow-sm);
}

.mmct-card h3, .mmct-card-header {
    margin: 0 0 16px;
    font-size: 15px; font-weight: 600;
    color: var(--mm-text-secondary);
}

.mmct-empty {
    text-align: center; padding: 36px 24px;
    color: var(--mm-text-muted);
    background: #f8fafc;
    border: 1px dashed var(--mm-border-strong);
    border-radius: var(--mm-radius);
    font-size: 14px; line-height: 1.6;
}

/* ── Buttons ── */
.mmct-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px;
    border-radius: var(--mm-radius-sm);
    border: none;
    background: var(--mm-primary);
    color: #fff;
    text-decoration: none;
    font-family: var(--mm-font);
    font-weight: 600; font-size: 14px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 118, 110, 0.2);
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.mmct-btn:hover {
    background: var(--mm-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.mmct-btn:active { transform: translateY(0); }

.mmct-btn-secondary {
    background: var(--mm-surface);
    color: var(--mm-text-secondary);
    border: 1px solid var(--mm-border-strong);
    box-shadow: var(--mm-shadow-sm);
}

.mmct-btn-secondary:hover {
    background: #f8fafc;
    color: var(--mm-text);
    box-shadow: var(--mm-shadow-sm);
}

.mmct-btn-ghost {
    background: transparent;
    color: var(--mm-primary);
    box-shadow: none;
    border: 1px solid var(--mm-border);
}

/* ── Forms ── */
.mmct-form label,
.mmct-card label,
.mmct-wizard label,
.auth-card label {
    display: block;
    margin: 0 0 16px;
    font-size: 13px; font-weight: 600;
    color: var(--mm-text-secondary);
}

.mmct-form input,
.mmct-form select,
.mmct-form textarea,
.mmct-card input:not([type="checkbox"]):not([type="radio"]),
.mmct-card select,
.mmct-card textarea,
.mmct-wizard input:not([type="checkbox"]):not([type="radio"]),
.mmct-wizard select,
.mmct-wizard textarea,
.auth-card input,
.auth-card select,
.auth-card textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 14px;
    font-family: var(--mm-font);
    font-size: 14px; font-weight: 400;
    color: var(--mm-text);
    background: var(--mm-surface);
    border: 1px solid var(--mm-border-strong);
    border-radius: var(--mm-radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mmct-form input:focus,
.mmct-form select:focus,
.mmct-form textarea:focus,
.mmct-card input:focus,
.mmct-card select:focus,
.mmct-card textarea:focus,
.mmct-wizard input:focus,
.mmct-wizard select:focus,
.mmct-wizard textarea:focus,
.auth-card input:focus {
    outline: none;
    border-color: var(--mm-primary);
    box-shadow: 0 0 0 3px var(--mm-primary-muted);
}

.mmct-form input[type="checkbox"],
.mmct-wizard input[type="checkbox"] {
    width: auto; margin-top: 0; margin-right: 8px;
    accent-color: var(--mm-primary);
}

/* ── Tables ── */
.mmct-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    overflow: hidden;
    box-shadow: var(--mm-shadow-sm);
}

.mmct-table th, .mmct-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left; font-size: 14px;
}

.mmct-table th {
    background: #f8fafc;
    font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--mm-text-muted);
}

.mmct-table tbody tr:last-child td { border-bottom: none; }
.mmct-table tbody tr:hover td { background: #fafbfc; }

/* ── Filters & toolbar ── */
.mmct-filters, .mmct-filter-bar {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-bottom: 16px;
    background: var(--mm-surface);
    padding: 14px 16px;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    align-items: end;
    box-shadow: var(--mm-shadow-sm);
}

.mmct-filters input, .mmct-filters select,
.mmct-filter-bar input, .mmct-filter-bar select {
    padding: 9px 12px;
    border: 1px solid var(--mm-border-strong);
    border-radius: var(--mm-radius-sm);
    font-family: var(--mm-font);
}

.mmct-report-toolbar {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    gap: 12px; margin-bottom: 16px; align-items: center;
}

.mmct-range-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.mmct-range-pill {
    padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
    background: var(--mm-surface); border: 1px solid var(--mm-border);
    color: var(--mm-text-muted); text-decoration: none;
    transition: all 0.15s;
}

.mmct-range-pill.active, .mmct-range-pill:hover {
    background: var(--mm-primary); color: #fff; border-color: var(--mm-primary);
}

.mmct-pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }

.mmct-pagination a {
    padding: 7px 12px; border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-sm); text-decoration: none;
    font-size: 13px; font-weight: 500; color: var(--mm-text-muted);
}

.mmct-pagination a.active {
    background: var(--mm-primary); color: #fff; border-color: var(--mm-primary);
}

/* ── Alerts ── */
.mmct-alert {
    padding: 14px 16px; border-radius: var(--mm-radius-sm);
    margin-bottom: 16px; font-size: 14px; line-height: 1.5;
    border: 1px solid transparent;
}

.mmct-alert-success { background: var(--mm-success-bg); color: #065f46; border-color: #a7f3d0; }
.mmct-alert-error { background: var(--mm-danger-bg); color: #991b1b; border-color: #fecaca; }

/* ── Offers & misc ── */
.mmct-offer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.mmct-offer-card {
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    padding: 18px;
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: var(--mm-shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.mmct-offer-card:hover { box-shadow: var(--mm-shadow); transform: translateY(-2px); }
.mmct-offer-card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.mmct-offer-card .meta { font-size: 13px; color: var(--mm-text-muted); }

.mmct-notif-list { display: flex; flex-direction: column; gap: 12px; }

.mmct-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    padding: 16px 18px;
    box-shadow: var(--mm-shadow-sm);
}

.mmct-notif-item.unread { border-left: 4px solid var(--mm-primary); }
.mmct-notif-title { font-weight: 600; margin-bottom: 4px; }
.mmct-notif-meta { font-size: 12px; color: var(--mm-text-muted); margin-top: 6px; }

.mmct-link-btn {
    background: none; border: none; color: var(--mm-danger);
    cursor: pointer; padding: 0 4px; font-size: 13px;
}

/* Click-to-copy */
.mmct-copyable {
    cursor: pointer;
    position: relative;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.mmct-copyable:hover {
    border-color: var(--mm-primary) !important;
    box-shadow: 0 0 0 3px var(--mm-primary-muted);
}

.mmct-copyable.mmct-chip--code {
    display: block;
    padding: 12px 14px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.mmct-copyable-hint {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--mm-text-muted);
    margin-top: 6px;
}

/* Table row actions */
.mmct-row-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
}

.mmct-row-actions--compact {
    gap: 4px;
}

.mmct-actions-cell {
    width: 1%;
    white-space: nowrap;
    vertical-align: middle !important;
}

.mmct-action-btn--sm {
    padding: 5px 10px;
    font-size: 11px;
}

.mmct-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px;
    font-family: var(--mm-font);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--mm-radius-sm);
    text-decoration: none;
    border: 1px solid var(--mm-border-strong);
    background: var(--mm-surface);
    color: var(--mm-text-secondary);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.mmct-action-btn:hover {
    border-color: var(--mm-primary);
    color: var(--mm-primary);
    background: var(--mm-primary-muted);
}

.mmct-action-btn--primary {
    background: var(--mm-primary);
    border-color: var(--mm-primary);
    color: #fff;
}

.mmct-action-btn--primary:hover {
    background: var(--mm-primary-hover);
    border-color: var(--mm-primary-hover);
    color: #fff;
}

.mmct-action-btn--muted {
    background: #f8fafc;
}

.mmct-action-btn--warn:hover {
    border-color: #d97706;
    color: #b45309;
    background: #fffbeb;
}

.mmct-action-btn--danger:hover {
    border-color: var(--mm-danger);
    color: var(--mm-danger);
    background: var(--mm-danger-bg);
}

.mmct-row-actions form { display: inline; margin: 0; }

.mmct-toast.show {
    display: block;
    animation: mmct-toast-in 0.2s ease;
}

@keyframes mmct-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mmct-staff-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 999px;
    background: #ccfbf1;
    color: #0f766e;
    border: 1px solid #99f6e4;
    vertical-align: middle;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .mmct-nav-toggle { display: block; }
    .mmct-sidebar { transform: translateX(-100%); }
    .mmct-sidebar.open { transform: translateX(0); }
    .mmct-main { margin-left: 0; }
    .mmct-topbar { padding-left: 52px; padding-right: 16px; }
    .mmct-content { padding-left: 16px; padding-right: 16px; padding-top: 8px; }
}

@media (max-width: 520px) {
    .mmct-topbar-user-name { display: none; }
    .mmct-topbar-user-toggle { padding-right: 6px; }
    .mmct-live-clock { font-size: 11px; }
}
