/* Marketing module — design shell around LeadGen */

.mk-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.25rem 12px 2.75rem;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #0f172a;
}

.mk-page *,
.mk-modal *,
.mk-toast {
    box-sizing: border-box;
}

.mk-page,
.mk-modal,
.mk-page h1,
.mk-page h2,
.mk-page h3,
.mk-page h4,
.mk-page h5,
.mk-page h6,
.mk-page p,
.mk-page span,
.mk-page label,
.mk-page button,
.mk-page input,
.mk-page select,
.mk-page textarea,
.mk-page strong,
.mk-page a,
.mk-modal h1,
.mk-modal h2,
.mk-modal h3,
.mk-modal h4,
.mk-modal h5,
.mk-modal h6,
.mk-modal p,
.mk-modal span,
.mk-modal label,
.mk-modal button,
.mk-modal input,
.mk-modal select,
.mk-modal textarea,
.mk-modal strong,
.mk-modal a,
.mk-card-title,
.mk-setting-row h3,
.mk-modal-header h2,
.mk-denied h2 {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
}

.mk-modal {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #0f172a;
}

.mk-page i.fa,
.mk-page i.fas,
.mk-page i.far,
.mk-page i.fa-solid,
.mk-modal i.fa,
.mk-modal i.fas,
.mk-modal i.far,
.mk-modal i.fa-solid,
.mk-settings-btn i,
.lg-modal-close i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    font-style: normal;
    line-height: 1;
}

.lg-page-embedded {
    max-width: none;
    margin: 0;
    padding: 0;
}

.mk-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.15rem;
}

