.mm-remember {
    background: #fff;
    border: 1px solid rgba(14, 154, 168, 0.18);
    border-radius: 1.25rem;
    padding: 1.15rem 1.3rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.mm-remember h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    color: var(--welcome-ink, #102a43);
}

.mm-remember h2 i {
    color: #0e9aa8;
    margin-right: 0.35rem;
}

.mm-remember ul {
    margin: 0;
    padding-left: 1.15rem;
}

.mm-remember li {
    margin-bottom: 0.35rem;
    color: #334155;
}

.mm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 1.1rem;
    align-items: start;
}

.mm-tree-wrap,
.mm-detail {
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 1.25rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.mm-tree-wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: min(72vh, 44rem);
    padding: 1rem 0.35rem 1.15rem 0.85rem;
}

.mm-tree-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.mm-tree-scroll::-webkit-scrollbar {
    width: 8px;
}

.mm-tree-scroll::-webkit-scrollbar-thumb {
    background: #b7dce2;
    border-radius: 999px;
}

.mm-tree-scroll::-webkit-scrollbar-track {
    background: #f1f6f7;
    border-radius: 999px;
}

.mm-hint {
    font-size: 0.86rem;
    color: #64748b;
    margin: 0 0.7rem 0.85rem;
}

.mm-tree,
.mm-branch {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mm-item {
    position: relative;
    padding-left: 1.15rem;
}

.mm-tree > .mm-item {
    padding-left: 0.35rem;
}

.mm-branch {
    margin: 0.2rem 0 0.35rem 1.15rem;
    border-left: 2px solid #d7eef1;
    padding-left: 0.7rem;
}

.mm-node {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    text-align: left;
    border: 1px solid #dce8ec;
    background: #f7fcfd;
    color: #123047;
    border-radius: 0.9rem;
    padding: 0.55rem 0.75rem;
    margin: 0.22rem 0;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mm-node.is-root {
    background: linear-gradient(135deg, #20c4d2 0%, #0e9aa8 100%);
    color: #fff;
    border-color: transparent;
    font-size: 1.02rem;
}

.mm-node:hover {
    border-color: #20c4d2;
    box-shadow: 0 6px 14px rgba(14, 154, 168, 0.12);
}

.mm-node.is-selected {
    border-color: #0e9aa8;
    box-shadow: 0 0 0 3px rgba(32, 196, 210, 0.22);
}

.mm-node.is-root.is-selected {
    box-shadow: 0 0 0 3px rgba(32, 196, 210, 0.35);
}

.mm-toggle {
    display: inline-flex;
    width: 1.3rem;
    height: 1.3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    flex: 0 0 auto;
}

.mm-node:not(.is-root) .mm-toggle {
    background: #e7f6f8;
    color: #0e9aa8;
}

.mm-node[aria-expanded="false"] .mm-toggle i {
    transform: rotate(-90deg);
}

.mm-toggle i {
    display: block;
    transition: transform 0.15s ease;
    font-size: 0.85rem;
}

.mm-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: #fff4d4;
    color: #9a6408;
}

.mm-node.is-root .mm-tag {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.mm-label {
    flex: 1 1 8rem;
}

.mm-detail {
    position: sticky;
    top: 1rem;
    padding: 1.2rem 1.25rem 1.35rem;
}

.mm-detail-kicker {
    display: inline-flex;
    background: #e7f6f8;
    color: #0e9aa8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.55rem;
}

.mm-detail h2 {
    font-size: 1.18rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.mm-detail-summary {
    color: #475569;
    margin-bottom: 0.85rem;
}

.mm-detail-points {
    margin: 0;
    padding-left: 1.1rem;
}

.mm-detail-points li {
    margin-bottom: 0.45rem;
    color: #1e293b;
}

@media (max-width: 991.98px) {
    .mm-layout {
        grid-template-columns: 1fr;
    }

    .mm-tree-wrap {
        max-height: min(62vh, 36rem);
    }

    .mm-detail {
        position: static;
        order: 2;
    }
}
