/* Payment overlay: shown from Pay click until Razorpay gateway opens */
.mm-payment-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.mm-payment-overlay.mm-payment-overlay-visible {
    opacity: 1;
}
.mm-booking-overlay.mm-payment-overlay-visible {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.mm-payment-overlay-panel {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 280px;
}
.mm-payment-overlay-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid rgba(99, 102, 241, 0.25);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: mm-spin 0.8s linear infinite;
}
@keyframes mm-spin {
    to { transform: rotate(360deg); }
}
.mm-payment-overlay-title {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}
.mm-payment-overlay-sub {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.mm-payment-overlay-success-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 12px;
}

.mentor-match-main {
    padding: 24px 24px 32px;
    background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.12), transparent 55%),
                radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.10), transparent 55%);
}

/* Keep mentee sidebar identical to dashboard defaults (no MentorMatch-specific resizing). */

.mentor-match-container {
    max-width: 1120px;
    margin: 0 auto;
}

.mentor-match-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.mentor-match-header h1 {
    font-size: 1.9rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: #0f172a;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mentor-match-header p {
    color: var(--muted-text-color, #6b7280);
    font-size: 0.95rem;
}

.mentor-match-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.10);
    margin-bottom: 6px;
}

.mentor-match-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 2.5fr);
    gap: 24px;
}

.mentor-match-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mm-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.22);
    transition: box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.mm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    border-color: rgba(99, 102, 241, 0.4);
}

button.mm-card {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(129, 140, 248, 0.5);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), #ffffff);
}

.mm-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.mm-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
}

.mm-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.mm-chip-open {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.mm-chip-in-progress {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.mm-chip-completed {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.mm-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 6px 0 10px;
    font-size: 0.85rem;
    color: var(--muted-text-color, #6b7280);
}

.mm-meta-label {
    font-weight: 500;
}

.mm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.mm-primary-btn,
.mm-secondary-btn {
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mm-primary-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
}

.mm-primary-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.mm-secondary-btn {
    background: rgba(148, 163, 184, 0.12);
    color: #374151;
}

.mm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin-top: 12px;
}

.mm-form-grid-full {
    grid-column: 1 / -1;
}

.mm-inline-inputs {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.mm-field-label {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #4b5563;
}

/* Mentee: create learning request — field titles readable (not washed out) */
#mmCreateRequestForm .mm-field-label {
    color: #0f172a;
    font-weight: 600;
}

.mm-input,
.mm-textarea,
.mm-select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 7px 10px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 120ms ease, box-shadow 120ms ease;
    background: #ffffff;
}

.mm-input:focus,
.mm-textarea:focus,
.mm-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.mm-textarea {
    min-height: 72px;
    resize: vertical;
}

.mm-skill-field-hint {
    margin: 0 0 6px;
    font-size: 0.78rem;
    color: #64748b;
}

.mm-skill-input-wrap {
    position: relative;
}

.mm-skill-suggest-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 40;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.mm-skill-suggest-item {
    padding: 8px 12px;
    font-size: 0.84rem;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.1s ease;
}

.mm-skill-suggest-item:hover,
.mm-skill-suggest-item:focus {
    background: rgba(99, 102, 241, 0.08);
}

.mm-skill-suggest-other {
    font-weight: 600;
    color: #4f46e5;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    margin-top: 2px;
    padding-top: 10px;
}

.mm-skill-suggest-hint {
    padding: 8px 12px;
    font-size: 0.78rem;
    color: #64748b;
    font-style: italic;
}

.mm-empty-state {
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.8);
    background: linear-gradient(130deg, rgba(248, 250, 252, 0.9), rgba(239, 246, 255, 0.9));
    font-size: 0.9rem;
    color: #6b7280;
}

.mm-empty-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: #111827;
}

.mm-proposal-card {
    border-radius: 14px;
    border: 1px solid rgba(129, 140, 248, 0.45);
    padding: 12px 14px;
    margin-top: 10px;
    background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.10), rgba(249, 250, 251, 0.98));
}

.mm-proposal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.mm-mentor-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mm-mentor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    object-fit: cover;
}

.mm-mentor-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.mm-proposal-body {
    font-size: 0.83rem;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mm-proposal-footer {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mm-price-highlight {
    font-weight: 600;
    color: #111827;
}

.mm-status-pill {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.mm-status-accepted {
    background: rgba(22, 163, 74, 0.16);
    color: #166534;
}

.mm-status-rejected {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.mm-status-pending {
    background: rgba(59, 130, 246, 0.16);
    color: #1d4ed8;
}

.mm-stars-inline {
    display: inline-flex;
    gap: 2px;
    color: #f59e0b;
}

.mm-stars-inline svg {
    width: 14px;
    height: 14px;
}

.mm-stars-inline svg.mm-star-empty {
    opacity: 0.35;
}

.mm-mentee-layout {
    grid-template-columns: minmax(0, 1fr);
}

.mm-learning-request-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 220ms ease, max-height 240ms ease, margin 240ms ease, padding 240ms ease;
}

.mm-learning-request-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.mm-request-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.mm-request-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.mm-request-kpi-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.85rem;
}

.mm-request-actions {
    margin-top: 10px;
}

.mm-request-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.mm-danger-btn {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.mm-proposal-delete-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.98));
    color: #dc2626;
    box-shadow: 0 10px 18px rgba(239, 68, 68, 0.12);
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.mm-proposal-delete-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(220, 38, 38, 0.34);
    background: linear-gradient(180deg, rgba(254, 226, 226, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 14px 22px rgba(220, 38, 38, 0.16);
}

.mm-proposal-delete-btn:disabled {
    opacity: 0.65;
    cursor: default;
}

.mm-proposal-delete-btn svg {
    width: 18px;
    height: 18px;
}

.mm-request-card-removing {
    opacity: 0;
    transform: translateY(8px);
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.mm-proposals-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.28);
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.mm-proposals-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mm-proposals-panel {
    width: min(860px, 94vw);
    height: 100vh;
    background: #ffffff;
    box-shadow: -16px 0 36px rgba(15, 23, 42, 0.16);
    transform: translateX(100%);
    transition: transform 220ms ease;
    display: flex;
    flex-direction: column;
}

.mm-proposals-overlay.is-open .mm-proposals-panel {
    transform: translateX(0);
}

.mm-proposals-panel-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mm-proposals-title {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
}

.mm-proposals-subtitle {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

.mm-panel-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f8fafc;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    color: #334155;
}

.mm-proposals-panel-body {
    padding: 16px 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Mentee: in-progress / completed side panel — not plain white */
.mm-proposals-panel.mm-proposals-panel--learning-dashboard {
    background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 38%, #fdf4ff 72%, #f1f5f9 100%);
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-proposals-panel-header {
    padding: 20px 20px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(139, 92, 246, 0.12) 45%, rgba(236, 72, 153, 0.1) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.22);
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-proposals-title {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #4338ca 0%, #7c3aed 42%, #c026d3 88%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-proposals-subtitle {
    color: #475569;
    font-weight: 500;
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-proposals-panel-body {
    padding-top: 18px;
    background: transparent;
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dashboard-root {
    border-radius: 0;
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dashboard-card {
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
    box-shadow:
        0 20px 40px rgba(79, 70, 229, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dashboard-toolbar {
    padding: 12px 14px;
    margin: -1px -1px 0;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.06));
    border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dash-block--mentor {
    padding: 0;
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dash-block--mentor .mm-mentee-inprogress-mentor-card {
    border: 1px solid rgba(59, 130, 246, 0.35);
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(ellipse 90% 70% at 0% 100%, rgba(129, 140, 248, 0.2), transparent 50%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.95));
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.12);
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dash-block--progress {
    padding: 12px 14px 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.12) 0%, rgba(45, 212, 191, 0.08) 50%, rgba(255, 255, 255, 0.85) 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.08);
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dash-title--progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px !important;
    font-size: 0.88rem;
    color: #047857;
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dash-title--progress::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dash-block--progress .mm-inprogress-summary-item {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(16, 185, 129, 0.22);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.06);
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dash-block--progress .mm-inprogress-summary-item strong {
    color: #065f46;
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dash-block--plan {
    padding: 16px 18px 18px;
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(139, 92, 246, 0.14) 0%, rgba(236, 72, 153, 0.1) 55%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 12px 30px rgba(109, 40, 217, 0.1);
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dash-title--plan {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0 !important;
    font-size: 1rem;
    color: #6d28d9;
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dash-title--plan::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.28);
    flex-shrink: 0;
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-inprogress-plan-count {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.15));
    color: #5b21b6;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-inprogress-plan-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 245, 255, 0.92));
    border: 1px solid rgba(167, 139, 250, 0.35);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.08);
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-inprogress-plan-item-title {
    color: #5b21b6;
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-inprogress-plan-empty {
    background: linear-gradient(135deg, rgba(250, 245, 255, 0.95), rgba(253, 242, 248, 0.9));
    border: 1px dashed rgba(192, 38, 211, 0.35);
    color: #6b21a8;
}

.mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-inprogress-plan-empty p {
    color: #7c3aed;
    font-weight: 500;
}

.mm-contract-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.84rem;
    color: #475569;
}

.mm-proposals-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mm-proposal-card {
    border-radius: 12px;
    border: 1px solid rgba(129, 140, 248, 0.38);
    padding: 14px;
    margin-top: 0;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.09);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 220ms ease;
}

.mm-proposal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(79, 70, 229, 0.16);
}

.mm-proposal-card-fading {
    opacity: 0;
}

.mm-mentor-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mm-verified-badge-wrap {
    display: inline-flex;
    align-items: center;
}

.mm-verified-badge-wrap.mm-verified-badge-text {
    font-size: 0.75rem;
    color: #64748b;
}

.mm-verified-badge-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.mm-verified-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
    font-weight: 600;
}

.mm-proposal-rating-line {
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 0.8rem;
}

.mm-view-profile-btn.is-disabled {
    pointer-events: none;
    opacity: 0.6;
}

.mm-mentor-meta-link {
    text-decoration: none;
    color: inherit;
}

.mm-mentor-meta-link:hover .mm-mentor-name {
    color: #4338ca;
}

.mm-mentor-meta-link.is-disabled {
    cursor: default;
}

.mm-panel-complete-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mm-your-proposal-section .mm-request-section-title {
    margin-bottom: 8px;
}

.mm-your-proposal-card {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    padding: 14px 16px;
}

.mm-your-proposal-row {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #334155;
}

.mm-your-proposal-row:last-child {
    margin-bottom: 0;
}

.mm-your-proposal-row .mm-meta-label {
    margin-right: 6px;
    color: #64748b;
}

.mm-your-proposal-roadmap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mm-your-proposal-roadmap-text {
    white-space: pre-wrap;
    line-height: 1.45;
}

.mm-set-availability-section {
    padding: 16px;
    background: rgba(254, 243, 199, 0.3);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 10px;
}

.mm-set-availability-message {
    margin-bottom: 12px;
    color: #92400e;
    font-size: 0.95rem;
}

.mm-set-availability-cta {
    display: inline-block;
}

.mm-accept-modal-content {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 0;
}

.custom-modal:has(.mm-accept-modal-content) .custom-modal-content {
    width: min(760px, calc(100vw - 28px));
}

.custom-modal:has(.mm-accept-modal-content) .modal-body-custom {
    padding: 18px 20px 20px;
    max-height: min(84vh, 760px);
    overflow: hidden;
}

.mm-accept-modal-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 243, 255, 0.96)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 42%);
    border: 1px solid rgba(167, 139, 250, 0.22);
    box-shadow:
        0 14px 32px rgba(88, 28, 135, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.78);
}

.mm-accept-modal-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    min-height: 74px;
    padding: 12px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.mm-accept-modal-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7c3aed;
}

