/**
 * Mindmap — Premium MindNode Styles
 * Glass morphism, smooth animations, organic curves
 */

/* ═══════════════════════════════════════ */
/* ROOT & LOADING                         */
/* ═══════════════════════════════════════ */
#mindmap-root {
    width: 100%; height: calc(100vh - 60px);
    position: relative; overflow: hidden;
    background: #FAFBFC;
    background-image: radial-gradient(circle, #E2E8F0 1px, transparent 1px);
    background-size: 24px 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', sans-serif;
}
.mn-loading, .mn-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; gap: 16px; color: #64748B;
}
.mn-empty-icon { font-size: 56px; margin-bottom: 8px; }
.mn-empty h2 { font-size: 24px; font-weight: 700; color: #1E293B; margin: 0; }
.mn-empty p { font-size: 15px; color: #64748B; margin: 0; }

/* Pulse ring loader */
.mn-pulse-ring {
    width: 40px; height: 40px; border-radius: 50%;
    border: 3px solid transparent; border-top-color: #5856D6;
    animation: mn-spin 0.9s linear infinite;
}
.mn-pulse-sm { width: 24px; height: 24px; border-width: 2px; }
@keyframes mn-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════ */
/* TOOLBAR                                */
/* ═══════════════════════════════════════ */
.mn-toolbar {
    position: absolute; top: 0; left: 0; right: 0; z-index: 100;
    height: 56px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.mn-tb-left, .mn-tb-right { display: flex; align-items: center; gap: 10px; }
.mn-title { font-size: 20px; font-weight: 700; color: #1E293B; margin: 0; letter-spacing: -.02em; }
.mn-badge-count {
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
    background: #F1F5F9; color: #64748B;
}
.mn-tb-btn {
    width: 36px; height: 36px; border: none; border-radius: 10px;
    background: transparent; color: #64748B; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s cubic-bezier(.4,0,.2,1);
}
.mn-tb-btn:hover { background: #F1F5F9; color: #1E293B; }
.mn-tb-btn:active { transform: scale(.92); }
.mn-tb-active { background: #5856D6 !important; color: #fff !important; }
.mn-tb-active:hover { background: #4845C1 !important; }
.mn-zoom-val { font-size: 12px; font-weight: 600; color: #94A3B8; min-width: 36px; text-align: center; }
.mn-tb-divider { width: 1px; height: 24px; background: #E2E8F0; }

/* ═══════════════════════════════════════ */
/* VIEWPORT & WORLD                       */
/* ═══════════════════════════════════════ */
.mn-viewport {
    position: absolute; inset: 0; overflow: hidden; cursor: grab;
    padding-top: 56px;
}
.mn-viewport:active { cursor: grabbing; }
.mn-world {
    position: absolute; top: 0; left: 0;
    transform-origin: 0 0;
    will-change: transform;
    transition: none;
}

/* ═══════════════════════════════════════ */
/* SVG EDGES (Bezier Curves)              */
/* ═══════════════════════════════════════ */
.mn-svg { pointer-events: none; }
.mn-edge { transition: opacity .4s ease; }
.mn-edge-line { transition: stroke-width .2s ease; }
.mn-edge-dim { opacity: .08; }
.mn-edge-hl .mn-edge-line { stroke-width: 5 !important; filter: url(#mn-glow); }

/* ═══════════════════════════════════════ */
/* NODES — Common                         */
/* ═══════════════════════════════════════ */
.mn-node {
    position: absolute; left: 0; top: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: opacity .35s ease, box-shadow .25s ease, filter .3s ease;
    will-change: transform, opacity;
    user-select: none;
    -webkit-user-select: none;
}
.mn-node:hover { z-index: 10; }
.mn-dim { opacity: .12 !important; filter: grayscale(.6); pointer-events: none; }
.mn-sel { z-index: 20 !important; }
.mn-hover { z-index: 15; }

/* ═══════════════════════════════════════ */
/* NODE: Goal (Root)                      */
/* ═══════════════════════════════════════ */
.mn-t-goal { border-radius: 20px; z-index: 5; }
.mn-goal {
    display: flex; align-items: center; gap: 14px;
    min-height: 100%; padding: 14px 24px;
    background: linear-gradient(135deg, #FF3B30, #FF6B6B);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(255,59,48,.3), 0 0 0 1px rgba(255,255,255,.15) inset;
    color: #fff;
    animation: mn-goalPulse 3s ease-in-out infinite;
}
@keyframes mn-goalPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(255,59,48,.3), 0 0 0 1px rgba(255,255,255,.15) inset; }
    50% { box-shadow: 0 8px 40px rgba(255,59,48,.45), 0 0 0 1px rgba(255,255,255,.25) inset; }
}
.mn-goal-ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.mn-goal-emoji {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.mn-goal-body { flex: 1; min-width: 0; }
.mn-goal-label { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; white-space: normal; word-break: normal; }
.mn-goal-pct { font-size: 11px; opacity: .8; }
.mn-sel .mn-goal { box-shadow: 0 0 0 3px #fff, 0 8px 32px rgba(255,59,48,.4); }

/* ═══════════════════════════════════════ */
/* NODE: Branch (Level 1)                 */
/* ═══════════════════════════════════════ */
.mn-t-branch { border-radius: 16px; }
.mn-branch {
    display: flex; flex-direction: column;
    min-height: 100%; padding: 0;
    background: #fff;
    border-radius: 16px;
    border-left: 4px solid var(--c, #5856D6);
    box-shadow: 0 2px 12px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
    overflow: hidden;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}
.mn-branch > .mn-card-row { padding: 10px 18px; gap: 12px; }
.mn-branch:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1), 0 0 0 1px var(--c); transform: translateY(-1px); }
.mn-sel .mn-branch { box-shadow: 0 0 0 2.5px var(--c), 0 6px 24px rgba(0,0,0,.1); }
.mn-branch-ico { font-size: 22px; flex-shrink: 0; }
.mn-branch-body { flex: 1; min-width: 0; }
.mn-branch-lbl { display: block; font-size: 14px; font-weight: 600; color: #1E293B; white-space: normal; word-break: normal; line-height: 1.35; }
.mn-branch-goal { display: block; font-size: 11px; color: #64748B; margin-top: 2px; white-space: normal; word-break: normal; line-height: 1.3; }
.mn-branch-bar { height: 3px; background: #F1F5F9; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.mn-branch-fill { height: 100%; border-radius: 2px; background: var(--c); transition: width .6s cubic-bezier(.4,0,.2,1); }
.mn-branch-pct { font-size: 13px; font-weight: 700; color: var(--c); flex-shrink: 0; }

/* ═══════════════════════════════════════ */
/* NODE: Subbranch / Project (Level 2)    */
/* ═══════════════════════════════════════ */
.mn-t-subbranch, .mn-t-project { border-radius: 12px; }
.mn-sub {
    display: flex; flex-direction: column;
    min-height: 100%; padding: 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    overflow: hidden;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}
.mn-sub > .mn-card-row { padding: 8px 14px; gap: 8px; }
.mn-sub:hover { border-color: var(--c); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.mn-sel .mn-sub { border-color: var(--c); box-shadow: 0 0 0 2px var(--c); }
.mn-sub-type { font-size: 14px; flex-shrink: 0; }
.mn-star-badge { font-size: 12px; color: #F59E0B; flex-shrink: 0; }
.mn-sub-lbl { flex: 1; font-size: 13px; font-weight: 500; color: #334155; white-space: normal; word-break: normal; line-height: 1.35; min-width: 0; }
.mn-sub-pct { font-size: 12px; font-weight: 600; color: var(--c); flex-shrink: 0; }

/* ═══════════════════════════════════════ */
/* NODE: Task / Item (Level 3)            */
/* ═══════════════════════════════════════ */
.mn-t-task, .mn-t-item { border-radius: 10px; }
.mn-task {
    display: flex; flex-direction: column;
    min-height: 100%; padding: 0;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #F1F5F9;
    overflow: hidden;
    transition: all .2s ease;
}
.mn-task > .mn-card-row { padding: 6px 12px; gap: 8px; }
.mn-task:hover { border-color: #CBD5E1; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.mn-sel .mn-task { border-color: var(--c); box-shadow: 0 0 0 2px var(--c); }
.mn-task-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mn-task-lbl { flex: 1; font-size: 12px; color: #475569; white-space: normal; word-break: normal; line-height: 1.35; min-width: 0; }
.mn-task-prio { font-size: 10px; flex-shrink: 0; }

/* ═══════════════════════════════════════ */
/* NODE: Subtask (Level 4)                */
/* ═══════════════════════════════════════ */
.mn-t-subtask { border-radius: 8px; }
.mn-st {
    display: flex; align-items: center; gap: 6px;
    min-height: 100%; padding: 5px 10px;
    background: rgba(255,255,255,.7);
    border-radius: 8px;
    border: 1px solid #F1F5F9;
}
.mn-st-mark { font-size: 11px; color: #94A3B8; flex-shrink: 0; }
.mn-st-lbl { font-size: 11px; color: #64748B; white-space: normal; word-break: normal; line-height: 1.35; min-width: 0; }
.mn-st-done .mn-st-lbl { text-decoration: line-through; color: #94A3B8; }
.mn-st-done .mn-st-mark { color: #34C759; }

/* ═══════════════════════════════════════ */
/* FOLD BUTTONS                           */
/* ═══════════════════════════════════════ */
.mn-fold {
    width: 26px; height: 26px; border: none; border-radius: 8px;
    background: #F8FAFC; color: #94A3B8;
    font-size: 11px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all .2s ease;
}
.mn-fold:hover { background: #E2E8F0; color: #475569; }
.mn-fold-sm { width: 22px; height: 22px; font-size: 10px; border-radius: 6px; }
.mn-fold-badge {
    font-size: 10px; font-weight: 700; color: #5856D6;
    background: #EDE9FE; border-radius: 6px; padding: 1px 5px;
}

/* ═══════════════════════════════════════ */
/* AI PANEL                               */
/* ═══════════════════════════════════════ */
.mn-ai {
    position: absolute; top: 56px; right: 0; bottom: 0;
    width: 340px; z-index: 200;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(0,0,0,.08);
    display: flex; flex-direction: column;
    animation: mn-slideIn .3s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 24px rgba(0,0,0,.06);
}
@keyframes mn-slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.mn-ai-hdr {
    display: flex; align-items: center; gap: 8px;
    padding: 16px 20px; border-bottom: 1px solid rgba(0,0,0,.06);
}
.mn-ai-icon { font-size: 20px; }
.mn-ai-title { font-size: 15px; font-weight: 600; color: #1E293B; flex: 1; }
.mn-ai-close {
    width: 28px; height: 28px; border: none; border-radius: 8px;
    background: transparent; color: #94A3B8; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: all .15s;
}
.mn-ai-close:hover { background: #F1F5F9; color: #475569; }
.mn-ai-body { flex: 1; overflow-y: auto; padding: 20px; }
.mn-ai-loading { display: flex; align-items: center; gap: 12px; padding: 24px 0; color: #64748B; font-size: 14px; }
.mn-ai-error { padding: 16px; background: #FEF2F2; border-radius: 12px; color: #DC2626; font-size: 13px; }

/* AI Prompt */
.mn-ai-prompt p { font-size: 14px; color: #475569; margin: 0 0 12px; line-height: 1.6; }
.mn-ai-prompt ul { list-style: none; padding: 0; margin: 0 0 20px; }
.mn-ai-prompt li { font-size: 13px; color: #64748B; padding: 6px 0 6px 20px; position: relative; }
.mn-ai-prompt li::before { content: '→'; position: absolute; left: 0; color: #5856D6; font-weight: 600; }
.mn-ai-btn {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 12px 20px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #5856D6, #7C3AED);
    color: #fff; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .25s;
    justify-content: center;
}
.mn-ai-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(88,86,214,.3); }
.mn-ai-btn:active { transform: scale(.97); }
.mn-ai-refresh { background: #F1F5F9; color: #475569; margin-top: 20px; }
.mn-ai-refresh:hover { background: #E2E8F0; box-shadow: none; }

/* AI Score */
.mn-ai-score {
    display: flex; flex-direction: column; align-items: center;
    padding: 24px; margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(var(--sc-rgb, 52,199,89),.08), rgba(var(--sc-rgb, 52,199,89),.02));
    border-radius: 16px; border: 1px solid rgba(0,0,0,.04);
}
.mn-ai-score-num { font-size: 48px; font-weight: 800; color: var(--sc, #34C759); line-height: 1; }
.mn-ai-score-lbl { font-size: 12px; font-weight: 500; color: #64748B; margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }

/* AI Sections */
.mn-ai-section { margin-bottom: 20px; }
.mn-ai-section h4 { font-size: 14px; font-weight: 600; color: #1E293B; margin: 0 0 8px; }
.mn-ai-section ul { list-style: none; padding: 0; margin: 0; }
.mn-ai-section li {
    font-size: 13px; color: #475569; line-height: 1.5;
    padding: 6px 12px; margin-bottom: 4px;
    background: #F8FAFC; border-radius: 8px;
}
.mn-ai-section p { font-size: 13px; color: #475569; line-height: 1.6; margin: 0; }
.mn-ai-text { font-size: 13px; color: #475569; line-height: 1.7; }
.mn-ai-text strong { color: #1E293B; }

/* ═══════════════════════════════════════ */
/* NODE WELL (+) BUTTON                   */
/* ═══════════════════════════════════════ */
.mn-well {
    position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border: none; border-radius: 50%;
    background: #5856D6; color: #fff;
    font-size: 18px; font-weight: 300; line-height: 1;
    cursor: pointer; opacity: 0; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(88,86,214,.35);
    transition: all .2s cubic-bezier(.4,0,.2,1);
    z-index: 25;
}
.mn-node:hover .mn-well { opacity: 1; pointer-events: auto; }
.mn-well:hover { transform: translateY(-50%) scale(1.15); background: #4845C1; box-shadow: 0 4px 16px rgba(88,86,214,.45); }
.mn-well:active { transform: translateY(-50%) scale(.95); }

/* ═══════════════════════════════════════ */
/* AI IMAGE BANNERS                       */
/* ═══════════════════════════════════════ */
.mn-img-banner {
    width: 100%; overflow: hidden;
    flex: 0 0 auto;
}
.mn-img-banner img {
    width: 100%; height: 140px;
    display: block; object-fit: cover;
    animation: mn-imgFadeIn .3s ease;
}
@keyframes mn-imgFadeIn { from { opacity: 0; } to { opacity: 1; } }
.mn-img-banner.mn-img-loading {
    height: 80px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(88,86,214,.06), rgba(124,58,237,.04));
    animation: mn-imgPlaceholderIn .2s ease;
}
@keyframes mn-imgPlaceholderIn { from { height: 0; opacity: 0; } to { height: 80px; opacity: 1; } }
.mn-img-spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(0,0,0,.08);
    border-top-color: var(--c, #5856D6);
    border-radius: 50%;
    animation: mn-spin .7s linear infinite;
}
@keyframes mn-spin { to { transform: rotate(360deg); } }

/* Card content row (below optional banner) */
.mn-card-row {
    display: flex; align-items: center; width: 100%;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════ */
/* CONTEXT MENU                           */
/* ═══════════════════════════════════════ */
.mn-ctx-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: transparent;
}
.mn-ctx-menu {
    position: fixed;
    min-width: 200px; max-width: 280px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.06);
    padding: 6px;
    animation: mn-ctxIn .15s cubic-bezier(.2,0,.13,1.5);
    z-index: 501;
}
@keyframes mn-ctxIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
.mn-ctx-header {
    padding: 8px 12px 6px; font-size: 11px; font-weight: 600; color: #94A3B8;
    text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 1px solid #F1F5F9; margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mn-ctx-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 8px 12px; border: none; border-radius: 8px;
    background: transparent; color: #334155; font-size: 13px; font-weight: 500;
    cursor: pointer; text-align: left;
    transition: background .12s ease;
}
.mn-ctx-item:hover { background: #F1F5F9; }
.mn-ctx-item:active { background: #E2E8F0; }
.mn-ctx-danger { color: #DC2626; }
.mn-ctx-danger:hover { background: #FEF2F2; }
.mn-ctx-icon { font-size: 14px; width: 20px; text-align: center; flex-shrink: 0; }
.mn-ctx-divider { height: 1px; background: #F1F5F9; margin: 4px 8px; }

/* ═══════════════════════════════════════ */
/* INLINE EDIT                            */
/* ═══════════════════════════════════════ */
.mn-inline-edit {
    display: block; width: 100%; border: none; outline: none;
    font: inherit; color: inherit; background: transparent;
    padding: 2px 4px; margin: -2px -4px; resize: none;
    word-wrap: break-word; overflow-wrap: break-word;
    line-height: inherit; overflow: hidden;
    border-radius: 4px;
    transition: background .15s ease, box-shadow .15s ease;
    cursor: text;
}
.mn-inline-edit:focus {
    background: rgba(88,86,214,.08);
    box-shadow: 0 0 0 2px rgba(88,86,214,.25);
}
/* Editing state on node — no hover effects, keep interactive */
.mn-node:has(.mn-inline-edit) { z-index: 30 !important; }
.mn-node:has(.mn-inline-edit) .mn-well { display: none; }
.mn-node:has(.mn-inline-edit) .mn-fold { display: none; }

/* ═══════════════════════════════════════ */
/* NODE DRAGGING                          */
/* ═══════════════════════════════════════ */
.mn-node-dragging {
    z-index: 50 !important;
    cursor: grabbing !important;
    opacity: .9;
    box-shadow: 0 12px 40px rgba(0,0,0,.18) !important;
}
.mn-node-dragging * { pointer-events: none !important; }
.mn-viewport.mn-drag-active { cursor: grabbing !important; }
/* Subtle hint that nodes are draggable on hover */
.mn-node:active:not(.mn-node-dragging) { cursor: grab; }

/* Reset position button in toolbar */
.mn-tb-reset-pos {
    font-size: 10px; font-weight: 600; color: #94A3B8;
    background: #F1F5F9; border: none; border-radius: 6px;
    padding: 4px 10px; cursor: pointer; transition: all .15s;
}
.mn-tb-reset-pos:hover { background: #E2E8F0; color: #475569; }

/* Auto-layout toggle button */
.mn-tb-auto-layout {
    font-size: 10px; font-weight: 600; color: #5856D6;
    background: #EDE9FE; border: none; border-radius: 6px;
    padding: 4px 10px; cursor: pointer; transition: all .15s;
    white-space: nowrap;
}
.mn-tb-auto-layout:hover { background: #DDD6FE; color: #4845C1; }

/* ═══════════════════════════════════════ */
/* CREATION MODALS & GUIDE                */
/* ═══════════════════════════════════════ */
.mn-modal-overlay {
    position: fixed; inset: 0; z-index: 600;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    animation: mn-fadeIn .2s ease;
}
@keyframes mn-fadeIn { from { opacity: 0; } to { opacity: 1; } }

.mn-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
    width: 90%; max-width: 480px;
    display: flex; flex-direction: column;
    max-height: 85vh;
    animation: mn-modalIn .25s cubic-bezier(.2,0,.13,1.5);
}
@keyframes mn-modalIn { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.mn-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px 14px;
    border-bottom: 1px solid #F1F5F9;
    flex-shrink: 0;
}
.mn-modal-header h3 {
    margin: 0; font-size: 17px; font-weight: 700; color: #1E293B;
}
.mn-modal-close {
    width: 32px; height: 32px; border: none; border-radius: 8px;
    background: transparent; color: #94A3B8; cursor: pointer;
    font-size: 20px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.mn-modal-close:hover { background: #F1F5F9; color: #475569; }

.mn-modal-body {
    padding: 20px 24px;
    overflow-y: auto; flex: 1; min-height: 0;
}

.mn-modal-footer {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 14px 24px 18px;
    border-top: 1px solid #F1F5F9;
    flex-shrink: 0;
}

.mn-form-group {
    margin-bottom: 16px;
}
.mn-form-group:last-child { margin-bottom: 0; }
.mn-form-group label {
    display: block; font-size: 13px; font-weight: 600; color: #475569;
    margin-bottom: 6px;
}

.mn-form-input {
    width: 100%; padding: 10px 14px;
    border: 1px solid #E2E8F0; border-radius: 10px;
    font-size: 14px; color: #1E293B;
    background: #FAFBFC;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    font-family: inherit;
}
.mn-form-input:focus {
    outline: none; border-color: #5856D6;
    box-shadow: 0 0 0 3px rgba(88,86,214,.12);
    background: #fff;
}
textarea.mn-form-input { resize: vertical; min-height: 72px; line-height: 1.5; }
select.mn-form-input { cursor: pointer; appearance: auto; }

.mn-modal-btn {
    padding: 10px 20px; border: 1px solid #E2E8F0; border-radius: 10px;
    background: #fff; color: #475569; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.mn-modal-btn:hover { background: #F8FAFC; border-color: #CBD5E1; }

.mn-modal-btn-primary {
    background: linear-gradient(135deg, #5856D6, #7C3AED);
    color: #fff; border-color: transparent;
}
.mn-modal-btn-primary:hover {
    background: linear-gradient(135deg, #4845C1, #6D28D9);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(88,86,214,.3);
}

.mn-team-checkboxes {
    display: flex; flex-direction: column; gap: 6px;
    max-height: 160px; overflow-y: auto;
    padding: 8px 0;
}
.mn-team-check-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #334155; cursor: pointer;
    padding: 6px 10px; border-radius: 8px;
    transition: background .12s;
}
.mn-team-check-label:hover { background: #F8FAFC; }
.mn-team-check-label input[type="checkbox"] {
    width: 16px; height: 16px; cursor: pointer;
    accent-color: #5856D6;
}

/* ═══════════════════════════════════════ */
/* RESPONSIVE                             */
/* ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .mn-toolbar { padding: 0 12px; }
    .mn-title { font-size: 16px; }
    .mn-ai { width: 100%; top: auto; bottom: 0; height: 50vh; border-left: none; border-top: 1px solid rgba(0,0,0,.08); }
    .mn-badge-count { display: none; }
}
