.sub-toolbar {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 50px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.tool-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
}

.tool-group+.tool-group {
    border-top: none;
    border-left: 2px solid #e2e8f0;
    padding-top: 0;
    padding-left: 14px;
}

.toolbar-btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 20px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.toolbar-btn-modern:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.toolbar-btn-modern.active {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.toolbar-btn-modern.accent {
    background: #8b5cf6;
    color: #ffffff;
}

.toolbar-btn-modern.accent:hover {
    background: #7c3aed;
}

.toolbar-btn-modern svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.toolbar-btn-modern span {
    display: inline;
}

.toolbar-btn-modern.icon-only {
    width: 36px;
    padding: 0;
    border-radius: 50%;
}