.mm-accept-modal-value {
    text-align: left;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.4;
    max-width: 100%;
    font-size: 0.88rem;
}

.mm-accept-flow-intro {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.mm-accept-flow-steps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mm-accept-flow-step {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.72);
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.mm-accept-flow-step.is-active {
    background: linear-gradient(135deg, #eef2ff, #ede9fe);
    color: #4338ca;
    transform: translateY(-1px);
}

.mm-accept-flow-copy {
    margin: 0;
    color: #334155;
    font-size: 0.82rem;
    line-height: 1.55;
    min-height: 2.6em;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mm-accept-intro-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(238, 242, 255, 0.92));
    border: 1px solid rgba(99, 102, 241, 0.16);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.mm-accept-intro-copy {
    display: grid;
    gap: 6px;
    color: #334155;
    line-height: 1.55;
    font-size: 0.86rem;
}

.mm-accept-intro-copy strong {
    color: #1e1b4b;
    font-size: 0.96rem;
}

.mm-accept-start-btn {
    min-height: 46px;
    justify-content: center;
}

.mm-accept-modal-row-amount {
    grid-column: 1 / -1;
    min-height: 0;
    margin-top: 2px;
    background: linear-gradient(135deg, rgba(250, 245, 255, 0.96), rgba(243, 232, 255, 0.88));
    border-color: rgba(167, 139, 250, 0.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.mm-accept-modal-price {
    color: #4c1d95;
    font-size: 0.88rem;
    font-weight: 700;
}

.mm-accept-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 0;
    flex-wrap: wrap;
    position: sticky;
    bottom: 0;
    padding-top: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.94) 28%);
    backdrop-filter: blur(4px);
    z-index: 2;
    box-shadow: 0 -8px 18px rgba(255,255,255,0.78);
}

.mm-accept-modal-actions .mm-secondary-btn,
.mm-accept-modal-actions .mm-primary-btn {
    flex: 1 1 160px;
    min-height: 46px;
    border-radius: 14px;
    justify-content: center;
}

.mm-accept-modal-actions .mm-secondary-btn {
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(148, 163, 184, 0.24);
}

.mm-accept-modal-actions .mm-primary-btn {
    box-shadow: 0 14px 26px rgba(124, 58, 237, 0.2);
}

.mm-accept-slot-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.16);
    min-height: 0;
    overflow: hidden;
    max-height: min(42vh, 340px);
}

.mm-accept-slot-status {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.5;
}

.mm-accept-slot-selected {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(237, 233, 254, 0.7);
    color: #5b21b6;
    font-size: 0.82rem;
    font-weight: 700;
}

.mm-accept-slot-stage {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
    animation: mmAcceptStageIn 0.22s ease;
}

.mm-accept-slot-stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.mm-accept-modal-content.is-time-stage .mm-accept-modal-summary {
    opacity: 0.88;
}

.mm-accept-modal-content.is-slot-ready .mm-accept-slot-selected {
    animation: mmAcceptStageIn 0.22s ease;
}

.mm-accept-slot-date-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 700;
}

.mm-slot-more-btn {
    align-self: flex-start;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.92);
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.mm-slot-more-btn:hover {
    background: rgba(99, 102, 241, 0.08);
}

.mm-slot-more-btn,
.mm-slot-back-link {
    flex-shrink: 0;
}

.mm-slot-modal-copy {
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

.mm-slot-step-wrap {
    min-height: 200px;
    margin-bottom: 14px;
}

.mm-slot-step {
    margin-bottom: 0;
}

.mm-slot-step-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.mm-slot-dates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0;
}

.mm-slot-date-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(100, 116, 139, 0.35);
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    font-size: 0.8rem;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.mm-slot-date-btn:hover,
.mm-slot-date-btn.active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
}

.mm-slot-times .mm-slot-time-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
}

.mm-slot-time-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(100, 116, 139, 0.35);
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    font-size: 0.8rem;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.mm-slot-time-btn:hover:not(:disabled) {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
}

.mm-slot-time-btn.active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
}

.mm-slot-time-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mm-accept-slot-stage::-webkit-scrollbar {
    width: 6px;
}

.mm-accept-slot-stage::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

@keyframes mmAcceptStageIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .custom-modal:has(.mm-accept-modal-content) .modal-body-custom {
        padding: 14px 12px 14px;
        max-height: 90vh;
    }

    .mm-accept-slot-section {
        padding: 12px;
        max-height: min(44vh, 320px);
    }

    .mm-slot-dates,
    .mm-slot-times .mm-slot-time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mm-slot-date-btn,
    .mm-slot-time-btn,
    .mm-slot-more-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .mm-accept-slot-stage-head {
        align-items: stretch;
    }

    .mm-accept-slot-date-pill {
        width: 100%;
        justify-content: center;
    }

    .mm-accept-modal-content {
        gap: 10px;
    }

    .mm-accept-intro-card {
        gap: 12px;
        padding: 13px;
        border-radius: 16px;
    }

    .mm-accept-modal-summary {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 13px;
    }

    .mm-accept-modal-row {
        min-height: 0;
        padding: 10px 11px;
        border-radius: 12px;
    }

    .mm-accept-modal-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .mm-accept-modal-value {
        max-width: 62%;
        text-align: right;
        font-size: 0.86rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mm-accept-modal-row-amount .mm-accept-modal-price {
        text-align: right;
        max-width: 62%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mm-accept-modal-actions {
        gap: 10px;
        padding-top: 8px;
        position: sticky;
        bottom: 0;
        background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.98) 26%);
        backdrop-filter: blur(6px);
    }

    .mm-accept-modal-actions .mm-secondary-btn,
    .mm-accept-modal-actions .mm-primary-btn,
    .mm-accept-start-btn {
        min-height: 44px;
    }

    .mm-accept-intro-copy {
        font-size: 0.82rem;
    }

    .mm-accept-intro-copy strong {
        font-size: 0.9rem;
    }

    .mm-slot-step-label {
        margin-bottom: 6px;
    }
}