.mk-title {
    margin: 0 0 0.35rem;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1c32;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.mk-subtitle {
    margin: 0;
    max-width: 640px;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.mk-settings-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #334155;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.mk-settings-btn:hover {
    background: #f8fafc;
}

.mk-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 6px;
    margin-bottom: 1.15rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.mk-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.mk-tab:hover {
    color: #1e293b;
    background: #f8fafc;
}

.mk-tab.active {
    background: #262646;
    color: #fff;
}

.mk-tab.active:hover {
    background: #1c1c38;
    color: #fff;
}

.mk-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mk-dot-leadgen { background: #3b82f6; }
.mk-dot-email { background: #8b5cf6; }
.mk-dot-sms { background: #f59e0b; }
.mk-dot-consent { background: #ef4444; }
.mk-dot-calendar { background: #22c55e; }
.mk-dot-reporting { background: #14b8a6; }

.mk-tab.active .mk-dot-leadgen { background: #93c5fd; }
.mk-tab.active .mk-dot-email { background: #c4b5fd; }
.mk-tab.active .mk-dot-sms { background: #fcd34d; }
.mk-tab.active .mk-dot-consent { background: #fca5a5; }
.mk-tab.active .mk-dot-calendar { background: #86efac; }
.mk-tab.active .mk-dot-reporting { background: #5eead4; }

.mk-subnav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.mk-subnav-btn {
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 4px 12px;
    margin-right: 18px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.mk-subnav-btn.active {
    color: #1a1c32;
    border-bottom-color: #1a1c32;
}

.mk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.mk-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mk-pill {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.mk-pill.active {
    background: #262646;
    color: #fff;
    border-color: #262646;
}

.mk-muted {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.mk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mk-tabs { border-radius: 16px; }
}

@media (max-width: 575.98px) {
    .mk-grid { grid-template-columns: 1fr; }
    .mk-title { font-size: 1.7rem; }
}

.mk-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.05rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.mk-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.7rem;
}

.mk-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mk-tag-email { background: #ede9fe; color: #6d28d9; }
.mk-tag-sms { background: #ffedd5; color: #c2410c; }
.mk-tag-template { background: #e0e7ff; color: #3730a3; }

.mk-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.mk-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}

.mk-status-sent .mk-status-dot,
.mk-status-active .mk-status-dot { background: #22c55e; }
.mk-status-scheduled .mk-status-dot { background: #3b82f6; }
.mk-status-draft .mk-status-dot { background: #94a3b8; }
.mk-status-paused .mk-status-dot { background: #f59e0b; }

.mk-card-title {
    margin: 0 0 0.3rem;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1c32;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.mk-card-meta {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.mk-audience {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3e8ff;
    color: #6b21a8;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.mk-audience i { font-size: 0.8rem; }

.mk-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0.85rem 0 1rem;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
}

.mk-stat-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1c32;
    line-height: 1.2;
}

.mk-stat-label {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.mk-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mk-card-actions.single { grid-template-columns: 1fr; }

.mk-card-create {
    min-height: 250px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
}

.mk-card-create:hover {
    border-color: #94a3b8;
    color: #64748b;
}

.mk-card-create-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #262646;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.mk-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 12px 14px;
    color: #9a3412;
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.mk-alert i { color: #ea580c; margin-top: 2px; }

.mk-usage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}

.mk-usage-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1c32;
}

.mk-usage-meta {
    margin: 4px 0 8px;
    font-size: 0.8125rem;
    color: #64748b;
}

.mk-progress {
    width: min(360px, 100%);
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.mk-progress span {
    display: block;
    height: 100%;
    background: #2dd4bf;
    border-radius: inherit;
}

.mk-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 1.1rem;
}

@media (max-width: 991.98px) {
    .mk-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .mk-kpi-row { grid-template-columns: 1fr; }
}

.mk-kpi {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.mk-kpi-label {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 6px;
}

.mk-kpi-value {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1c32;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.mk-kpi-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mk-kpi-trend.up { color: #15803d; }
.mk-kpi-trend.down { color: #dc2626; }
.mk-kpi-trend.warn { color: #b45309; }

.mk-search {
    flex: 1;
    min-width: 220px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px 10px 36px;
    font-size: 0.875rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 12px 50% no-repeat;
}

.mk-search:focus {
    outline: none;
    border-color: #3fd6d4;
}

.mk-table-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.mk-table {
    width: 100%;
    border-collapse: collapse;
}

.mk-table th {
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.mk-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #334155;
    vertical-align: middle;
}

.mk-table tr:last-child td { border-bottom: none; }

.mk-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.15rem 0 1.15rem;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

.mk-pager-info {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.mk-pager-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.mk-page-ellipsis {
    min-width: 28px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.mk-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.mk-page-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.mk-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mk-page-btn.active {
    background: #262646;
    border-color: #262646;
    color: #fff;
}

.mk-client-name {
    display: block;
    font-weight: 700;
    color: #1a1c32;
}

.mk-client-email {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.mk-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.mk-badge-in { background: #dcfce7; color: #15803d; }
.mk-badge-out { background: #fee2e2; color: #b91c1c; }

.mk-intro {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.mk-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.mk-cal-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mk-cal-nav button {
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
}

.mk-cal-nav button:hover { background: #f8fafc; }

.mk-cal-month {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a1c32;
}

.mk-legend {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.mk-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mk-cal {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.mk-cal-weekdays,
.mk-cal-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mk-cal-weekdays span {
    padding: 10px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94a3b8;
    text-transform: uppercase;
    border-bottom: 1px solid #f1f5f9;
}

.mk-cal-cell {
    min-height: 108px;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 8px;
}

.mk-cal-cell:nth-child(7n) { border-right: none; }

.mk-cal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.mk-cal-cell.outside .mk-cal-num { color: #cbd5e1; }
.mk-cal-cell.today .mk-cal-num {
    background: #262646;
    color: #fff;
}

.mk-cal-event {
    display: block;
    width: 100%;
    border: none;
    text-align: left;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 4px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mk-cal-event.email { background: #ede9fe; color: #6d28d9; }
.mk-cal-event.sms { background: #ffedd5; color: #c2410c; }
.mk-cal-event.leadgen { background: #dbeafe; color: #1d4ed8; }

.mk-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.15rem 1.2rem;
    margin-bottom: 1rem;
}

.mk-panel h3 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1c32;
}

.mk-funnel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    align-items: end;
}

.mk-funnel-stage {
    position: relative;
    text-align: left;
}

.mk-funnel-stage:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -22px;
    top: 18px;
    color: #cbd5e1;
    font-size: 1.1rem;
}

@media (max-width: 767.98px) {
    .mk-funnel { grid-template-columns: 1fr 1fr; }
    .mk-funnel-stage:not(:last-child)::after { display: none; }
}

.mk-funnel-num {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a1c32;
    letter-spacing: -0.03em;
}

.mk-funnel-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin: 10px 0 8px;
}

.mk-funnel-bar span {
    display: block;
    height: 100%;
    background: #2dd4bf;
    border-radius: inherit;
}

.mk-funnel-bar.navy span { background: #262646; }

.mk-funnel-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.mk-channel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a1c32;
}

.mk-trend-up { color: #15803d; font-weight: 700; }
.mk-trend-down { color: #dc2626; font-weight: 700; }

.mk-foot-note {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Wizard / settings modals */
.mk-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mk-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 820px;
    max-height: min(92vh, 920px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
    overflow: visible;
}

.mk-modal-sm { max-width: 560px; }

.mk-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.mk-modal-header h2 {
    margin: 0 0 0.2rem;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a1c32;
}

.mk-modal-header p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.mk-modal-body {
    padding: 1.1rem 1.4rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.mk-field {
    margin-bottom: 1rem;
    position: relative;
}

.mk-modal .lg-label,
.mk-page .lg-label {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.mk-modal .lg-select,
.mk-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4.8 6 5.4 10.6.8 12 2.2 6 8.2 0 2.2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 36px;
    cursor: pointer;
}

.mk-dd {
    position: relative;
    width: 100%;
}

.mk-dd-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.875rem;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    color: #0f172a;
    background: #fff;
    text-align: left;
    cursor: pointer;
    line-height: 1.3;
}

.mk-dd-trigger:hover,
.mk-dd.open .mk-dd-trigger {
    border-color: #3fd6d4;
}

.mk-dd-trigger i {
    color: #64748b;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.mk-dd.open .mk-dd-trigger i {
    transform: rotate(180deg);
}

.mk-dd-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    max-height: 240px;
    overflow-y: auto;
}

.mk-dd-item {
    width: 100%;
    display: block;
    border: 0;
    background: transparent;
    text-align: left;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 0.875rem;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    color: #1e293b;
    cursor: pointer;
}

.mk-dd-item:hover {
    background: #f1f5f9;
}

.mk-dd-item.selected {
    background: #ecfeff;
    color: #0f766e;
    font-weight: 600;
}

.mk-setting-row .mk-dd {
    min-width: 220px;
    max-width: 280px;
    flex: 0 0 auto;
}

.mk-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0.9rem 1.4rem 1.15rem;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.mk-modal-footer-right,
.mk-modal-footer-left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mk-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 1.15rem;
    padding-bottom: 0.35rem;
}

.mk-step {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 6px 0 10px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.mk-step.active {
    color: #1a1c32;
    border-bottom-color: #262646;
}

.mk-step.done { color: #16a34a; }

.mk-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.mk-step.active .mk-step-num {
    background: #262646;
    color: #fff;
}

.mk-step.done .mk-step-num {
    background: #22c55e;
    color: #fff;
}

.mk-field:has(.mk-dd.open) {
    z-index: 4;
}

.mk-modal-body:has(.mk-dd.open) {
    overflow: visible;
}

.mk-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #eef2f7;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1rem;
}

.mk-seg button {
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}

.mk-seg button.active {
    background: #fff;
    color: #1a1c32;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.mk-choice {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
}

.mk-choice.selected {
    border-color: #2dd4bf;
    background: #f0fdfa;
}

.mk-choice-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
}

.mk-choice.selected .mk-choice-radio {
    border-color: #14b8a6;
}

.mk-choice.selected .mk-choice-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #14b8a6;
}

.mk-choice-title {
    display: block;
    font-weight: 700;
    color: #1a1c32;
    font-size: 0.9rem;
}

.mk-choice-sub {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

.mk-choice-count {
    margin-left: auto;
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.mk-est {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    background: #f0fdfa;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 8px;
    font-size: 0.875rem;
    color: #0f766e;
}

.mk-est strong { color: #1a1c32; }

.mk-recipient-list {
    margin-top: 8px;
    border: 1px solid #ccfbf1;
    border-radius: 10px;
    max-height: 220px;
    overflow: auto;
    background: #fff;
}

.mk-recipient-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mk-recipient-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.8125rem;
    color: #1a1c32;
}

.mk-recipient-list li:last-child { border-bottom: 0; }

.mk-recipient-email {
    color: #64748b;
    text-align: right;
    word-break: break-all;
}

.mk-recipient-empty {
    margin: 0;
    padding: 12px;
    color: #64748b;
    font-size: 0.8125rem;
}

.mk-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 575.98px) {
    .mk-two { grid-template-columns: 1fr; }
}

.mk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mk-chip {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.mk-chip:hover { background: #eef2f7; }

.mk-editor {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
}

.mk-editor-bar {
    display: flex;
    gap: 2px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 6px;
}

.mk-editor-bar button {
    width: 32px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #475569;
    cursor: pointer;
}

.mk-editor-bar button:hover { background: #e2e8f0; }

.mk-editor textarea {
    width: 100%;
    min-height: 160px;
    border: none;
    padding: 12px;
    resize: vertical;
    font-size: 0.875rem;
    color: #0f172a;
}

.mk-editor textarea:focus { outline: none; }

.mk-char {
    text-align: right;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
}

.mk-send-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1rem;
}

.mk-send-card {
    text-align: left;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
}

.mk-send-card.selected {
    border-color: #5eead4;
    background: #f0fdfa;
}

.mk-send-card strong {
    display: block;
    color: #1a1c32;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.mk-send-card span {
    font-size: 0.8rem;
    color: #64748b;
}

.mk-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.mk-setting-row:last-child { border-bottom: none; }

.mk-setting-row h3 {
    margin: 0 0 4px;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif !important;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1c32;
}

.mk-setting-row p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    max-width: 360px;
}

.mk-inline-num {
    width: 52px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.mk-cap-sentence {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #334155;
    font-weight: 600;
}

.mk-select {
    min-width: 200px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.875rem;
    background: #fff;
}

.mk-denied {
    max-width: 520px;
    margin: 4rem auto;
    text-align: center;
    padding: 2rem;
}

.mk-denied h2 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.mk-denied p { color: #64748b; }

.mk-tpl-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.mk-tpl-preview {
    background: #f4f6f9;
    padding: 1rem 1.05rem 1.15rem;
    min-height: 128px;
}

.mk-tpl-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.mk-tpl-subject {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.35;
}

.mk-tpl-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mk-tpl-lines span {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
}

.mk-tpl-body {
    padding: 1rem 1.05rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mk-tpl-body .mk-card-actions {
    margin-top: auto;
}

.mk-tag-renewal { background: #3b82f6; color: #fff; }
.mk-tag-survey { background: #ede9fe; color: #6d28d9; }
.mk-tag-welcome { background: #dcfce7; color: #15803d; }
.mk-tag-blank { background: #e2e8f0; color: #475569; }

.mk-crumb {
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.mk-company-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.mk-company-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.mk-company-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.mk-company-select {
    min-width: 220px;
    height: 2.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 0.75rem;
    background: #fff;
    font-family: inherit;
}
