.glm-toc-edit-block {
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 20px 20px 10px;
    background: #f1f1f1;
}

.glm-toc-edit-toolbar {
    position: absolute;
    top: 20px;
    right: 20px;
}


.glm-toc-edit-block h3 {
    margin: 0 0 10px;
}

.glm-toc-edit-block>p {
    margin: 0 0 12px;
    color: #555d66;
    font-size: 12px;
}

/* List wrapper */
.glm-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e2e4e7;
}

/* Each row */
.glm-toc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f1;
}

.glm-toc-item:last-child {
    border-bottom: none
}

/* Slight indent for H3 items */
.glm-toc-item--h3 {
    padding-left: 16px;
    opacity: 0.9;
}

/* Heading label (e.g. "2. My heading") */
.glm-toc-item .toc-headline {
    flex: 1 1 50%;
    font-size: 13px;
    line-height: 1.4;
    color: #1d2327;
    word-break: break-word;
}

/* Anchor (ID) input area */
.glm-toc-anchor-edit {
    flex: 1 1 50%;
    min-width: 0;
    max-width: none;
}

/* Make TextControl input compact */
.glm-toc-anchor-edit .components-text-control__input {
    font-size: 12px;
    padding: 4px 6px;
    height: auto;
    width: 100%;
}

.glm-toc-anchor-edit .components-base-control__field {
    margin: 0;
}

/* Small helper text, if you add one later */
.glm-toc-id-instruction {
    margin: 0 0 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #757575;
}

/* Mobile: stack rows nicely */
@media (max-width: 782px) {
    .glm-toc-item {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .glm-toc-anchor-edit {
        max-width: 100%;
    }
}