.mm-slot-back-link {
    display: inline-block;
    margin-top: 12px;
    padding: 0;
    border: none;
    background: none;
    color: #6366f1;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.mm-slot-back-link:hover {
    text-decoration: underline;
}

.mm-slot-confirm-summary {
    padding: 12px 14px;
    background: #f1f5f9;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.mm-slot-confirm-line {
    margin: 0 0 4px;
    font-size: 0.85rem;
    color: #334155;
}

.mm-slot-confirm-line:last-child {
    margin-bottom: 0;
}

.mm-slot-confirm-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.mm-slot-modal-close {
    margin-top: 8px;
}

.custom-modal:has(.mm-plan-builder) .custom-modal-content {
    width: min(900px, calc(100vw - 28px));
    max-width: 900px;
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, #ffffff 48%, #f8fbff 100%);
}

.custom-modal:has(.mm-plan-builder) .modal-body-custom {
    padding: 0;
    max-height: min(88vh, 920px);
    overflow: auto;
}

.mm-plan-builder {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    min-height: 0;
    max-height: min(88vh, 920px);
}

.mm-create-plan-page-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mm-create-plan-header {
    margin-bottom: 0;
}

.mm-create-plan-page-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: stretch;
}

.mm-create-plan-summary-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 20px;
}

.mm-create-plan-summary-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mm-create-plan-summary-row strong {
    color: #0f172a;
    font-size: 1rem;
}

.mm-create-plan-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.mm-create-plan-builder-card {
    padding: 14px;
    overflow: hidden;
}

.mm-plan-error {
    margin: 0;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.98), rgba(255, 247, 237, 0.98));
    color: #b91c1c;
    box-shadow: 0 12px 24px rgba(127, 29, 29, 0.08);
}

.mm-plan-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 138px;
    gap: 10px;
    align-items: stretch;
}

.mm-plan-hero-copy {
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a, #1e293b 52%, #0f766e);
    color: #f8fafc;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16);
}

.mm-plan-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #cffafe;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.mm-plan-hero-copy h3 {
    margin: 0 0 6px;
    font-size: 1.12rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-wrap: balance;
}

.mm-plan-hero-copy p {
    margin: 0;
    color: rgba(241, 245, 249, 0.96);
    font-size: 0.8rem;
    line-height: 1.45;
    max-width: 54ch;
}

.mm-plan-hero-kpi {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff1dd, #ffffff);
    border: 1px solid rgba(251, 146, 60, 0.25);
    box-shadow: 0 12px 22px rgba(251, 146, 60, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mm-plan-hero-kpi-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a3412;
}

.mm-plan-hero-kpi strong {
    font-size: 1.16rem;
    line-height: 1;
    color: #111827;
}

.mm-plan-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mm-plan-progress-card {
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mm-plan-progress-card span {
    display: block;
    font-size: 0.72rem;
    color: #334155;
    margin-bottom: 4px;
    font-weight: 700;
}

.mm-plan-progress-card strong {
    font-size: 0.96rem;
    color: #0f172a;
}

.mm-plan-progress-card-remaining {
    border-color: rgba(16, 185, 129, 0.26);
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 12px 24px rgba(16, 185, 129, 0.08);
}

.mm-plan-progress-card-remaining span {
    color: #047857;
}

.mm-plan-progress-card-remaining strong {
    color: #065f46;
}

.mm-plan-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 10px;
    align-items: start;
    min-height: 0;
}

.mm-plan-shell.is-plan-ready {
    grid-template-columns: minmax(0, 1fr);
}

.mm-plan-shell.is-plan-ready .mm-plan-sidebar {
    max-width: none;
    width: 100%;
}

.mm-plan-composer,
.mm-plan-sidebar,
#mmPlanPreview .mm-request-section {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.07);
    padding: 12px;
}

.mm-plan-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mm-plan-sidebar.is-preview-state .mm-plan-preview-cta {
    display: none;
}

.mm-plan-composer-head {
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mm-plan-section-kicker {
    margin-bottom: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0284c7;
}

.mm-plan-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #eff6ff, #ffffff);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(59, 130, 246, 0.08);
}

.mm-plan-preview-cta {
    min-width: 150px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f766e, #10b981);
    border-color: transparent;
    box-shadow: 0 14px 24px rgba(16, 185, 129, 0.18);
}

.mm-plan-preview-cta:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d9488, #10b981);
    transform: translateY(-1px);
}

.mm-plan-preview-cta:disabled {
    background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
    color: #64748b;
    box-shadow: none;
    border-color: transparent;
}

.mm-plan-card {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
}

.mm-plan-form-card {
    padding: 12px;
}

.mm-plan-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mm-plan-form-grid .mm-form-grid-full {
    grid-column: 1 / -1;
}

.mm-plan-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.mm-plan-section-header .mm-meta-row {
    margin: 2px 0 0;
}

.mm-plan-slots-panel {
    margin-top: 10px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.8), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(125, 211, 252, 0.35);
}

.mm-plan-slots-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.mm-plan-more-btn {
    margin-left: auto;
    border-color: rgba(16, 185, 129, 0.26);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(255, 255, 255, 0.96));
    color: #047857;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.mm-plan-actions-row {
    margin-top: 8px;
}

.mm-plan-added-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    max-height: min(46vh, 420px);
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 10px;
}

.mm-plan-session-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(56px, 56px));
    gap: 10px;
    align-content: start;
    padding-top: 6px;
}

.mm-plan-session-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
}

.mm-plan-session-box:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 26px rgba(15, 23, 42, 0.12);
}

.mm-plan-session-box.is-active {
    border-color: rgba(15, 118, 110, 0.4);
    box-shadow: 0 14px 24px rgba(15, 118, 110, 0.16);
    transform: translateY(-2px);
}

.mm-plan-session-box-0 {
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
}

.mm-plan-session-box-1 {
    background: linear-gradient(180deg, #ecfeff, #cffafe);
    color: #0f766e;
}

.mm-plan-session-box-2 {
    background: linear-gradient(180deg, #fef3c7, #fde68a);
    color: #92400e;
}

.mm-plan-session-box-3 {
    background: linear-gradient(180deg, #fce7f3, #fbcfe8);
    color: #9d174d;
}

.mm-plan-session-box-count {
    font-size: 1rem;
    line-height: 1;
}

.mm-plan-selected-card {
    margin-top: 12px;
    padding: 10px 11px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
}

.mm-plan-empty-state {
    margin: 2px 0 0;
    white-space: nowrap;
}

.mm-plan-selected-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.mm-plan-selected-meta {
    margin-top: 6px;
    color: #475569;
    line-height: 1.4;
    font-size: 0.82rem;
}

.mm-plan-selected-actions {
    margin-top: 10px;
    justify-content: flex-start;
}

.mm-plan-selected-card .mm-plan-section-kicker {
    margin-bottom: 2px;
    font-size: 0.62rem;
}

.mm-plan-selected-card .mm-request-section-title {
    font-size: 0.92rem;
    line-height: 1.35;
}

.mm-plan-sidebar-summary,
.mm-plan-preview-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.mm-plan-sidebar-stat {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.mm-plan-sidebar-stat span {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
}

.mm-plan-sidebar-stat strong {
    font-size: 0.92rem;
    color: #0f172a;
}

.mm-plan-time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mm-plan-time-grid .mm-slot-time-btn {
    min-height: 40px;
    padding: 6px 10px;
    border-radius: 12px;
    border-color: rgba(14, 165, 233, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.95));
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(14, 165, 233, 0.08);
}

.mm-plan-time-grid .mm-slot-time-btn:hover:not(:disabled) {
    border-color: rgba(2, 132, 199, 0.5);
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.98), rgba(240, 249, 255, 0.98));
    color: #075985;
    transform: translateY(-1px);
}

.mm-plan-time-grid .mm-slot-time-btn.active {
    border-color: rgba(2, 132, 199, 0.55);
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #f8fafc;
    box-shadow: 0 14px 24px rgba(2, 132, 199, 0.22);
}

.mm-plan-inline-error {
    margin-top: 8px;
    color: #b91c1c;
    font-size: 0.78rem;
    line-height: 1.35;
}

#mmPlanPreview .mm-request-section-title {
    font-size: 1.2rem;
}

