.np-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.np-block-name {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    /* MudBlazor's expand-panel header sets line-height:1, which makes the line box exactly the font
       size — with overflow:hidden for the ellipsis, that clips descenders. */
    line-height: 1.45;
    color: var(--tp-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.np-block-icon.mud-icon-root {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--tp-text-secondary);
}

.np-count {
    flex: none;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: var(--tp-radius-pill);
    background-color: var(--tp-hover);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--tp-text-secondary);
}

.np-block-actions {
    flex: none;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.np-block-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    min-width: 0;
}

.properties-expansion-panels {
    padding: 12px;
    background-color: var(--mud-palette-surface);
}

.properties-expansion-panels .mud-expand-panel {
    margin: 0 0 10px 0 !important;
    background-color: var(--tp-surface) !important;
    border: 1px solid var(--tp-border) !important;
    border-radius: var(--tp-radius) !important;
    overflow: hidden;
    box-shadow: var(--tp-shadow-sm);
}

.properties-expansion-panels .mud-expand-panel.mud-panel-expanded {
    margin: 0 0 10px 0 !important;
}

.properties-expansion-panels .mud-expand-panel:last-child {
    margin-bottom: 0 !important;
}

.properties-expansion-panels .mud-expand-panel-header {
    background-color: var(--tp-bg) !important;
    padding: 9px 10px 9px 12px !important;
    min-height: unset !important;
    gap: 4px;
}

.properties-expansion-panels .mud-expand-panel-header .mud-expand-panel-icon {
    margin-left: 0;
    color: var(--tp-text-secondary);
}

.properties-expansion-panels .mud-expand-panel.mud-panel-expanded .mud-expand-panel-header {
    border-bottom: 1px solid var(--mud-palette-divider) !important;
}

.properties-expansion-panels .mud-expand-panel-content {
    padding: 0 !important;
    background-color: var(--tp-surface) !important;
}

.properties-expansion-panels .mud-expand-panel-content > * {
    animation: app-fade-in-down var(--tp-dur) var(--tp-ease) backwards;
}