#mmPlanPreview .mm-request-outcome-card {
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.96), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(14, 165, 233, 0.16);
}

.mm-plan-preview-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mm-plan-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.mm-plan-preview-head-actions {
    gap: 8px;
    justify-content: flex-end;
}

.mm-plan-preview-scroll {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    max-height: min(50vh, 440px);
    overflow-y: auto;
    padding-right: 4px;
    margin-top: 10px;
}

.mm-plan-preview-card {
    margin-top: 0 !important;
    padding: 12px 14px;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.08);
}

.mm-plan-preview-card strong {
    display: inline-block;
    margin-bottom: 6px;
    color: #0f172a;
}

.mm-plan-preview-card-meta {
    color: #334155;
    line-height: 1.5;
}

.mm-create-plan-page-shell {
    gap: 14px;
}

.mm-create-plan-topbar {
    justify-content: flex-start;
}

.mm-create-plan-builder-card {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
}

.mm-plan-hero {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 14px;
}

.mm-plan-hero-copy {
    padding: 18px 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a, #172554 58%, #0f766e);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.18);
}

.mm-plan-hero-copy h3 {
    margin-bottom: 8px;
    font-size: 1.35rem;
    line-height: 1.05;
}

.mm-plan-hero-copy p {
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 58ch;
}

.mm-plan-hero-kpi {
    padding: 16px;
    border-radius: 24px;
    border-color: rgba(251, 146, 60, 0.18);
    box-shadow: 0 16px 28px rgba(251, 146, 60, 0.08);
    justify-content: center;
    gap: 12px;
}

.mm-plan-hero-kpi-stack {
    gap: 10px;
}

.mm-plan-hero-kpi-item {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(251, 146, 60, 0.14);
}

.mm-plan-shell {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 14px;
}

.mm-plan-shell.mm-plan-shell-editor-only {
    grid-template-columns: minmax(0, 1fr);
}

.mm-plan-composer,
.mm-plan-sidebar {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.06);
    padding: 18px;
}

.mm-plan-composer-main {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98)),
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.06), transparent 24%);
}

.mm-plan-sidebar {
    top: 18px;
}

.mm-plan-composer-head {
    gap: 16px;
    margin-bottom: 16px;
}

.mm-plan-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mm-plan-preview-cta {
    min-width: 164px;
    min-height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f766e, #059669);
}

.mm-plan-card {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98));
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.04);
}

.mm-plan-form-card,
.mm-plan-slots-panel {
    padding: 18px;
}

.mm-plan-slots-panel {
    margin-top: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(191, 219, 254, 0.6);
}

.mm-plan-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.mm-plan-editor-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248,250,252,0.98), rgba(255,255,255,0.98));
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.mm-plan-editor-status span {
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mm-plan-editor-status strong {
    font-size: 0.98rem;
    color: #0f172a;
}

.mm-plan-editor-status.is-ready {
    background: linear-gradient(135deg, rgba(236,253,245,0.98), rgba(255,255,255,0.98));
    border-color: rgba(16, 185, 129, 0.2);
}

.mm-plan-editor-status.is-ready strong,
.mm-plan-editor-status.is-ready span {
    color: #047857;
}

.mm-plan-added-list {
    max-height: min(52vh, 460px);
}

.mm-plan-preview-summary-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
    margin-bottom: 14px;
}

.mm-plan-preview-scroll-wide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 0;
    max-height: none;
    align-items: stretch;
}

.mm-plan-preview-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    box-shadow:
        0 16px 28px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.mm-plan-preview-card-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.mm-plan-preview-index {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(6, 182, 212, 0.08));
    color: #0c4a6e;
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid rgba(14, 165, 233, 0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.mm-plan-preview-card strong {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.mm-plan-preview-card-meta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.6;
}

.mm-plan-sidebar-expanded {
    width: 100%;
    max-width: none;
}

.mm-plan-sidebar-expanded .mm-plan-added-list {
    max-height: none;
}

/* CreatePlan compact overrides */
.mm-create-plan-builder-card {
    overflow: visible;
    padding: 14px;
}

.mm-plan-builder {
    gap: 12px;
    max-height: none;
}

.mm-plan-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.mm-plan-hero-kpi,
.mm-plan-hero-kpi-row {
    display: none;
}

.mm-plan-hero-copy {
    padding: 14px 16px;
    border-radius: 18px;
}

.mm-plan-hero-copy h3 {
    margin-bottom: 6px;
    font-size: 1.08rem;
    line-height: 1.12;
}

.mm-plan-hero-copy p {
    font-size: 0.8rem;
    line-height: 1.45;
    max-width: none;
}

.mm-plan-hero-kpi {
    padding: 10px;
    border-radius: 16px;
    gap: 8px;
}

.mm-plan-hero-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.mm-plan-hero-kpi-item {
    padding: 8px 10px;
    border-radius: 12px;
}

.mm-plan-hero-kpi-label {
    font-size: 0.55rem;
}

.mm-plan-hero-kpi strong {
    font-size: 0.95rem;
}

.mm-plan-composer,
.mm-plan-sidebar {
    padding: 14px;
    border-radius: 18px;
}

.mm-plan-composer-head {
    margin-bottom: 12px;
}

.mm-plan-form-card,
.mm-plan-slots-panel {
    padding: 14px;
}

.mm-plan-slots-panel {
    margin-top: 12px;
}

.mm-plan-time-grid .mm-slot-time-btn {
    min-height: 38px;
}

.mm-plan-editor-footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding-top: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.98) 30%);
    backdrop-filter: blur(4px);
}

.mm-plan-actions-row {
    margin-top: 0;
}

.mm-plan-actions-row .mm-primary-btn {
    min-height: 44px;
}

.mm-plan-slots-actions {
    justify-content: flex-end;
    margin-top: 14px;
}

@media (max-width: 768px) {
    .mm-create-plan-builder-card {
        padding: 10px;
    }

    .mm-plan-hero-copy,
    .mm-plan-composer,
    .mm-plan-sidebar,
    .mm-plan-hero-kpi {
        padding: 12px;
    }

    .mm-plan-hero-kpi-row {
        grid-template-columns: 1fr;
    }

    .mm-plan-editor-footer {
        padding-top: 10px;
    }
}

.mm-plan-added-list::-webkit-scrollbar,
.mm-plan-preview-scroll::-webkit-scrollbar {
    width: 8px;
}

.mm-plan-added-list::-webkit-scrollbar-thumb,
.mm-plan-preview-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
}

#mmPlanPreview .mm-actions {
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 960px) {
    .mm-plan-hero {
        grid-template-columns: 1fr;
    }

    .mm-create-plan-page-meta {
        grid-template-columns: 1fr;
    }

    .mm-create-plan-topbar {
        justify-content: flex-start;
    }

    .mm-create-plan-summary-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .custom-modal:has(.mm-plan-builder) .custom-modal-content {
        width: min(100vw - 18px, 760px);
    }

    .mm-plan-shell {
        grid-template-columns: 1fr;
    }

    .mm-plan-sidebar {
        position: static;
    }

    .mm-plan-added-list {
        max-height: min(34vh, 320px);
    }
}

@media (max-width: 768px) {
    .mm-create-plan-page-shell {
        gap: 12px;
    }

    .mm-create-plan-summary-card {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .mm-create-plan-builder-card {
        padding: 12px;
    }

    .custom-modal:has(.mm-plan-builder) .custom-modal-content {
        max-width: 100%;
        width: min(100%, calc(100vw - 8px));
        border-radius: 20px 20px 0 0;
    }

    .custom-modal:has(.mm-plan-builder) .modal-body-custom,
    .mm-plan-builder {
        max-height: none;
    }

    .mm-plan-builder {
        padding: 10px 8px 12px;
        gap: 10px;
    }

    .mm-plan-hero,
    .mm-plan-shell,
    .mm-plan-progress {
        grid-template-columns: 1fr;
    }

    .mm-plan-composer,
    .mm-plan-sidebar,
    #mmPlanPreview .mm-request-section,
    .mm-plan-hero-copy,
    .mm-plan-hero-kpi {
        padding: 12px 10px;
        border-radius: 16px;
    }

    .mm-plan-editor-footer,
    .mm-plan-preview-card-top {
        flex-direction: column;
        align-items: stretch;
    }

    .mm-plan-preview-scroll-wide {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mm-plan-editor-status {
        width: 100%;
    }

    .mm-plan-sidebar {
        position: static;
    }

    .mm-plan-composer-head,
    .mm-plan-preview-head,
    .mm-plan-section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .mm-plan-section-badge {
        width: fit-content;
    }

    .mm-plan-preview-cta {
        min-width: 0;
        justify-content: center;
    }

    .mm-plan-form-card,
    .mm-plan-slots-panel {
        padding: 10px;
    }

    .mm-plan-form-grid,
    .mm-plan-preview-summary {
        grid-template-columns: 1fr;
    }

    .mm-plan-session-boxes {
        grid-template-columns: repeat(auto-fit, minmax(52px, 52px));
        gap: 8px;
        padding-top: 4px;
    }

    .mm-plan-session-box {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .mm-plan-hero-copy p {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .mm-plan-added-list,
    .mm-plan-preview-scroll {
        max-height: min(32vh, 280px);
    }

    .mm-plan-time-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .mm-plan-slots-head,
    .mm-plan-actions-row,
    #mmPlanPreview .mm-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mm-plan-more-btn,
    .mm-plan-actions-row .mm-primary-btn,
    .mm-plan-actions-row .mm-secondary-btn,
    #mmPlanPreview .mm-primary-btn,
    #mmPlanPreview .mm-secondary-btn {
        width: 100%;
        justify-content: center;
    }

    .mm-plan-sidebar-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mm-plan-head-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: center;
    }

    .mm-plan-head-actions .mm-primary-btn,
    .mm-plan-head-actions .mm-secondary-btn {
        width: 100%;
        min-width: 0;
    }

    .mm-plan-preview-summary-inline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mm-plan-slots-head .mm-plan-more-btn {
        order: 3;
        margin-top: 10px;
    }

    .mm-plan-preview-scroll-wide {
        gap: 10px;
    }

    .mm-plan-preview-card {
        padding: 10px 11px;
        border-radius: 14px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
        box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
    }

    .mm-plan-preview-card-top {
        gap: 8px;
    }

    .mm-plan-preview-index {
        padding: 5px 8px;
        font-size: 0.62rem;
        border-radius: 999px;
        border-color: rgba(14, 165, 233, 0.12);
    }

    .mm-plan-preview-card strong {
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .mm-plan-preview-card-meta {
        margin-top: 6px;
        padding-top: 6px;
        font-size: 0.82rem;
        line-height: 1.4;
    }
}

.mm-choose-slot-btn {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

/* My Learning Requests – tabs */
.mm-requests-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.mm-requests-tab {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mm-requests-tab:hover {
    background: #e2e8f0;
    color: #334155;
}

.mm-requests-tab.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

.mm-requests-panels {
    min-height: 120px;
}

.mm-requests-panel {
    animation: mm-panel-fade 0.2s ease;
}

@keyframes mm-panel-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mm-card-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

.mm-mentor-preview-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mm-mentor-preview-card {
    position: relative;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 20px;
    padding: 16px;
    max-width: none;
    width: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 40%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
    overflow: hidden;
}

.mm-mentor-preview-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 18px 36px rgba(76, 29, 149, 0.12);
}

.mm-mentor-preview-card.is-active {
    border-color: rgba(124, 58, 237, 0.55);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.16), 0 18px 36px rgba(76, 29, 149, 0.14);
}

/* Mentee request list: same preview card shell as mentor (grid via .mm-mentor-preview-list on panel) */
.mm-mentor-preview-card.mm-mentee-request-preview-card {
    margin-top: 0;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease, opacity 220ms ease, max-height 240ms ease, margin 240ms ease, padding 240ms ease;
}

/* Mentee requests: same 3-column grid as mentor preview list (no horizontal scroller) */
#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-requests-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-requests-grid-compact .mm-mentee-request-preview-card {
    max-width: none;
    width: 100%;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-open-request-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.02em;
    min-width: 0;
}

/* Mentee open: stack expiry then buttons so timer never overlaps View Proposals */
#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-open-request-card .mm-preview-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    flex-wrap: nowrap;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-open-request-card .mm-preview-footer-meta {
    flex: none;
    width: 100%;
    min-height: 0;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-open-request-card .mm-preview-timer-row {
    width: 100%;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-open-request-card .mm-preview-timer-row .mm-preview-expiry {
    width: 100%;
    min-width: 0;
    max-width: none;
    white-space: normal;
    justify-content: flex-start;
    text-align: left;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-open-request-card .mm-preview-footer-action {
    width: 100%;
    margin-left: 0;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-open-request-card .mm-mentee-preview-footer-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-open-request-card .mm-mentee-preview-footer-actions .mm-secondary-btn.mm-mentee-preview-cta {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

/* In progress / completed: session chip + Track Learning or View Details on one row */
#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-inprogress-meta-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: nowrap;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-inprogress-meta-actions .mm-mentee-preview-footer-actions {
    margin-top: 0;
    margin-left: 0;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-session-meta-chip.mm-preview-meta-chip {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 11px;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-session-meta-chip .mm-meta-label {
    margin: 0;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-session-meta-chip > span:last-child {
    width: 100%;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.84rem;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-inprogress-request-card .mm-preview-topbar {
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.mm-mentee-skill-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #5b21b6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.18));
    border: 1px solid rgba(167, 139, 250, 0.35);
}

.mm-mentee-preview-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-left: auto;
}

.mm-mentee-preview-footer-actions .mm-proposal-delete-btn {
    flex-shrink: 0;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-request-preview-card .mm-mentee-preview-cta {
    min-width: 124px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.22);
    text-align: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 12px;
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-request-preview-card .mm-mentee-preview-cta:hover {
    border-color: transparent;
    box-shadow: 0 16px 28px rgba(124, 58, 237, 0.24);
}

#mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-request-preview-card .mm-mentee-preview-cta.mm-mentee-preview-cta-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.mm-preview-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    margin-bottom: 12px;
}

.mm-preview-status-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mm-preview-status-chip {
    flex-shrink: 0;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.mm-preview-goal-card {
    position: relative;
    margin-top: 0;
    padding: 12px 12px 12px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.mm-preview-goal-card::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #8b5cf6, #3b82f6);
}

.mm-preview-goal-card .mm-goal-inline {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.mm-preview-goal-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.45;
}

.mm-preview-outcome-inline {
    margin-top: 8px;
}

.mm-preview-outcome-line {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #475569;
    font-size: 0.83rem;
    font-weight: 500;
    line-height: 1.2;
}

.mm-preview-outcome-line .mm-goal-inline-label {
    font-weight: 700;
    color: #334155;
}

.mm-preview-meta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.mm-preview-meta-chip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 10px 11px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #1e293b;
    font-size: 0.82rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.mm-preview-meta-chip .mm-meta-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.mm-preview-footer {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    flex-wrap: wrap;
}

.mm-preview-footer-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    min-height: 28px;
    flex: 1 1 0;
}

.mm-preview-footer-action {
    flex: 0 0 auto;
    width: fit-content;
    margin-left: auto;
}

.mm-preview-footer-action .mm-secondary-btn {
    min-width: 160px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.22);
    text-align: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 12px;
}

.mm-preview-footer-action .mm-secondary-btn:hover {
    border-color: transparent;
    box-shadow: 0 16px 28px rgba(124, 58, 237, 0.24);
}

.mm-preview-timer-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
}

.mm-preview-timer-row .mm-preview-expiry {
    min-width: 150px;
    justify-content: center;
    border: 1px solid rgba(248, 113, 113, 0.22);
    border-radius: 12px;
    padding: 5px 8px;
    font-size: 0.69rem;
    font-weight: 700;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
}

.mm-preview-timer-row .mm-preview-expiry [data-mm-expiry-label] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mm-mentor-request-details {
    margin-top: 14px;
    display: none;
}

.mm-mentor-request-details.is-open {
    display: block;
}

.mm-mentor-preview-list.is-hidden {
    display: none;
}

/* Mentor-side dark compact mode */
#mentorMatchRoot.mm-mentor-mode .mentor-match-header h1 {
    background: none;
    -webkit-text-fill-color: initial;
    color: #312e81;
}

#mentorMatchRoot.mm-mentor-mode .mentor-match-header p {
    color: #6d28d9;
}

#mentorMatchRoot.mm-mentor-mode .mm-card {
    background: linear-gradient(145deg, #ffffff, #f6f0ff);
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.14);
    color: #1f2937;
    padding: 12px 14px;
}

#mentorMatchRoot.mm-mentor-mode .mm-card:hover {
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.2);
}

#mentorMatchRoot.mm-mentor-mode .mm-card-title {
    color: #1e1b4b;
    font-size: 0.95rem;
}

#mentorMatchRoot.mm-mentor-mode .mm-meta-row,
#mentorMatchRoot.mm-mentor-mode .mm-meta-label,
#mentorMatchRoot.mm-mentor-mode .mm-field-label {
    color: #475569;
}

#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] {
    border-radius: 12px;
    padding: 12px;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-preview-card {
    background: linear-gradient(145deg, #ffffff, #f6f0ff);
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.12);
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-preview-card.is-active {
    border-color: rgba(124, 58, 237, 0.8);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.25), 0 12px 24px rgba(124, 58, 237, 0.16);
}

/* Mentor in-progress list card: session chip (label / value stacked) + View on one row */
#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-preview-meta-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: nowrap;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-preview-meta-actions .mm-mentor-inprogress-preview-actions {
    margin-left: 0;
    flex-shrink: 0;
    width: auto;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-session-meta-chip.mm-preview-meta-chip {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 11px;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-session-meta-chip .mm-meta-label {
    margin: 0;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-session-meta-chip > span:last-child {
    width: 100%;
    font-weight: 600;
    color: #1e1b4b;
    font-size: 0.84rem;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] .mm-form-grid {
    gap: 8px 10px;
    margin-top: 8px;
}

#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] .mm-input,
#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] .mm-textarea {
    background: #ffffff;
    color: #1f2937;
    border-color: rgba(167, 139, 250, 0.55);
    border-radius: 9px;
    padding: 6px 9px;
    font-size: 0.82rem;
}

#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] .mm-input::placeholder,
#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] .mm-textarea::placeholder {
    color: #94a3b8;
}

#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] .mm-input:focus,
#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] .mm-textarea:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.35);
}

#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] .mm-textarea {
    min-height: 60px;
}

#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] .mm-primary-btn {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.8rem;
}

#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] .mm-chip {
    font-size: 0.7rem;
    padding: 2px 8px;
}

#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] .mm-chip-open {
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-search-row {
    margin-bottom: 14px;
}

#mentorMatchRoot.mm-mentor-mode #mmMentorRequestTabs {
    margin-bottom: 12px;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-search-input {
    max-width: 420px;
    background: rgba(255, 255, 255, 0.92);
}

.mm-expiry-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.14);
    color: #4338ca;
    text-align: center;
}

.mm-expiry-timer.is-expired {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

#mentorMatchRoot.mm-mentor-mode .mm-expiry-timer {
    background: rgba(196, 181, 253, 0.3);
    color: #5b21b6;
}

#mentorMatchRoot.mm-mentor-mode .mm-expiry-timer.is-expired {
    background: rgba(254, 205, 211, 0.55);
    color: #be123c;
}

#mentorMatchRoot.mm-mentor-mode .mm-preview-goal-card,
#mentorMatchRoot.mm-mentor-mode .mm-preview-meta-chip {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(167, 139, 250, 0.18);
}

#mentorMatchRoot.mm-mentor-mode .mm-preview-expiry {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.92);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

#mentorMatchRoot.mm-mentor-mode .mm-preview-expiry .mm-request-info-icon {
    color: #dc2626;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-detail-card {
    border-radius: 22px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 243, 255, 0.98));
    border: 1px solid rgba(167, 139, 250, 0.32);
    box-shadow: 0 18px 36px rgba(88, 28, 135, 0.08);
}

.mm-request-detail-card .mm-inprogress-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
    gap: 18px;
    align-items: start;
}

.mm-request-detail-card .mm-inprogress-summary-col {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.mm-request-detail-card .mm-inprogress-block {
    margin-top: 0 !important;
    padding-top: 18px;
}

.mm-request-detail-card .mm-inprogress-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mm-request-detail-card .mm-inprogress-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(167, 139, 250, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    min-width: 0;
}

.mm-request-detail-card .mm-inprogress-summary-item .mm-meta-label {
    font-size: 0.7rem;
    line-height: 1.25;
    color: #64748b;
    font-weight: 600;
}

.mm-request-detail-card .mm-inprogress-summary-item strong {
    color: #1e1b4b;
    font-size: 0.82rem;
    line-height: 1.35;
    word-break: break-word;
}

.mm-request-detail-card .mm-inprogress-summary-item-full {
    grid-column: 1 / -1;
}

.mm-request-detail-card .mm-inprogress-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mm-request-detail-card .mm-inprogress-plan-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
    font-size: 0.76rem;
    font-weight: 700;
}

.mm-request-detail-card .mm-inprogress-plan-scroll {
    max-height: 400px;
    overflow: auto;
    padding-right: 6px;
    display: grid;
    gap: 12px;
}

.mm-request-detail-card .mm-inprogress-plan-item {
    padding: 14px 15px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 255, 0.98));
    border: 1px solid rgba(167, 139, 250, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.mm-request-detail-card .mm-inprogress-plan-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.mm-request-detail-card .mm-inprogress-plan-item-title {
    color: #1e1b4b;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.mm-request-detail-card .mm-inprogress-plan-item-index {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
    font-size: 0.72rem;
    font-weight: 700;
}

.mm-request-detail-card .mm-inprogress-plan-item-meta {
    color: #5f6b84;
    font-size: 0.84rem;
    line-height: 1.45;
}

.mm-request-detail-card .mm-inprogress-plan-item-meta + .mm-inprogress-plan-item-meta {
    margin-top: 4px;
}

.mm-inprogress-plan-item-schedule {
    color: #5f6b84;
    font-size: 0.84rem;
    line-height: 1.45;
    margin-top: 2px;
}

.mm-inprogress-plan-item-status {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 8px;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.mm-plan-status-inner {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.mm-plan-status-svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    display: block;
}

.mm-plan-status-label {
    line-height: 1.25;
}

.mm-plan-status--completed {
    color: #15803d;
}

.mm-plan-status--scheduled {
    color: #eab308;
}

.mm-plan-status--pending {
    color: #64748b;
}

.mm-plan-status--live {
    color: #b45309;
}

.mm-plan-status--awaiting {
    color: #a16207;
}

.mm-plan-status--cancelled,
.mm-plan-status--disputed {
    color: #b91c1c;
}

.mm-request-detail-card .mm-inprogress-plan-empty {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(250, 245, 255, 0.96), rgba(255, 255, 255, 0.98));
    border: 1px dashed rgba(167, 139, 250, 0.34);
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
    gap: 18px;
    align-items: start;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-summary-col {
    display: grid;
    gap: 18px;
    min-width: 0;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-block {
    margin-top: 0 !important;
    padding-top: 18px;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-skill-block .mm-request-outcome-card {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(167, 139, 250, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    min-width: 0;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-summary-item .mm-meta-label {
    font-size: 0.7rem;
    line-height: 1.25;
    color: #64748b;
    font-weight: 600;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-summary-item strong {
    color: #1e1b4b;
    font-size: 0.82rem;
    line-height: 1.35;
    word-break: break-word;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-summary-item-full {
    grid-column: 1 / -1;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-block {
    min-width: 0;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
    font-size: 0.76rem;
    font-weight: 700;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-scroll {
    max-height: 400px;
    overflow: auto;
    padding-right: 6px;
    display: grid;
    gap: 12px;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-scroll::-webkit-scrollbar {
    width: 8px;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-scroll::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.45);
    border-radius: 999px;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-item {
    padding: 14px 15px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 255, 0.98));
    border: 1px solid rgba(167, 139, 250, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-item-title {
    color: #1e1b4b;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-item-index {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
    font-size: 0.72rem;
    font-weight: 700;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-item-meta {
    color: #5f6b84;
    font-size: 0.84rem;
    line-height: 1.45;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-item-meta + .mm-inprogress-plan-item-meta {
    margin-top: 4px;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-empty {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(250, 245, 255, 0.96), rgba(255, 255, 255, 0.98));
    border: 1px dashed rgba(167, 139, 250, 0.34);
    color: #5b21b6;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-empty p {
    margin: 0;
    line-height: 1.6;
}

#mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-empty .mm-primary-btn {
    width: fit-content;
}

/* Mentor in-progress detail (View): colorful sections (aligned with mentee Learning Dashboard) */
#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card.mm-request-detail-card {
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 22px;
    background: linear-gradient(168deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 242, 255, 0.9) 42%, rgba(253, 242, 248, 0.85) 100%);
    box-shadow:
        0 22px 48px rgba(79, 70, 229, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    overflow: hidden;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-toolbar {
    padding: 12px 16px;
    margin: -1px -1px 0 -1px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.11), rgba(236, 72, 153, 0.08));
    border-bottom: 1px solid rgba(99, 102, 241, 0.16);
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-learning-dash-block--skill {
    padding: 0 !important;
    padding-top: 0 !important;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-learning-dash-title--skill {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px !important;
    font-size: 1rem;
    color: #1d4ed8;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-learning-dash-title--skill::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28);
    flex-shrink: 0;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-mentor-inprogress-skill-card.mm-request-outcome-card {
    border: 1px solid rgba(59, 130, 246, 0.34);
    background:
        radial-gradient(ellipse 110% 85% at 100% 0%, rgba(56, 189, 248, 0.22), transparent 52%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.11);
    color: #1e3a8a;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-mentor-inprogress-skill-card.mm-skill-title-full {
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: clamp(0.75rem, 0.35rem + 1.4vw, 1.05rem);
    line-height: 1.35;
    max-width: 100%;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-learning-dash-block--progress.mm-inprogress-block {
    margin-top: 0 !important;
    padding: 12px 14px 14px !important;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.13) 0%, rgba(45, 212, 191, 0.09) 50%, rgba(255, 255, 255, 0.9) 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.08);
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-learning-dash-title--progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px !important;
    font-size: 0.88rem;
    color: #047857;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-learning-dash-title--progress::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.26);
    flex-shrink: 0;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-learning-dash-block--progress .mm-inprogress-summary-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(16, 185, 129, 0.24);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.06);
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-learning-dash-block--progress .mm-inprogress-summary-item strong {
    color: #065f46;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-mm-package-share-note {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 500;
    color: #0f5132;
    line-height: 1.45;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-mm-package-share-note strong {
    font-weight: 700;
    color: #047857;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-mm-plan-earnings-value {
    display: block;
    min-width: 0;
    line-height: 1.4;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-mm-plan-earnings-strong {
    color: #065f46;
    font-size: inherit;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-mm-plan-earnings-cap {
    font-size: 0.7rem;
    font-weight: 500;
    color: #047857;
    opacity: 0.92;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-mm-plan-earnings-fee {
    display: inline;
    color: #059669;
    font-size: 0.64rem;
    font-weight: 500;
    opacity: 0.88;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-inprogress-summary-item-earnings .mm-meta-label {
    margin-bottom: 2px;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-learning-dash-block--plan.mm-inprogress-block {
    margin-top: 0 !important;
    padding: 16px 18px 18px !important;
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.1) 55%, rgba(255, 255, 255, 0.92) 100%);
    border: 1px solid rgba(139, 92, 246, 0.32);
    box-shadow: 0 12px 32px rgba(109, 40, 217, 0.1);
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-learning-dash-title--plan {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0 !important;
    font-size: 1rem;
    color: #6d28d9;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-learning-dash-title--plan::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.28);
    flex-shrink: 0;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-inprogress-plan-count {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(236, 72, 153, 0.14));
    color: #5b21b6;
    border: 1px solid rgba(124, 58, 237, 0.22);
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-inprogress-plan-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 255, 0.94));
    border: 1px solid rgba(167, 139, 250, 0.35);
    box-shadow: 0 8px 22px rgba(109, 40, 217, 0.08);
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-inprogress-plan-item-title {
    color: #5b21b6;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-inprogress-plan-empty {
    background: linear-gradient(135deg, rgba(250, 245, 255, 0.95), rgba(253, 242, 248, 0.92));
    border: 1px dashed rgba(192, 38, 211, 0.38);
    color: #6b21a8;
}

#mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-inprogress-plan-empty p {
    color: #7c3aed;
    font-weight: 500;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

#mentorMatchRoot.mm-mentor-mode .mm-back-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(167, 139, 250, 0.28);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,243,255,0.96));
    color: #5b21b6;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.12);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

#mentorMatchRoot.mm-mentor-mode .mm-back-icon-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 58, 237, 0.42);
    box-shadow: 0 14px 24px rgba(124, 58, 237, 0.16);
}

#mentorMatchRoot.mm-mentor-mode .mm-back-icon-btn svg {
    width: 18px;
    height: 18px;
}

#mentorMatchRoot.mm-mentor-mode .mm-back-icon-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18), 0 12px 22px rgba(124, 58, 237, 0.16);
}

#mentorMatchRoot.mm-mentor-mode .mm-request-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-person {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-person-avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.14);
    background: #ede9fe;
    flex-shrink: 0;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-person-copy {
    min-width: 0;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-person-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 4px;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-person-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1e1b4b;
    line-height: 1.25;
}

#mentorMatchRoot.mm-mentor-mode .mm-goal-inline {
    margin-top: 4px;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #4338ca;
}

#mentorMatchRoot.mm-mentor-mode .mm-goal-inline-label {
    font-weight: 700;
    color: #312e81;
}

#mentorMatchRoot.mm-mentor-mode .mm-goal-inline-text {
    font-weight: 600;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-info-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-info-chip,
#mentorMatchRoot.mm-mentor-mode .mm-request-expiry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.18);
    background: rgba(255, 255, 255, 0.88);
    color: #4c1d95;
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

#mentorMatchRoot.mm-mentor-mode .mm-request-info-icon {
    font-size: 0.95rem;
    line-height: 1;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-section {
    padding-top: 18px;
    border-top: 1px solid rgba(167, 139, 250, 0.16);
}

#mentorMatchRoot.mm-mentor-mode .mm-request-section + .mm-request-section {
    margin-top: 18px;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #312e81;
    margin-bottom: 10px;
}

#mentorMatchRoot .mm-mentee-inprogress-mentor-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    box-shadow:
        0 18px 28px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

#mentorMatchRoot .mm-mentee-inprogress-mentor-card .mm-proposal-header {
    margin-bottom: 14px;
}

#mentorMatchRoot .mm-mentee-inprogress-mentor-card .mm-proposal-body {
    gap: 10px;
}

#mentorMatchRoot .mm-mentee-inprogress-mentor-card .mm-proposal-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(226, 232, 240, 0.88);
}

#mentorMatchRoot .mm-mentee-inprogress-mentor-card .mm-view-profile-btn {
    min-width: 152px;
    justify-content: center;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-outcome-card {
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(250, 245, 255, 0.96), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(167, 139, 250, 0.2);
    color: #4338ca;
    font-size: 0.92rem;
    line-height: 1.7;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-form-grid {
    gap: 16px;
}

@media (min-width: 961px) {
    #mentorMatchRoot.mm-mentor-mode .mm-request-form-grid {
        grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.7fr);
        align-items: start;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-form-grid .mm-form-grid-full:first-child,
    #mentorMatchRoot.mm-mentor-mode .mm-request-form-grid .mm-form-grid-full:nth-child(2) {
        grid-column: span 1;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-form-grid .mm-form-grid-full:nth-child(3) {
        grid-column: 1 / -1;
    }
}

#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] .mm-input,
#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] .mm-textarea {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.92rem;
    border-radius: 14px;
}

#mentorMatchRoot.mm-mentor-mode [data-mm-request-card] .mm-textarea {
    min-height: 150px;
    line-height: 1.55;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-actions-section {
    padding-top: 20px;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-submit-row {
    align-items: flex-start;
    gap: 12px;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-submit-btn {
    min-height: 48px;
    padding: 12px 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #c084fc, #7c3aed);
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.22);
    font-size: 0.92rem;
    font-weight: 700;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-submit-copy {
    margin: 0;
    max-width: 560px;
    color: #6b21a8;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-budget-copy {
    margin-top: 8px;
    font-size: 0.74rem;
    line-height: 1.45;
    color: #7c3aed;
}

#mentorMatchRoot.mm-mentor-mode .mm-inline-error {
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.4;
}

#mentorMatchRoot.mm-mentor-mode .mm-request-expiry,
#mentorMatchRoot.mm-mentor-mode .mm-expiry-timer {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.92);
    border-color: rgba(248, 113, 113, 0.3);
}

#mentorMatchRoot.mm-mentor-mode .mm-request-expiry .mm-request-info-icon,
#mentorMatchRoot.mm-mentor-mode .mm-expiry-timer .mm-request-info-icon {
    color: #dc2626;
}

@media (max-width: 960px) {
    .mentor-match-main {
        padding: 16px 16px 28px;
    }
    
    .mentor-match-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .mentor-match-header {
        align-items: flex-start;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-hero,
    #mentorMatchRoot.mm-mentor-mode .mm-request-info-row {
        flex-direction: column;
        align-items: stretch;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-expiry {
        width: fit-content;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-inprogress-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .mm-request-detail-card .mm-inprogress-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    #mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-scroll {
        max-height: 320px;
    }

    .mm-request-detail-card .mm-inprogress-plan-scroll {
        max-height: 320px;
    }
}

@media (max-width: 640px) {
    .mentor-match-main {
        padding: 14px 14px 24px;
    }

    .mentor-match-header {
        align-items: flex-start;
        gap: 6px;
    }

    .mentor-match-header h1 {
        font-size: 1.6rem;
    }

    .mentor-match-layout {
        gap: 16px;
    }

    .mm-card {
        padding: 14px 14px;
        border-radius: 14px;
    }

    /* Learning Requests: stack header and description, compact Create button */
    .mm-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 10px;
    }

    .mm-card-header .mm-card-title {
        font-size: 0.95rem;
    }

    .mm-card-header .mm-meta-row {
        margin: 2px 0 0;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .mm-card-header #mmCreateRequestBtn,
    .mm-card-header .mm-primary-btn {
        width: auto;
        min-width: 160px;
        align-self: flex-start;
        padding: 8px 16px;
        font-size: 0.875rem;
    }

    .mm-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mm-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mm-primary-btn,
    .mm-secondary-btn {
        justify-content: center;
        width: 100%;
    }

    .mm-proposal-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Request tabs: one row on small phones, compact; scroll horizontally if needed */
    .mm-requests-tabs {
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .mm-requests-tab {
        flex: 0 0 auto;
        padding: 5px 7px;
        font-size: 0.7rem;
        font-weight: 600;
        border-radius: 6px;
        white-space: nowrap;
    }

    .mm-learning-request-card {
        padding: 14px;
    }

    .mm-mentee-request-preview-card.mm-mentor-preview-card {
        padding: 14px;
        border-radius: 18px;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-mentor-preview-card {
        max-width: none;
        padding: 14px;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-preview-topbar {
        align-items: flex-start;
        gap: 10px;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-mentor-preview-card .mm-mentor-avatar {
        width: 36px;
        height: 36px;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-preview-goal-card {
        margin-top: 10px;
        padding: 10px;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-preview-meta-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-preview-expiry {
        width: fit-content;
        justify-content: center;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-preview-footer {
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: nowrap;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-preview-footer-meta {
        justify-content: flex-start;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-preview-footer-action .mm-secondary-btn {
        width: auto;
        justify-content: center;
        text-align: center;
        min-width: 124px;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-preview-timer-row {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-preview-timer-row .mm-preview-expiry {
        min-width: 0;
        width: 100%;
        font-size: 0.64rem;
        padding: 5px 7px;
        gap: 4px;
        white-space: nowrap;
        overflow: hidden;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-preview-timer-row .mm-preview-expiry .mm-request-info-icon {
        flex: 0 0 auto;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-preview-timer-row .mm-preview-expiry [data-mm-expiry-label] {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-detail-card {
        padding: 16px;
        border-radius: 18px;
    }

    /* Mentorship progress: keep two compact columns on phone */
    #mentorMatchRoot.mm-mentor-mode .mm-inprogress-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-inprogress-summary-item {
        padding: 8px 9px;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-inprogress-summary-item .mm-meta-label {
        font-size: 0.65rem;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-inprogress-summary-item strong {
        font-size: 0.76rem;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-inprogress-summary-item-full {
        grid-column: 1 / -1;
    }

    .mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-inprogress-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-inprogress-summary-item {
        padding: 8px 9px;
    }

    .mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-inprogress-summary-item .mm-meta-label {
        font-size: 0.65rem;
    }

    .mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-inprogress-summary-item strong {
        font-size: 0.76rem;
    }

    .mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dash-block--progress {
        padding: 10px 11px 12px;
    }

    .mm-proposals-panel.mm-proposals-panel--learning-dashboard .mm-learning-dash-title--progress {
        font-size: 0.82rem;
        margin-bottom: 6px !important;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-learning-dash-block--progress.mm-inprogress-block {
        padding: 10px 11px 12px !important;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-dashboard-card .mm-learning-dash-title--progress {
        font-size: 0.82rem;
        margin-bottom: 6px !important;
    }

    .mm-request-detail-card .mm-inprogress-summary-grid {
        gap: 7px;
    }

    #mentorMatchRoot:not(.mm-mentor-mode) .mm-request-detail-card .mm-inprogress-summary-item {
        padding: 8px 9px;
    }

    #mentorMatchRoot:not(.mm-mentor-mode) .mm-request-detail-card .mm-inprogress-summary-item .mm-meta-label {
        font-size: 0.65rem;
    }

    #mentorMatchRoot:not(.mm-mentor-mode) .mm-request-detail-card .mm-inprogress-summary-item strong {
        font-size: 0.76rem;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-head {
        align-items: flex-start;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-scroll {
        max-height: 280px;
        padding-right: 2px;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-inprogress-plan-empty .mm-primary-btn {
        width: 100%;
    }

    .mm-slot-step-wrap {
        min-height: 180px;
    }

    .mm-slot-dates,
    .mm-slot-time-grid {
        gap: 6px;
    }

    .mm-slot-date-btn,
    .mm-slot-time-btn {
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    .mm-slot-confirm-line {
        font-size: 0.8rem;
    }

    .mm-slot-confirm-actions {
        flex-direction: column;
    }

    .mm-slot-confirm-actions .mm-primary-btn,
    .mm-slot-confirm-actions .mm-secondary-btn {
        width: 100%;
    }

    .mm-proposals-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mm-proposals-panel {
        width: 100vw;
        margin-top: 48px;
        height: calc(100vh - 48px);
        padding-top: max(4px, env(safe-area-inset-top));
    }

    .mm-proposals-panel-header {
        padding-top: 8px;
    }

    .mm-mentor-preview-list {
        grid-template-columns: minmax(0, 1fr);
    }

    #mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-requests-grid-compact {
        grid-template-columns: minmax(0, 1fr);
    }

    #mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-inprogress-meta-actions {
        flex-wrap: wrap;
        align-items: stretch;
    }

    #mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-inprogress-meta-actions .mm-mentee-session-meta-chip {
        flex: 1 1 100%;
    }

    #mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-inprogress-meta-actions .mm-mentee-preview-footer-actions {
        width: 100%;
        justify-content: flex-start;
    }

    #mentorMatchRoot:not(.mm-mentor-mode) .mm-mentee-open-request-card .mm-mentee-preview-footer-actions .mm-proposal-delete-btn {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-preview-meta-actions {
        flex-wrap: wrap;
        align-items: stretch;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-preview-meta-actions .mm-mentor-session-meta-chip {
        flex: 1 1 100%;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-mentor-inprogress-preview-meta-actions .mm-mentor-inprogress-preview-actions {
        width: 100%;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-detail-card {
        padding: 16px;
        border-radius: 18px;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-toolbar {
        gap: 10px;
        margin-bottom: 12px;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-toolbar .mm-back-icon-btn {
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-toolbar .mm-chip {
        width: auto;
        flex-shrink: 0;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-person {
        align-items: flex-start;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-person-avatar {
        width: 44px;
        height: 44px;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-info-chips {
        gap: 8px;
        flex-wrap: nowrap;
        width: 100%;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-info-chip,
    #mentorMatchRoot.mm-mentor-mode .mm-request-expiry {
        width: auto;
        justify-content: flex-start;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-info-chip {
        flex: 1 1 0;
        min-width: 0;
    }

    #mentorMatchRoot.mm-mentor-mode .mm-request-expiry {
        padding: 6px 10px;
        min-height: 30px;
        font-size: 0.76rem;
        width: fit-content;
    }
}
